Terraform Remote State ¶
base-tf-backend folder you should find the definition of the infrastructure that needs to be deployed before
you can get to work with anything else.
IMPORTANT: THIS IS ONLY NEEDED IF THE BACKEND WAS NOT CREATED YET. IF THE BACKEND ALREADY EXISTS YOU JUST USE IT.
Config files can be found under each
- Global config file
/config/common.tfvarscontains global context TF variables that we inject to TF commands which are used by all sub-directories such as
make applyand which cannot be stored in
backend.configdue to TF.
- Account config files
AWS Profile ¶
backend.tfvarswill inject the profile name that TF will use to make changes on AWS.
- Such profile is usually one that relies on another profile to assume a role to get access to each corresponding account.
- Please follow to correctly setup your AWS Credentials
- Read the following page leverage doc to understand how to set up a profile to assume a role