ec2_launch_template: Fix integration tests (#61260)

* ec2_launch_template: (integration tests) make sure security_token is optional

* ec2_launch_template: (integration tests) add dependencies at the top level so they're pulled into the docker containers

* Update Hacking Compute Policies for Launch Templates
pull/61820/head
Mark Chappell 5 years ago committed by ansibot
parent 7be672e1c2
commit adfaefb732

@ -33,6 +33,9 @@
"Sid": "AllowUnspecifiedEC2Resource", "Sid": "AllowUnspecifiedEC2Resource",
"Effect": "Allow", "Effect": "Allow",
"Action": [ "Action": [
"ec2:*LaunchTemplate",
"ec2:*LaunchTemplateVersion",
"ec2:*LaunchTemplateVersions",
"ec2:AllocateAddress", "ec2:AllocateAddress",
"ec2:AssociateAddress", "ec2:AssociateAddress",
"ec2:AssociateDhcpOptions", "ec2:AssociateDhcpOptions",

@ -0,0 +1,3 @@
dependencies:
- prepare_tests
- setup_ec2

@ -12,7 +12,7 @@
group/aws: group/aws:
aws_access_key: "{{ aws_access_key }}" aws_access_key: "{{ aws_access_key }}"
aws_secret_key: "{{ aws_secret_key }}" aws_secret_key: "{{ aws_secret_key }}"
security_token: "{{ security_token }}" security_token: "{{ security_token | default(omit) }}"
region: "{{ aws_region }}" region: "{{ aws_region }}"
block: block:
- include_tasks: cpu_options.yml - include_tasks: cpu_options.yml

@ -7,7 +7,7 @@
group/aws: group/aws:
aws_access_key: "{{ aws_access_key }}" aws_access_key: "{{ aws_access_key }}"
aws_secret_key: "{{ aws_secret_key }}" aws_secret_key: "{{ aws_secret_key }}"
security_token: "{{ security_token }}" security_token: "{{ security_token | default(omit) }}"
region: "{{ aws_region }}" region: "{{ aws_region }}"
tasks: tasks:
- block: - block:

Loading…
Cancel
Save