Deploy terraform in Gitlab CI/CD using Atlantis and Hashicorp Vault

Gitlab Setup I assume you’re already running gitlab somehow somewhere. If you’re using Gitlab as SaaS, your Atlantis Endpoint must be reachable from the internet. Please bear in mind, that the status GUI of atlantis does not provide authentication, if you don’t protect that route, you might expose sensitive information about your repos to the world. (That was the case while writing the article, might have changed now.) Create Access-Token Using a Service-Account / Bot In your project settings or group settings of your gitlab repo, you need to create a new Access Token. You might need admin access to do this. Remember the name of the token, you will need it in a minute. Save the Token in your password manager, we will need it to configure atlantis. ...

July 14, 2024 · 6 min · Seb