-
Notifications
You must be signed in to change notification settings - Fork 0
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
Migration document for domain-protect to terraform-aws-domain-protect #23
Comments
Some people will just apply the latest version of We may want to consider including a If the user had replaced defaults with their own values, this would result in an error prompting the user to correct. On the other hand, we'd want to ensure that including |
Yes exactly, this is where a https://developer.hashicorp.com/terraform/language/modules/develop/refactoring e.g. # domain-protect/domain-protect/migrations.tf
moved {
from = module.lambda-role
to = module.domain_protect.module.lambda_role
}
# domain-protect/domain-protect/main.tf
module "domain_protect" {
source = "git::https://github.com/domain-protect/terraform-aws-domain-protect.git?ref=main"
# arguments
} |
While I understand that this is the current methodology of the github-actions-deploy-latest workflow, in my humble opinion, I don't think this is best practice. It's always better to pin versions and bump them in case there is a breaking change introduced. One way we can "break" that pattern is by pinning the module reference, not to a branch (like in the above example), but instead to a ref like a version tag. |
Agreed |
It would be good to create a migration document
I currently have the github actions deployment setup now and I'm planning to document the steps to migrate from an auto deployment workflow using domain-protect/domain-protect to a static terraform code workflow using domain-protect/terraform-aws-domain-protect.
The text was updated successfully, but these errors were encountered: