Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version: 2
- projects:
- - name: sandbox
- dir: .
- terraform_version: 0.11.11
- autoplan:
- enabled: true
- when_modified: ["*.tf*", "atlantis.yaml"]
- workspace: sandbox
- workflow: sandbox
- - name: dev
- dir: .
- terraform_version: 0.11.11
- autoplan:
- enabled: true
- when_modified: ["*.tf*", "atlantis.yaml"]
- workspace: dev
- workflow: test
- - name: test
- dir: .
- terraform_version: 0.11.11
- autoplan:
- enabled: true
- when_modified: ["*.tf*", "atlantis.yaml"]
- workspace: test
- workflow: test
- - name: prod
- dir: .
- terraform_version: 0.11.11
- apply_requirements: ["mergeable"]
- autoplan:
- enabled: true
- when_modified: ["*.tf*", "atlantis.yaml"]
- workspace: prod
- workflow: prod
- workflows:
- sandbox:
- plan:
- steps:
- - run: rm -rf .terraform
- - init:
- extra_args: ["-backend-config=sandbox.backend.tfvars", "-upgrade=true"]
- - run: terraform fmt -check
- - run: tflint
- - plan:
- extra_args: ["-var-file=$WORKSPACE.tfvars", "-lock=true"]
- apply:
- steps:
- - apply:
- extra_args: ["-lock=true"]
- test:
- plan:
- steps:
- - run: rm -rf .terraform
- - init:
- extra_args: ["-backend-config=test.backend.tfvars", "-upgrade=true"]
- - run: terraform fmt -check
- - run: tflint
- - plan:
- extra_args: ["-var-file=$WORKSPACE.tfvars", "-lock=true"]
- apply:
- steps:
- - apply:
- extra_args: ["-lock=true"]
- prod:
- plan:
- steps:
- - run: rm -rf .terraform
- - init:
- extra_args: ["-backend-config=prod.backend.tfvars", "-upgrade=true"]
- - run: terraform fmt -check
- - run: tflint
- - plan:
- extra_args: ["-var-file=$WORKSPACE.tfvars", "-lock=true"]
- apply:
- steps:
- - apply:
- extra_args: ["-lock=true"]
Add Comment
Please, Sign In to add comment