Spacelift
Last updated
The Campaigns Agent needs:
A Spacelift API token in the environment variable SPACELIFT_API_TOKEN
in order for the agent to access the state. To get an API token in the Spacelift UI, navigate to Organization Setting > API keys > Create API Key. This will give you a credentials file that looks something like this:
The key Campaigns Agent needs is the one inside the credentials "spacelift.io"
block. Set that value in the environment variable SPACELIFT_API_TOKEN
.
The Spacelift workspace to have "External state access enabled" Follow the instructions to toggle this setting.
The following block will configure a Spacelift state backend: