Skip to content

A simple terraform project to use along with atlantis bootstrap mode

License

Notifications You must be signed in to change notification settings

rmaloloyon/atlantis-example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

.github/workflows/codecov.yaml

Atlantis Setup Guide for GitHub Actions

Introduction

Atlantis is a tool that helps you automate Terraform workflows. In this guide, we'll set up Atlantis to work with GitHub Actions for managing your Terraform configurations.

Prerequisites

  • A GitHub repository containing your Terraform configurations.
  • GitHub Actions enabled for your repository.

Steps

1. Create GitHub Personal Access Token

  1. Go to your GitHub account settings.
  2. Navigate to "Developer settings" > "Personal access tokens" > "Generate token."
  3. Select the necessary scopes such as repo and workflow.
  4. Click "Generate token" and copy the generated token.

2. Configure GitHub Secrets

  1. In your GitHub repository, go to "Settings" > "Secrets" > "New repository secret."
  2. Add a new secret with the name ATLANTIS_GH_TOKEN and paste the GitHub Personal Access Token you generated.

3. Create Atlantis Configuration

  1. Create a file named .atlantis.yaml in the root of your Terraform project.

    # .atlantis.yaml
    
    projects:
    - name: my-terraform-project
      dir: path/to/terraform/config
      autoplan:
        when_modified: ["*.tf", "*.hcl"]

About

A simple terraform project to use along with atlantis bootstrap mode

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published