-
Notifications
You must be signed in to change notification settings - Fork 398
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
Stabilize and improve ec2_vpc_endpoint modules #473
Stabilize and improve ec2_vpc_endpoint modules #473
Conversation
c758f69
to
70cbdea
Compare
plugins/modules/ec2_vpc_endpoint.py
Outdated
time.sleep(polling_increment_secs) | ||
except (botocore.exceptions.ClientError, botocore.exceptions.BotoCoreError) as e: | ||
module.fail_json_aws(e, msg='Failure while waiting for status') | ||
def match_endpoints(module, endpoint): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You use module just to get access to the route_table_ids
and service
parameters. In order to reduce the inter-dependencies, I suggest to directly pass this two values to the function.
By doing so, it would be easier to write an unit-test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To be clear, this is a nitpicking level suggestion as I know we use to pass module
everywhere.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a good point though, and easily changed - thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jillr It looks good to me.
- Add tagging support - Make idempotent - Better exception handling - Better check_mode support - Use module_utils for common functions - Enable retries on common AWS failures
2fa211b
to
b2317d3
Compare
try: | ||
result = client.describe_vpc_endpoints(aws_retry=True, **params) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we're cleaning up this should probably be moved to a paginated query, they seem to be more consistent than simple describe lookups.
…lections#473) * Stabilize and improve ec2_vpc_endpoint modules - Add tagging support - Make idempotent - Better exception handling - Better check_mode support - Use module_utils for common functions - Enable retries on common AWS failures * Make endpoint deletion idempotent in check_mode * Sanity fixes * Address review feedback This commit was initially merged in https://github.com/ansible-collections/community.aws See: ansible-collections@f1d338d
* Stabilize and improve ec2_vpc_endpoint modules - Add tagging support - Make idempotent - Better exception handling - Better check_mode support - Use module_utils for common functions - Enable retries on common AWS failures * Make endpoint deletion idempotent in check_mode * Sanity fixes * Address review feedback
* Stabilize and improve ec2_vpc_endpoint modules - Add tagging support - Make idempotent - Better exception handling - Better check_mode support - Use module_utils for common functions - Enable retries on common AWS failures * Make endpoint deletion idempotent in check_mode * Sanity fixes * Address review feedback
* Stabilize and improve ec2_vpc_endpoint modules - Add tagging support - Make idempotent - Better exception handling - Better check_mode support - Use module_utils for common functions - Enable retries on common AWS failures * Make endpoint deletion idempotent in check_mode * Sanity fixes * Address review feedback
* Stabilize and improve ec2_vpc_endpoint modules - Add tagging support - Make idempotent - Better exception handling - Better check_mode support - Use module_utils for common functions - Enable retries on common AWS failures * Make endpoint deletion idempotent in check_mode * Sanity fixes * Address review feedback This commit was initially merged in https://github.com/ansible-collections/community.aws See: ansible-collections@f1d338d
…ions#473) Add some integration tests for aws_service_ip_ranges SUMMARY Add some integration tests for aws_service_ip_ranges ISSUE TYPE Feature Pull Request COMPONENT NAME aws_service_ip_ranges ADDITIONAL INFORMATION Initial tests to support ansible-collections#430 Reviewed-by: Alina Buzachis <None> Reviewed-by: None <None>
SUMMARY
ISSUE TYPE
COMPONENT NAME
ec2_vpc_endpoint
ec2_vpc_endpoint_info