How do I use provider credentials in Scalr?

Credentials for Terraform providers can easily be set up by account admins and automatically declared as shell variables in chosen environments and workspaces

  • Account administrators configure cloud credentials in the account.

    ../_images/how_to_creds_1.png
  • Link the credentials to the Environments. Each environment can have credentials for multiple providers, but only one set per provider.

    ../_images/how_to_creds_2.png
  • Scalr automatically creates the required shell variables for each provider in every workspace in the environment.

    ../_images/how_to_creds_3.png

Note that the variables are sensitive and the values are not exposed.

  • Provider blocks can now be configure without any credentials parameters.

provider "aws" {
  region     = var.aws_location
}

Related documentation : Provider Credentials