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.
Launch the TFC init task:
task tfc-initThis 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).
You must define 2 variables for the project:
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
Both are type: env variables and are sensitives.