runatlantis / atlantis

Terraform Pull Request Automation
https://www.runatlantis.io
Other
7.68k stars 1.05k forks source link

Atlantis config yaml file, AWS SSM call #2245

Open JafoFett opened 2 years ago

JafoFett commented 2 years ago

I'm trying to deploy Atlantis on a standalone EC2, and I have my github token and webhook secret in AWS SSM parameter store...is there anyway to run Atlantis as a systemd service and have it access the values in SSM? I'd like to use the atlantis server --config /home/atlantis/config.yaml option and then from within the yaml file have a call to SSM, but I can't seem to get it to work. This is my current try in config.yaml: gh-token: {{resolve:ssm:/atlantis/github/user/token:1}}

Asking for help...

mcrivar commented 2 years ago

If you go with service approach, I think you can run a script that will get all your values from SSM and afterward execute the start on atlantis passing it all the relevant args. I'm running Atlantis in ecs, reading params from SSM and passing it as ENV variables/secrets.