Integrating Abbey with Terraform Cloud
Last updated
Last updated
In this Quickstart, you'll learn how to set up and use Abbey using .
Abbey helps you manage the workflows for access requests and approvals, making it easier for people to get access to .
We allow engineers to integrate these workflows directly into the Infrastructure provisioning process. Since you are already using an Infrastructure as Code (IaC) tool like Terraform, Abbey extends your IaC deployment through a .
A resource can be a production database or a cloud IAM role. In this Quickstart we will use the Abbey Demo Site as a resource example.
--> Go to
Whoops, looks like you don't have access. Let's fix this and get you access.
Create an
Log into your account
Log into your account
Clone into your local development environment by following the instructions in Get a Starter Kit.
Follow the instructions in Connect a Repo to connect Abbey to your GitHub account.
Click New > Workspace
In Choose Type, choose Version control workflow
In Connect to VCS, choose GitHub
In Choose a repository, choose the quickstart repo you created in Step 1
In Configure settings > Advanced opitons,
Under Apply Method, choose Auto Apply
Under VCS Triggers, choose Always trigger runs
Under Pull Requests, toggle on Automatic speculative plans
Click Create workspace
Configure abbey_token
Terraform variable
Grant Kits rely on your GitHub account and repository name to output access changes, which we'll set through Terraform local variables. Update the locals
block in main.tf
with your account_name
and repo_name
Workflow defines who should approve an access request.
Let's update the reviewers
block by adding yourself as the reviewer by switching replace-me@example.com
with the email address you use to sign into Abbey.
To deploy your Starter Kit, push to your main
branch:
Since all changes are backed by Git, you will see a PR get created in your repo with comments that outline the requested change in permissions.
You'll see that the PR in GitHub was merged within a few minutes.
To learn more about what Resources you can configure, try one of our Step-by-Step Tutorials.
Go to 's Projects & workspaces to and connect it with the quickstart GitHub repository.
Go to 's Projects & workspaces
Find your API Token from the page from your side navigation in the Abbey App.
Update inside terraform
block with your Terraform organization and workspace names.
Visit the Abbey web application, click on , and click Request next to the Demo resource. There are detailed instructions in Request Access doc.
To make things simple, we have configured the grant kit so that you are your own Approver. Click the tab and click Approve. See Approve or Deny Access Requests for detailed instructions.
Now let's go back to the .
Congrats! You should now have access.
Once your 5 minutes is up, your access is automatically revoked. In your repo's Pull requests history, you can find a closed PR with the title "Revoking access to Abbey_demo from ...", and you will no longer be able to access the .