First commit
This commit is contained in:
commit
a331d56782
4
README.txt
Normal file
4
README.txt
Normal 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
14
ec2-assign-eip.json
Normal 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/*"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user