Skip to content

Commit

Permalink
Add region to ansible-test AWS cloud config. (ansible#30733)
Browse files Browse the repository at this point in the history
* Add region to ansible-test AWS cloud config.
* Fix .gitignore for ansible-test cloud config.
  • Loading branch information
mattclay authored Sep 22, 2017
1 parent 6d3307e commit ab89b1b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ Vagrantfile
.vagrant
ansible.egg-info/
/shippable/
/test/integration/cloud-config-azure.yml
/test/integration/cloud-config-*.*
!/test/integration/cloud-config-*.*.template
# Release directory
packaging/release/ansible_release
/.cache/
Expand Down
2 changes: 2 additions & 0 deletions test/integration/cloud-config-aws.yml.template
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
aws_access_key: @ACCESS_KEY
aws_secret_key: @SECRET_KEY
security_token: @SECURITY_TOKEN
aws_region: @REGION
# aliases for backwards compatibility with older integration test playbooks
ec2_access_key: '{{ aws_access_key }}'
ec2_secret_key: '{{ aws_secret_key }}'
ec2_region: '{{ aws_region }}'
1 change: 1 addition & 0 deletions test/runner/lib/cloud/aws.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ def _setup_dynamic(self):
ACCESS_KEY=credentials['access_key'],
SECRET_KEY=credentials['secret_key'],
SECURITY_TOKEN=credentials['session_token'],
REGION='us-east-1',
)

config = self._populate_config_template(config, values)
Expand Down

0 comments on commit ab89b1b

Please sign in to comment.