Understanding my deployment scenario: workspaces #4306
-
Hi all, Brand new to Atlantis but love the idea. I'm trying to understand how Atlantis would fit into my current workflow. I currently have all Terraform shared amongst each environment, which I separate via workspaces. So the typical flow to deploy a change might be:
My main question is: in our team's provided flow, using Atlantis, how would I promote changes between environments? Is the idea that pull requests that change things are automatically applied to say, dev when merged, and then somehow promoted to the next environment via another mechanism? This seems like a fantastic tool to adopt but I just want to make sure I conceptually understand it for our scenario first. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Ah, I think I was very close to the right spot in the docs when I asked this 😅 I think the solution in this case would be to run e.g
If someone can confirm whether I'm correct, I'd appreciate it! |
Beta Was this translation helpful? Give feedback.
-
yes that should work. |
Beta Was this translation helpful? Give feedback.
yes that should work.
Automatic apply is not possible so you need to run the apply command.
you will need an custom workflow in your atlantis.yaml and define your projects and workspaces for each.
Atlantis work on merges so once the PR to dev is merged then you can create another PR to apply to test, stage, prod etc.
You can get creative with some post_workflow_hooks and create a script to create an automated PR for you etc.