Skip to content

Commit

Permalink
Fix: Replace SecurityGroups with SecurityGroupIds in EC2 resource
Browse files Browse the repository at this point in the history
- Updated the EC2 instance template to reference security groups by ID instead of name.
- Resolved conflict between subnet and groupName parameters, preventing errors during stack creation.
  • Loading branch information
katsuhisa91 authored Sep 12, 2024
1 parent c239ada commit 686fba0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions EC2/EC2InstanceWithSecurityGroupSample.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,12 @@
}
]
},
"SecurityGroups": [
"SecurityGroupIds": [
{
"Ref": "InstanceSecurityGroup"
"Fn::GetAtt": [
"InstanceSecurityGroup",
"GroupId"
]
}
],
"KeyName": {
Expand Down

0 comments on commit 686fba0

Please sign in to comment.