Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

MWAA verify_env script doesn't correctly identify available endpoints #204

Open
daniel-bowman-nationwide opened this issue Jun 30, 2022 · 0 comments

Comments

@daniel-bowman-nationwide

vpc_endpoints = [endpoint for endpoint in vpc_endpoints if all(subnet in s_ids for subnet in

In the above line of code the all() method causes the endpoint identification to fail if the endpoint is attached to more subnets than the environment is attached to. The correct approach would be to subtract the subnets the endpoint has from the subnets the environment has and ensure there are none remaining for the environment.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant