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

Lock the terraform version #222

Open
dadiorchen opened this issue Jan 25, 2024 · 4 comments
Open

Lock the terraform version #222

dadiorchen opened this issue Jan 25, 2024 · 4 comments
Assignees

Comments

@dadiorchen
Copy link
Contributor

As we metioned here: https://greenstand.slack.com/archives/CH79F6W8G/p1699325772739259 the terraform version matters, so we need to find a way to lock the version in case people accidentally run terraform in the wrong version, specially for the db grant : https://github.com/Greenstand/treetracker-infrastructure/tree/master/database-grants/terraform

@sanketnadkarni
Copy link
Contributor

sanketnadkarni commented Feb 20, 2024

perhaps required_version can be used in terraform provider block, from the terraform state file found in the digital ocean object storage the last applied version is: "terraform_version": "1.4.6",

@dadiorchen
Copy link
Contributor Author

@sanketnadkarni sounds good, can you try it and give me the report? by adding that setting

@sanketnadkarni
Copy link
Contributor

I will try it this week and confirm.

@sanketnadkarni
Copy link
Contributor

@dadiorchen please have a look at the following PR: #233
I have implemented this for the dev environment for database-grants , we can discuss further in the PR and once approved we'll merge this and replicate the same for other envs.

Could you also help me to link this issue to the PR.

Thanks.

cc @SalehMajeed

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

2 participants