Spacelift
Configure Campaigns Agent for Spacelift state backend
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 other secret in the file (prefixed with SECRET_VALUE in the example) is used to access the GraphQL API, and is not needed by the Campaigns Agent.
The Spacelift workspace to have "External state access enabled" Follow the instructions here to toggle this setting.
Configure Spacelift state backend in .resourcely.yaml
The following block will configure a Spacelift state backend:
Last updated