Giter VIP home page Giter VIP logo

Comments (8)

tremble avatar tremble commented on June 12, 2024 1

#405 was merged. This issue should be fixed in the latest versions of the module.

from community.aws.

Riice avatar Riice commented on June 12, 2024

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.

steffakasid avatar steffakasid commented on June 12, 2024

Same issue here. Would be nice to have it solved. Also switched back to aws cli to create RessourceRecords.

from community.aws.

dhikrahashim avatar dhikrahashim commented on June 12, 2024

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.

tremble avatar tremble commented on June 12, 2024

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.

ansibullbot avatar ansibullbot commented on June 12, 2024

cc @jillr @s-hertel @wimnat
click here for bot help

from community.aws.

eRadical avatar eRadical commented on June 12, 2024

This will be covered by pull request #405.

from community.aws.

tremble avatar tremble commented on June 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.