This message was deleted.
# atlantis-community
s
This message was deleted.
j
Set it in your
atlantis.yaml
per-configuration if you really want to:
Copy code
- dir: terraform/tenants/prod/my_infra_config
    terraform_version: 1.5.3
    autoplan:
      when_modified: [ "../../../modules/**/*.tf", "*.tf*" ]
🤔 1
Or auto-generate the atlantis yaml as a pre-workflow step so you have more control from the top-down.
Also encourage your developers to set versions in their repositories so they don't automatically pick up new tf versions by accident. (not atlantis, this is just purely in terraform)
Copy code
terraform {
  required_version = ">=1.5.3, <1.6.0"
  required_providers {
    aws = {
      source  = "hashicorp/aws"
      version = "5.6.2"
    }
v
Yeah, that's what I am trying to implement, maybe will consider some checkings in the future to enforce the version used in the code. But that helps a lot. Thanks @Jason Reslock!
j
👍