Skip to content

shini4i/docker-atlantis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

atlantis

A custom atlantis docker image with built-in infracost, transcrypt, terragrunt and terragrunt-atlantis-config

GitHub Workflow Status GitHub last commit (branch) GitHub tag (latest by date)

Showcase

Download latest built image

docker pull ghcr.io/shini4i/atlantis:v0.27.3

Configuration example

Transcrypt

Custom workflow example utilizing transcrypt:

workflows:
  terraform-transcrypt:
    plan:
      steps:
        - run: transcrypt -c aes-256-cbc -p "$TRANSCRYPT_PASSWORD" --yes || transcrypt -c aes-256-cbc -p "$TRANSCRYPT_PASSWORD" --upgrade --yes
        - init
        - plan
    apply:
      steps:
        - apply

Terragrunt

Atlantis server configuration example utilizing terragrunt + terragrunt-atlantis-config:

repoConfig: |
  ---
  repos:
    - id: /.*/
      apply_requirements: [mergeable, approved]
      workflow: default
      allowed_overrides: []
      allow_custom_workflows: false
      pre_workflow_hooks:
        - run: terragrunt-atlantis-config generate --output atlantis.yaml --autoplan
  workflows:
    default:
      plan:
        steps: 
          # additional init step is required if you need to provide credentials for backend config
          - run: terragrunt init -backend-config="username=$ATLANTIS_USER" -backend-config="password=$ATLANTIS_TOKEN"
          - run: terragrunt plan -input=false -out=$PLANFILE
          - run: terragrunt show -json $PLANFILE > $SHOWFILE
      apply:
        steps:
          - run: terragrunt apply -input=false $PLANFILE

About

A custom atlantis docker image with built-in transcrypt, terragrunt and terragrunt-atlantis-config

Topics

Resources

Stars

Watchers

Forks