-
Notifications
You must be signed in to change notification settings - Fork 23.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cloudformation module no longer works in 2.3.0 #23593
Comments
Update - I'm seeing a similar error trying to use the cloudformation_facts module, even with Ansible 2.2.1. Perhaps it is related to boto3? |
Are you getting this error for creating or updating a stack? Or both? |
@howinator Both. It may be related to Ubuntu versions sometime after 14.04. I tested on Ubuntu 14.04.4 and at least the cloudformation_facts module works. |
Does this work?
Note 2.3 has a rewritten cloudformation module, fully in boto3. I use Ubuntu 14.04 and 16.04, no problems. |
I created a Ubuntu instance and was able to run your reproducer without any errors. Maybe it's specific to your setup?
|
|
I am getting the following exception from the module - as per Boto3 docs all parameters must be passed as a string, looking at the current CloudFormation module code, there is no cast to a string. In Ansible 2.2 and prior, same approach was taken but call was made to a Boto provider which I suspect did this automatically for you.
|
Confirming changing this line of code to the following:
seems to fix the problem |
@jagibson Hi, can you answer tedder's question using the AWS CLI and if that works, can you test mixja's fix, please? |
@s-hertel Yes, but I probably won't be able to get to it until next week. Update: the 'aws cloudformation describe-stacks --max-items 1' command works fine |
|
Just as a follow-up - I've since moved to a new laptop and am running Ansible 2.3.1. I've installed all of my python modules inside of a virtualenv environment (besides the os defaults) and I'm not getting the error anymore. |
ISSUE TYPE
COMPONENT NAME
cloudformation.py
ANSIBLE VERSION
CONFIGURATION
ansible.cfg
OS / ENVIRONMENT
Ubuntu 16.10
ansible (2.3.0.0)
boto (2.46.1)
boto3 (1.4.4)
botocore (1.5.39)
SUMMARY
When running the cloudformation module in Ansible 2.3.0 the play fails with the error:
"botocore.exceptions.ClientError: An error occurred (InvalidAction) when calling the DescribeStacks operation: The action DescribeStacks is not valid for this web service."
When running Ansible 2.2.1 the module works as expected.
STEPS TO REPRODUCE
test.yml
tmp/dev-host1-us-east-1-a.yml
EXPECTED RESULTS
Ansible runs successfully
(here's the 2.2.1 output)
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: