File tree 2 files changed +13
-0
lines changed
src/cfnlint/template/transforms
test/fixtures/templates/good/transform
2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -151,6 +151,10 @@ def _replace_variables_with_language_extension(self):
151
151
if "AWS::LanguageExtensions" in transforms :
152
152
parameters = {}
153
153
for k , v in self ._template .get ("Parameters" , {}).items ():
154
+ p_type = v .get ("Type" )
155
+ if isinstance (p_type , str ):
156
+ if p_type .startswith ("AWS::SSM::Parameter::" ):
157
+ continue
154
158
if isinstance (v , dict ) and v .get ("Default" ):
155
159
parameters [k ] = v .get ("Default" )
156
160
Original file line number Diff line number Diff line change @@ -10,6 +10,9 @@ Parameters:
10
10
AutoPublishAliasParameter :
11
11
Type : String
12
12
Default : TestAliasRef
13
+ VpcId :
14
+ Type : " AWS::SSM::Parameter::Value<AWS::EC2::VPC::Id>"
15
+ Default : " /network/vpc/primary/id"
13
16
Mappings :
14
17
StackIdMap01 :
15
18
teststack1 :
@@ -63,3 +66,9 @@ Resources:
63
66
def handler(event, context):
64
67
print("Hello, world!")
65
68
AutoPublishAlias : !Ref AutoPublishAliasParameter
69
+
70
+ SecurityGroups :
71
+ Type : AWS::EC2::SecurityGroup
72
+ Properties :
73
+ GroupDescription : Example security group
74
+ VpcId : !Ref VpcId
You can’t perform that action at this time.
0 commit comments