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

fix: AWS workaround #6

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

Conversation

dsloanm
Copy link
Contributor

@dsloanm dsloanm commented Nov 7, 2024

Deploying on AWS intermittently fails with i/o timeouts as the Juju Terraform provider returns inaccessible local IP addresses in the list of API controllers. See: juju/terraform-provider-juju#573

This PR contains three potential workarounds. Each determine if Juju's current cloud is 'aws' and set controller addresses to the non-local endpoint(s) if so. Details below:

Draft 1: Bash+regex in the justfile.
Draft 2: Python+JSON parsing in the justfile (incomplete - does not run).
Draft 3: Standalone get_controller_addresses.py script used as an external data source in main.tf.

To graduate from draft status, a better check would be needed for invalid IPs (currently IPs starting 172 and 252 are considered invalid), and error handling improvements.

I'm opening this PR for comments - the plan is to look at the Terraform provider issue but thoughts on polishing one of these as a workaround in the meantime?

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

Successfully merging this pull request may close these issues.

1 participant