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

Define primary hosted zones in code, with CI/CD #67

Closed
5 of 6 tasks
ohaiwalt opened this issue Apr 8, 2019 · 2 comments
Closed
5 of 6 tasks

Define primary hosted zones in code, with CI/CD #67

ohaiwalt opened this issue Apr 8, 2019 · 2 comments

Comments

@ohaiwalt
Copy link
Member

ohaiwalt commented Apr 8, 2019

Similar to that described in #2, we recently had an event where a few people wanted a DNS record and didn't know where to go.

It should be possible to manage DNS records for operationcode.org from within this repository.

To do so:

  • Create an S3 bucket for Terraform remote state storage.

  • Create AWS user credentials to provide to CircleCI, along with an IAM policy providing access to the bucket for remote state storage.

  • Get the DNSimple API key and provide it to CircleCI.

  • Use Terraform to define records as they currently exist in DNSimple. DNSimple credentials are in 1Password.

  • Run terraform import on all existing resources once the configuration is complete, and run terraform plan to validate. We should see no changes.

  • Create a record by adding a new Terraform resource definition, and on merge to master it should apply.

Bonus points if terraform plan is run against the PR prior to merging. Consider using terragrunt.

@ohaiwalt
Copy link
Member Author

interestingly, found that DNSimple apply will fail after a record is configured in Terraform if it already exists.

@ohaiwalt
Copy link
Member Author

I'm not going to exhaustively describe our DNS resources at this moment, I'll open another issue to transpose that info.

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

No branches or pull requests

1 participant