Skip to content

Commit 39d6fee

Browse files
authored
Add CloudFormationProvisionedProduct to exceptions (#3481)
1 parent 19b13e2 commit 39d6fee

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/cfnlint/rules/functions/GetAttFormat.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ def __init__(self):
3030
self._resource_type_exceptions = [
3131
"AWS::CloudFormation::CustomResource",
3232
"AWS::CloudFormation::Stack",
33+
"AWS::ServiceCatalog::CloudFormationProvisionedProduct",
3334
]
3435

3536
def validate(

test/unit/rules/functions/test_getatt_format.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ def template():
2424
"MySecurityGroup": {"Type": "AWS::EC2::SecurityGroup"},
2525
"MyCustomResource": {"Type": "Custom::CustomResource"},
2626
"MySubTemplate": {"Type": "AWS::CloudFormation::Stack"},
27+
"MyProvisionedProduct": {
28+
"Type": "AWS::ServiceCatalog::CloudFormationProvisionedProduct"
29+
},
2730
},
2831
}
2932

@@ -49,6 +52,12 @@ def template():
4952
{"format": "AWS::EC2::VPC.Id"},
5053
[],
5154
),
55+
(
56+
"Valid GetAtt to a provisioned product ",
57+
["MyProvisionedProduct", "Outputs.VpcId"],
58+
{"format": "AWS::EC2::VPC.Id"},
59+
[],
60+
),
5261
(
5362
"Valid GetAtt because of exception",
5463
["MyBucket", "Arn"],

0 commit comments

Comments
 (0)