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

[WIP] Stabilize ec2_vpc_nat_gateway #437

Conversation

alinabuzachis
Copy link
Contributor

SUMMARY

Stabilize ec2_vpc_nat_gateway module

  • Uses AWSRetry
  • Catches and handles (botocore.exceptions.BotoCoreError, botocore.exceptions.ClientError) on boto API calls
  • Uses module.fail_json_aws when handling boto failures
  • Documentation

Depends on https://github.com/ansible-collections/community.aws/pull/436

COMPONENT NAME

ec2_vpc_nat_gateway

alinabuzachis and others added 4 commits February 22, 2021 19:54
     * Add additional integration tests for ec2_vpc_nat_gateway_info and ec2_vpc_nat_gatewy modules
     * Add ec2_vpc_nat_gateway_info in aliases
     * Fix NAT gateway search

Signed-off-by: Alina Buzachis <[email protected]>
 * fix broken check_mode
 * uncomment integration tests in check_mode

Signed-off-by: Alina Buzachis <[email protected]>
Signed-off-by: Alina Buzachis <[email protected]>
@ansibullbot
Copy link

@ansibullbot ansibullbot added WIP Work in progress integration tests/integration module module needs_triage plugins plugin (any type) tests tests labels Feb 22, 2021
@tremble
Copy link
Contributor

tremble commented Feb 23, 2021

Hi @alinabuzachis,

I have also done some work on stabilising these tests: #427

I tried to limit the changes to just those needed for stability, oddly enough the retry decorator on its own didn't seem to fix the issue, some of the time searches just weren't finding resources, and re-ran the create calls. I found that using a paginator on the filtered describe calls seemed to mean that we get results more consistently.

I really like that you're cleaning up the check_mode tests in this PR. Given you're only using aws_retry=True in here rather than pagination, I think it might be worth merging #427 and then rebasing this PR over the top. How would you feel about that?

@alinabuzachis
Copy link
Contributor Author

Hi @tremble,

I realised you were working on the nat gateway stabilisation only after opening the PR. I agree with you to merge your PR first.
Thank you.

@tremble
Copy link
Contributor

tremble commented Feb 23, 2021

Closing this off as a duplicate. We may want to pull the docs cleanup into its own PR.

@tremble tremble closed this Feb 23, 2021
alinabuzachis added a commit to alinabuzachis/community.aws that referenced this pull request May 25, 2022
…ections#437)

ec2_ami - ensure tags are propagated to the snapshot(s)

SUMMARY

ec2_ami - ensure tags are propagated to the snapshot(s) when creating an AMI.
Fixes ansible-collections#368
Using --tag-specifications would introduce additional complexity for handling tags within the ec2_ami module. A simple approach would be to ensure tags propagation during AMI creation to the snapshot(s) and then edit snapshot(s) tags using the ec2_tag module.
ISSUE TYPE


Feature Pull Request

COMPONENT NAME

ec2_ami

Reviewed-by: Jill R <None>
Reviewed-by: None <None>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
integration tests/integration module module plugins plugin (any type) tests tests WIP Work in progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants