Atlantis
This guide assumes that you have an existing Atlantis server configured as a Terraform runner.
You can integrate Resourcely with Atlantis to automatically evaluate your Terraform plans on pull requests. The Resourcely guardrail evaluation will result in findings that help developers address the violations.
In order to set up Resourcely with Atlantis, you must perform the following steps:
Verifying Prerequisites
Change management
Setup Resourcely with Custom workflows
Verifying Prerequisites
Before adding Resourcely to existing workflows, please verify that your Atlantis server environment:
Has internet egress access to download the Resourcely CLI binary or container (e.g., through a NAT Gateway).
Is configured to allow custom workflows.
Is used with GitHub as a VCS.
Change Management
This setup assumes you have already completed the integration of Source Code Management (SCM). If you have not, please follow this guide to complete the SCM integration.
Setup Resourcely with Custom workflows
This requires an Atlantis server-side workflow
written in Atlantis YAML. Create a new file called repos.yaml
or update your existing YAML and add the following content:
The resourcely-cli
command in your repos.yaml
evaluates your Terraform plans by downloading policies from Resourcely, assessing them, and submitting the results to Resourcely. These findings will be displayed on the pull request associated with the Atlantis run.
Note that the server needs to run with --repo-config=repos.yaml
Atlantis should now run the Resourcely CLI on every pull request whenever new code is created or updated.
Deployment Scenario 1
Deployment Scenario 2
If you have questions, please email us at support@resourcely.io or contact us.
Last updated