Skip to content

Latest commit

 

History

History
27 lines (17 loc) · 851 Bytes

File metadata and controls

27 lines (17 loc) · 851 Bytes

Terraform Cloud configuration

At fist, you need to login on Terraform Cloud: terraform login to retrieve a fresh token.

Setup as your need the file : ./organization.json at the root of project. it contains the organization's name of TFC, the mail's owner, and define all the different environments.

Initialisation

Launch the TFC init task:

task tfc-init

This script (_tools/scripts/tfc-manage.py) create an organization based on informations defined in ./organizations.json file. It also update all needed: _backend.tf to match the organization field. Also, create one workspace by service (and per region if exist).

Configuration of environments variables

You must define 2 variables for the project:

  • AWS_ACCESS_KEY_ID
  • AWS_SECRET_ACCESS_KEY

Both are type: env variables and are sensitives.