Skip to content

Commit

Permalink
Fix: Replace SecurityGroups with SecurityGroupIds in YAML template
Browse files Browse the repository at this point in the history
- Updated the EC2 instance configuration to use security group IDs instead of names.
- This resolves the conflict between the subnet and groupName parameters.
  • Loading branch information
katsuhisa91 authored Sep 12, 2024
1 parent c239ada commit 6b7a006
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions EC2/EC2InstanceWithSecurityGroupSample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ Resources:
SubnetId: !Select
- 0
- !Ref Subnets
SecurityGroups:
- !Ref InstanceSecurityGroup
SecurityGroupIds:
- !GetAtt InstanceSecurityGroup.GroupId
KeyName: !Ref KeyName
ImageId: !Ref LatestAmiId

Expand Down

0 comments on commit 6b7a006

Please sign in to comment.