summaryrefslogtreecommitdiffstats
path: root/hacking/aws_config
diff options
context:
space:
mode:
authorDaniel Shepherd <shepdelacreme@users.noreply.github.com>2017-11-16 20:58:12 +0100
committerRyan Brown <sb@ryansb.com>2017-11-16 20:58:12 +0100
commitcfbe9c8aee7d593a18243257b7965f1fbc5c32d4 (patch)
treef682fa58e696493092d6dfcf1fa0a418b8902ba0 /hacking/aws_config
parentConfig continued (#31024) (diff)
downloadansible-cfbe9c8aee7d593a18243257b7965f1fbc5c32d4.tar.xz
ansible-cfbe9c8aee7d593a18243257b7965f1fbc5c32d4.zip
[cloud] Add IPv6 support for ec2_vpc_subnet module(#30444)
* Add integration test suite for ec2_vpc_subnet * wrap boto3 connection in try/except update module documentation and add RETURN docs add IPv6 support to VPC subnet module rename ipv6cidr to ipv6_cidr, use required_if for parameter testing, update some failure messages to be more descriptive DryRun mode was removed from this function a while ago but exception handling was still checking for it, removed add wait and timeout for subnet creation process fixup the ipv6 cidr disassociation logic a bit per review update RETURN values per review added module parameter check removed DryRun parameter from boto3 call since it would always be false here fix subnet wait loop add a purge_tags parameter, fix the ensure_tags function, update to use compare_aws_tags func fix tags type error per review remove **kwargs use in create_subnet function per review * rebased on #31870, fixed merge conflicts, and updated error messages * fixes to pass tests * add test for failure on invalid ipv6 block and update tags test for purge_tags=true function * fix pylint issue * fix exception handling error when run with python3 * add ipv6 tests and fix module code * Add permissions to hacking/aws_config/testing_policies/ec2-policy.json for adding IPv6 cidr blocks to VPC and subnets * fix type in tests and update assert conditional to check entire returned value * add AWS_SESSION_TOKEN into environment for aws cli commands to work in CI * remove key and value options from call to boto3_tag_list_to_ansible_dict * remove wait loop and use boto3 EC2 waiter * remove unused register: result vars * revert az argument default value to original setting default=None
Diffstat (limited to 'hacking/aws_config')
-rw-r--r--hacking/aws_config/testing_policies/ec2-policy.json2
1 files changed, 2 insertions, 0 deletions
diff --git a/hacking/aws_config/testing_policies/ec2-policy.json b/hacking/aws_config/testing_policies/ec2-policy.json
index c5623b6237..2ccababf7f 100644
--- a/hacking/aws_config/testing_policies/ec2-policy.json
+++ b/hacking/aws_config/testing_policies/ec2-policy.json
@@ -10,6 +10,8 @@
"ec2:AllocateAddress",
"ec2:AssociateAddress",
"ec2:AssociateRouteTable",
+ "ec2:AssociateVpcCidrBlock",
+ "ec2:AssociateSubnetCidrBlock",
"ec2:CreateImage",
"ec2:AttachInternetGateway",
"ec2:CreateInternetGateway",