diff --git a/test/unit/rules/functions/test_getatt_format.py b/test/unit/rules/functions/test_getatt_format.py index 24cc0cf540..81e589b159 100644 --- a/test/unit/rules/functions/test_getatt_format.py +++ b/test/unit/rules/functions/test_getatt_format.py @@ -27,6 +27,7 @@ def template(): "MyProvisionedProduct": { "Type": "AWS::ServiceCatalog::CloudFormationProvisionedProduct" }, + "MySSMParameter": {"Type": "AWS::SSM::Parameter"}, }, } @@ -64,6 +65,12 @@ def template(): {"format": "AWS::EC2::SecurityGroup.GroupId"}, [], ), + ( + "Valid GetAtt because of exception with attribute", + ["MySSMParameter", "Arn"], + {"format": "AWS::EC2::Image.Id"}, + [], + ), ( "Invalid GetAtt with a bad format", ["MyBucket", "Arn"],