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

feat: Terragrunt to create the Route53 hosted zone #95

Merged
merged 6 commits into from
Nov 2, 2021

Conversation

patheard
Copy link
Member

@patheard patheard commented Nov 2, 2021

Summary

This hosted zone holds all DNS records required by the Forms service.

Also included:

  • Terragrunt plan and apply GitHub workflows
  • Fix to tfstate.tf S3 remote state to enable versioning.
  • Fix to .gitignore to allow Terraform lock files. This allow us
    to pin provider/module versions for consistent Terraform
    plan and apply commands.
  • Makefile with common commands.

Related

This hosted zone holds all DNS records required by the Forms service.

Also included are the Terragrunt plan and apply GitHub workflows that
run for PRs and merges to main.
This lock file allows the AWS provider and module versions
to be pinned so we can have consistent Terraform plan
and apply runs.
This allows for rollbacks if there are problems with the .tfstate.
Copy link
Contributor

@bryan-robitaille bryan-robitaille left a comment

Choose a reason for hiding this comment

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

LGTM

@github-actions
Copy link

github-actions bot commented Nov 2, 2021

Scratch: hosted_zone

✅   Terraform Format: success
✅   Terraform Plan: success
✅   Conftest: success

Plan: 1 to add, 0 to change, 0 to destroy
Show plan
Resource actions are indicated with the following symbols:
  + create

Terraform will perform the following actions:

  # aws_route53_zone.form_viewer will be created
  + resource "aws_route53_zone" "form_viewer" {
      + arn           = (known after apply)
      + comment       = "Managed by Terraform"
      + force_destroy = false
      + id            = (known after apply)
      + name          = "forms-scratch.cdssandbox.xyz"
      + name_servers  = (known after apply)
      + tags          = {
          + "CostCentre" = "forms-platform-scratch"
          + "Terraform"  = "true"
        }
      + tags_all      = {
          + "CostCentre" = "forms-platform-scratch"
          + "Terraform"  = "true"
        }
      + zone_id       = (known after apply)
    }

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

─────────────────────────────────────────────────────────────────────────────

Saved the plan to: plan.tfplan

To perform exactly these actions, run the following command to apply:
    terraform apply "plan.tfplan"
Releasing state lock. This may take a few moments...
Show Conftest results
9 tests, 9 passed, 0 warnings, 0 failures, 0 exceptions

@patheard patheard merged commit 0dcb4ae into main Nov 2, 2021
@patheard patheard deleted the feat/terragrunt-network branch November 2, 2021 17:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants