Skip to content

Fix single-EC2 Route53 AAAA record and daemon-reload ordering - #149

Open
UnknownJoe796 wants to merge 1 commit into
version-5.3from
v5/ec2-deploy-fixes
Open

Fix single-EC2 Route53 AAAA record and daemon-reload ordering#149
UnknownJoe796 wants to merge 1 commit into
version-5.3from
v5/ec2-deploy-fixes

Conversation

@UnknownJoe796

Copy link
Copy Markdown
Contributor

Two narrow single-EC2 deployment fixes, recovered from the stale apple-sso
branch where they were bundled with unrelated Apple SSO work.

  • The Route53 AAAA record wrapped ipv6_addresses -- already a list -- in
    another listOf(...). Now indexes [0].
  • systemctl daemon-reload ran after systemctl enable, so the reload could
    not see the unit it was meant to pick up. Moved before.

Terraform-only; no test coverage exists for the deploy builders, so this is
verified by compilation and review, not by tests.

"type" - "AAAA"
"ttl" - 300
"records" - listOf(expression("aws_instance.ubuntu.ipv6_addresses"))
"records" - listOf(expression("aws_instance.ubuntu.ipv6_addresses[0]"))

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this actually be
expression("aws_instance.ubuntu.ipv6_addresses")
instead?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Further review, I believe this is OK; the suggestion would work but it will always be a single IP so this is safe

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.

2 participants