Skip to content

Commit

Permalink
chore(cloudformation): Only allow IMDSv2 on Gateway instances
Browse files Browse the repository at this point in the history
  • Loading branch information
AshCorr committed Oct 11, 2024
1 parent ee2b6e4 commit 0ea701d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cdk/lib/__snapshots__/identity-gateway.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -1054,6 +1054,9 @@ exports[`The IdentityGateway stack matches the snapshot 1`] = `
"KeyName": {
"Ref": "KeyName",
},
"MetadataOptions": {
"HttpTokens": "required",
},
"SecurityGroupIds": [
{
"Ref": "InstanceSecurityGroup",
Expand Down
2 changes: 2 additions & 0 deletions cloudformation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,8 @@ Resources:
KeyName: !Ref KeyName
SecurityGroupIds:
- !Ref InstanceSecurityGroup
MetadataOptions:
HttpTokens: required
UserData:
Fn::Base64: !Sub
- |+
Expand Down

0 comments on commit 0ea701d

Please sign in to comment.