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

swap bastion EC2 #598

Merged
merged 1 commit into from
Oct 7, 2024
Merged

swap bastion EC2 #598

merged 1 commit into from
Oct 7, 2024

Conversation

MarcoIeni
Copy link
Member

@MarcoIeni MarcoIeni commented Oct 2, 2024

based on #595 (comment)

  # aws_route53_record.bastion must be replaced
-/+ resource "aws_route53_record" "bastion" {
      + allow_overwrite                  = (known after apply)
      ~ fqdn                             = "bastion.infra.rust-lang.org" -> (known after apply)
      ~ id                               = "Z237AC8WS9NFCS_bastion.infra.rust-lang.org_A" -> (known after apply)
      - multivalue_answer_routing_policy = false -> null
      ~ name                             = "bastion.infra.rust-lang.org" -> "bastion1.infra.rust-lang.org" # forces replacement
        # (4 unchanged attributes hidden)
    }

  # aws_route53_record.bastion2 must be replaced
-/+ resource "aws_route53_record" "bastion2" {
      + allow_overwrite                  = (known after apply)
      ~ fqdn                             = "bastion2.infra.rust-lang.org" -> (known after apply)
      ~ id                               = "Z237AC8WS9NFCS_bastion2.infra.rust-lang.org_A" -> (known after apply)
      - multivalue_answer_routing_policy = false -> null
      ~ name                             = "bastion2.infra.rust-lang.org" -> "bastion.infra.rust-lang.org" # forces replacement
        # (4 unchanged attributes hidden)
    }

Plan: 2 to add, 0 to change, 2 to destroy.

@MarcoIeni MarcoIeni requested a review from jdno October 2, 2024 10:38
Copy link
Member

@jdno jdno left a comment

Choose a reason for hiding this comment

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

This is fine for now, but long-term I'd really like to clean up the bastion2 resource name. Especially for the DNS record, I find it a bit confusing that the resource is not named the same as the record. Guess when everything is done, we can relatively easily rename the resources in the Terraform state and files.

@MarcoIeni
Copy link
Member Author

MarcoIeni commented Oct 7, 2024

applied, but the old address still points to the old ec2 for me.
Maybe I need to wait for dns propagation

@MarcoIeni MarcoIeni merged commit 25d5c85 into master Oct 7, 2024
3 checks passed
@MarcoIeni MarcoIeni deleted the swap-bastion-ec2 branch October 7, 2024 13:24
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