summaryrefslogtreecommitdiff
path: root/hacking
diff options
context:
space:
mode:
authorMark Chappell <mchappel@redhat.com>2019-11-13 21:27:35 +0100
committerJill R <4121322+jillr@users.noreply.github.com>2019-11-13 13:27:35 -0700
commitb5f484dcc35f2b6adfbf53d075762578b83d942f (patch)
tree5d74151c4ec6867bd0afd3e6901b2d8f720b3928 /hacking
parentf8f76628500052ad3521fbec16c073ae7f99d287 (diff)
downloadansible-b5f484dcc35f2b6adfbf53d075762578b83d942f.tar.gz
ec2_eip Don't throw an exception when re-releasing an EIP (idempotency) (#62332)
* ec2_eip: (integration tests) move to using module_defaults * ec2_eip: (integration tests) expand integration tests Also clean up a little - Delete EIPs when we finish testing them (reduce the chance of hitting limits) - Rejig deletion so that it works when runs fail - Add tests for ec2_eip_info * ec2_eip: Minor doc tweaks * ec2_eip: Don't throw an exception when we try to disassociate an already disassociated EIP * ec2_eip: Add missing IAM policy (manage IGWs) * ec2_eip: (integration tests) Use the VPC as a crude lock to avoid running parallel tests We test that untagged EIPs come and go as we expect, if multiple tests are running in parallel this confuses things * Fix ec2_eip association
Diffstat (limited to 'hacking')
-rw-r--r--hacking/aws_config/testing_policies/network-policy.json10
1 files changed, 10 insertions, 0 deletions
diff --git a/hacking/aws_config/testing_policies/network-policy.json b/hacking/aws_config/testing_policies/network-policy.json
index cec617ca29..55ef93fcfa 100644
--- a/hacking/aws_config/testing_policies/network-policy.json
+++ b/hacking/aws_config/testing_policies/network-policy.json
@@ -14,6 +14,16 @@
"Resource": "*"
},
{
+ "Sid": "AllowInternetGatewayManagement",
+ "Effect": "Allow",
+ "Action": [
+ "ec2:CreateInternetGateway",
+ "ec2:DeleteInternetGateway",
+ "ec2:DescribeInternetGateways"
+ ],
+ "Resource": "*"
+ },
+ {
"Sid": "AllowTransitGatewayManagement",
"Effect": "Allow",
"Action": [