rds module doesn't support/allow Boto config file?

31 views
Skip to first unread message

Darren S.

unread,
May 27, 2016, 10:18:08 PM5/27/16
to ansible...@googlegroups.com
Attempting to provision an AWS RDS instance using
http://docs.ansible.com/ansible/rds_module.html. The module indicates
that it requires boto, which itself can read configuration data from a
number of paths including ~/.boto [1]. However the module indicates
that the 'region' parameter is required, or if not specified, the
EC2_REGION environment variable. Without providing the region in
either of those settings, the play does indeed error out:


TASK [create database] **********************************

fatal: [example.com -> localhost]: FAILED! => {"changed": false,
"failed": true, "msg": "Region not specified. Unable to determine
region from EC2_REGION."}


Is it intentional that the module does not support Boto's
configuration file parameters? In this case, Boto is configured with
appropriate settings:


# ~/.boto
[Credentials]
aws_access_key_id = ********************
aws_secret_access_key = *****************************

[Boto]
ec2_region_name = us-west-2


It would be a duplication of config to have to also extract the region
name out to a shell environment file. Can this module be allowed to
support the dependent library's native configuration in the event that
either region parameter is not explicitly set?

[1] http://docs.pythonboto.org/en/latest/boto_config_tut.html

Kind regards,

--
Darren Spruell
phatb...@gmail.com

david....@sprinklr.com

unread,
May 29, 2016, 11:42:50 AM5/29/16
to Ansible Project
I think there's a swarm of errors around region handling in the AWS stuff, I encountered something similar/related in the S3 module today.
Reply all
Reply to author
Forward
0 new messages