Skip to content

Instantly share code, notes, and snippets.

@artem-hatchenko
Created January 5, 2024 21:32
Show Gist options
  • Save artem-hatchenko/212d0e3d75a0adbd062ada9f7ecdb437 to your computer and use it in GitHub Desktop.
Save artem-hatchenko/212d0e3d75a0adbd062ada9f7ecdb437 to your computer and use it in GitHub Desktop.
ec2_spots_eip_iam_policy.json
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"dynamodb:Scan",
"dynamodb:PutItem",
"dynamodb:UpdateItem"
],
"Resource": "arn:aws:dynamodb:YOUR_REGION:YOUR_ACCOUNT_ID:table/EC2-Spots-EIP"
},
{
"Effect": "Allow",
"Action": [
"ec2:DescribeInstances",
"ec2:DescribeAddresses",
"ec2:AssociateAddress"
],
"Resource": "*"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment