Skip to content

Commit b466dfe

Browse files
committed
fix: prevent AMI name confusion attack
1 parent 3c3ea63 commit b466dfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ To update the ImageId map execute the following lines in your terminal:
55

66
```
77
$ regions=$(aws ec2 describe-regions --query "Regions[].RegionName" --output text)
8-
$ for region in $regions; do id=$(aws --region $region ec2 describe-images --filters "Name=name,Values=amzn2-ami-hvm-2.0.20241113.1-x86_64-gp2" --query "Images[0].ImageId" --output "text"); printf "'$region':\n ImageId: '$id'\n"; done
8+
$ for region in $regions; do id=$(aws --region $region ec2 describe-images --owner amazon --filters "Name=name,Values=amzn2-ami-hvm-2.0.20241113.1-x86_64-gp2" --query "Images[0].ImageId" --output "text"); printf "'$region':\n ImageId: '$id'\n"; done
99
```

0 commit comments

Comments
 (0)