Comments (8)
#405 was merged. This issue should be fixed in the latest versions of the module.
from community.aws.
Any feedback here? We initially tried to work around this, but have removed the module and replaced it with aws cli calls for the time being.
from community.aws.
Same issue here. Would be nice to have it solved. Also switched back to aws cli to create RessourceRecords.
from community.aws.
Any fix for this. I am able to use profile and able to run the command. But the same playbook is not working in Ansible Tower. I used AWS creds and profile in Tower it is not working.
Tower dynamic inventory is working using iam role arn
from community.aws.
CC @bpennypacker and @jimbydamonk (the listed authors of this module)
I apologise for the delayed response.
This module is specifically an older boto v2 based module rather than a boto v3 based module.
This means that the configuration of the module isn't taken from the 'usual' places and doesn't have some of the features you might want (including automatically assuming an IAM Role). See also: http://boto.cloudhackers.com/en/latest/boto_config_tut.html
The long term fix would be to migrate this module to boto3 and patches would be welcome, we already have some automated testing in place which would help when it comes to reviewing the change. As a work around you could use the 'source' profile to assume the role with the sts_assume_role module, and then pass the generated credentials in as parameters.
from community.aws.
cc @jillr @s-hertel @wimnat
click here for bot help
from community.aws.
This will be covered by pull request #405.
from community.aws.
To copy from the comment on #405 for anyone else who might find this.
(ansible-dev) [17:21:16+0100] ~/vcs/ansible
[✔ ansible] $ ansible-playbook test.yml
[DEPRECATION WARNING]: Ansible will require Python 3.8 or newer on the controller starting with Ansible 2.12. Current version: 3.6.8 (default, Aug 18 2020, 08:33:21) [GCC 8.3.1 20191121 (Red Hat 8.3.1-5)]. This
feature will be removed from ansible-core in version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
[WARNING]: You are running the development version of Ansible. You should only run Ansible from "devel" if you are modifying the Ansible engine, or trying out features under development. This is a rapidly
changing source of code and can become unstable at any point.
[WARNING]: No inventory was parsed, only implicit localhost is available
[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'
PLAY [localhost] **************************************************************************************************************************************************************************************************
TASK [community.aws.route53] **************************************************************************************************************************************************************************************
changed: [localhost]
TASK [community.aws.route53] **************************************************************************************************************************************************************************************
changed: [localhost]
PLAY RECAP ********************************************************************************************************************************************************************************************************
localhost : ok=2 changed=2 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
(ansible-dev) [17:21:23+0100] ~/vcs/ansible
[✔ ansible] $ cat test.yml
- hosts: localhost
gather_facts: False
connection: local
collections:
- amazon.aws
- community.aws
tasks:
- community.aws.route53:
zone: example.test
record: home-sweet-home.example.test
type: A
value: 127.0.0.1
state: present
profile: myprofile
- community.aws.route53:
zone: example.test
record: home-sweet-home.example.test
type: A
value: 127.0.0.1
state: absent
profile: myprofile
One key piece is that "profile" is passed directly to the boto3 library, if you don't use "local", then you'll need to make sure that the profile is available wherever the module is actually being executed (note: this will be the Ansible target not the controller.)
@eRadical also said:
Yup... my bad.
I was inheriting become: true from the playbook/role.
Needless to say that on my machine there is no AWS profile under root.
from community.aws.
Related Issues (20)
- s3settings sample not found [community.aws.dms_endpoint]
- Indentation inconsistent on cloudfront_distribution module
- aws_api_gateway only creates REST-API and not HTTP
- Integration tests need to be updated to avoid unsafe templating HOT 1
- Add support for "skip_matching" preference in autoscaling_instance_refresh
- Typo in autoscaling_instance_refresh module in check mode HOT 1
- Unable to connect with SSM on Amazon Linux 2023 based instances HOT 6
- Allow bulk deletion of ECS Task Definitions HOT 1
- etag module util missing unit tests
- Implement Support for Amazon EFS Archive Storage Class and Elastic Mode in Ansible EFS Module
- aws workspaces inventory plugin HOT 1
- SSM Connection: Failed to create temporary directory HOT 2
- Add possibility to create AWS Network Load Balancer with attached Security Group
- Add throughput mode elastic for efs HOT 1
- api_gateway doesn't create a new deployment when API Gateway already exists
- eks_cluster should be able to upgrade cluster versions
- aws_ssm remote directory / HOT 4
- Add task to get a list of all ECS clusters HOT 2
- s3_lifecycle module should allow setting the ChecksumAlgorithm argument to AWS SDK put_bucket_lifecycle_configuration() call
- s3_lifecycle encounters error KeyError: 'Rules' when there are no lifecycle configuration rules on bucket HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from community.aws.