This composite action is no longer maintained by the Core Services team. Use at your own risk.
If your team still relies on this action, you may request CODEOWNER status for this directory to maintain it.
The tf-apply composite action initializes, validates and apply terraform resources whilst selecting the desired workspace.
The action will do the following:
- Configure github credentials so that terraform can read from our private repos
- Run a script to read secrets and write them to a
.envfile (git ignored) - Run terraform commands uses the
.envfile to validate and apply state to the target environment under the provided workspace
The following items must be in the repository:
package.jsondependencies:env-cmd- to launch process using environment variables in.envfilecore-build-library- for core-build commands
package.jsonscripts:lint- lint the codebuild- build the codetest- test the code (pre-deployment)
terraformfolder containing roots for each environment (dev,stage, andprod)- (optional)
secrets-map.jsonfile containing map of secrets and associated environment variables. These will be written to.envfile.