Skip to content

Quick start for using Resourcely with Github Actions as the Terraform runner.

Notifications You must be signed in to change notification settings

Resourcely-Inc/scaffolding-github-actions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Resourcely Github Actions Scaffolding

This repository demonstrates how to integrate Resourcely into repository that used Github Actions as the Terraform runner.

It contains a workflow that runs terraform plan and then uses the Resourcely Github Action to evaluate guardrails on that plan.

Assumptions

This repository uses Github Actions to run terraform plan and terraform apply.

If you use a different runner, see the scaffolding repository for that runner:

Usage

This repository is a template. Some setup is required after cloning to use it.

1. Configure Terraform Backend

Running Terraform in Github Actions requires storing the Terraform state in a durable backend. Terraform supports a variety of backends described here.

Edit terraform.tf to add and configured your chosen backend.

2. Add Resourcely API Token to Github Secrets.

The Resourcely Github Action requires an API token to authenticate to the Resourcely API.

3. Update .resourcely.yaml

.resourcely.yaml tells Resourcely where to find the Terraform configs within this repo. If you move the config out of the repository root or add new configs in subdirectories, update the file to reflect these changes.

About

Quick start for using Resourcely with Github Actions as the Terraform runner.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages