First commit

This commit is contained in:
Git Commiter for 96-fromsofia.net 2023-02-27 00:43:53 +00:00
commit a331d56782
2 changed files with 18 additions and 0 deletions

4
README.txt Normal file
View File

@ -0,0 +1,4 @@
Use this policy with an EC2 instance.
It will grant the necessary permissions for your instance to assign an EIP to itself.
This can be used with an ASG without an LB to ensure your EC2 instance always has the same public IP.

14
ec2-assign-eip.json Normal file
View File

@ -0,0 +1,14 @@
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "EC2AssociateEIP",
"Effect": "Allow",
"Action": "ec2:AssociateAddress",
"Resource": [
"arn:aws:ec2:*:<ACCOUNT_ID>:elastic-ip/<ALLOCATION_ID>",
"arn:aws:ec2:*:<ACCOUNT_ID>:instance/*"
]
}
]
}