Add AWS_ACCESS_KEY_ID
, AWS_SECRET_ACCESS_KEY
Environment variables to workspace's variables page.
You must check the Sensitive
checkbox.
It is required only if you are using the CLI driven Run workflow.
terraform.tf
:
terraform {
backend "remote" {
organization = "<org name>"
workspaces {
name = "<workspace name>"
}
}
}
$HOME/.terraformrc
:
credentials "app.terraform.io" {
token = "<terraform cloud user token>"
}
references: