Skip to content
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

ec2_instance fails with strange error message when subnet and security_group don't match. #213

Closed
tremble opened this issue Aug 28, 2020 · 2 comments · Fixed by #214
Closed
Assignees
Labels
affects_2.10 bug This issue/PR relates to a bug has_pr module module plugins plugin (any type)

Comments

@tremble
Copy link
Contributor

tremble commented Aug 28, 2020

SUMMARY

Following #22 one of the integration tests started failing with a "ParameterValidationError". It turned out this was because a subnet wasn't specified, so it was dropped into the default VPC, and when it tried to find the security group it was having problems.

ISSUE TYPE
  • Bug Report
COMPONENT NAME

ec2_instance

ANSIBLE VERSION

devel

CONFIGURATION

default

OS / ENVIRONMENT

integration tests

STEPS TO REPRODUCE

Create an instance using a security group and subnet from different VPCs

EXPECTED RESULTS

Error message referencing the VPC mismatch

ACTUAL RESULTS

A failure with:

"msg": "Failed to handle existing instances i-0e005a8c34c0e9e4f: An error occurred (InvalidParameterCombination) when calling the ModifyInstanceAttribute operation: No attributes specified."

@tremble tremble self-assigned this Aug 28, 2020
@ansibullbot
Copy link

Files identified in the description:

If these files are inaccurate, please update the component name section of the description or use the !component bot command.

click here for bot help

@ansibullbot
Copy link

@ansibullbot ansibullbot added affects_2.10 bug This issue/PR relates to a bug module module plugins plugin (any type) labels Aug 28, 2020
alinabuzachis pushed a commit to alinabuzachis/community.aws that referenced this issue May 25, 2022
* Add AWSRetry to ec2_key

* changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects_2.10 bug This issue/PR relates to a bug has_pr module module plugins plugin (any type)
Projects
None yet
2 participants