No error when missing permission to reboot instance #671
Labels
bug
This issue/PR relates to a bug
jira
needs_verified
Some one might want to take a look at this and reproduce it to confirm
python3
Summary
I'm rebooting ec2-instance by
amazon.aws.ec2_instance: state: rebooted
and was quite surprised it returned successfully immediately. Turns out role didn't have permissions to StopInstances,StartInstances.
I would've expected task to fail.
Issue Type
Bug Report
Component Name
amazon.aws.ec2_instance
Ansible Version
Collection Versions
AWS SDK versions
Configuration
OS / Environment
aws linux2
Steps to Reproduce
Role with no IAM permissions to "ec2:StartInstances" nor "ec2:StopInstances"
Expected Results
Any error
Actual Results
OK...
Code of Conduct
The text was updated successfully, but these errors were encountered: