Loading templates/gitlab-ci-terraform-aws.yml +2 −2 Original line number Diff line number Diff line Loading @@ -24,6 +24,8 @@ spec: --- .tf-commands: init: # init Assume Role with Web Identity Configuration # see: https://registry.terraform.io/providers/hashicorp/aws/latest/docs#assume-role-with-web-identity-configuration-reference - | if [[ "$ENV_TYPE" ]] then Loading @@ -45,8 +47,6 @@ spec: export AWS_ROLE_SESSION_NAME="GitLabRunner-${CI_PROJECT_ID}-${CI_PIPELINE_ID}" fi - !reference [ .tf-commands, default, init ] # init Assume Role with Web Identity Configuration # see: https://registry.terraform.io/providers/hashicorp/aws/latest/docs#assume-role-with-web-identity-configuration-reference variables: AWS_OIDC_AUD: $[[ inputs.aws-oidc-aud ]] AWS_OIDC_ROLE_ARN: $[[ inputs.aws-oidc-role-arn ]] Loading Loading
templates/gitlab-ci-terraform-aws.yml +2 −2 Original line number Diff line number Diff line Loading @@ -24,6 +24,8 @@ spec: --- .tf-commands: init: # init Assume Role with Web Identity Configuration # see: https://registry.terraform.io/providers/hashicorp/aws/latest/docs#assume-role-with-web-identity-configuration-reference - | if [[ "$ENV_TYPE" ]] then Loading @@ -45,8 +47,6 @@ spec: export AWS_ROLE_SESSION_NAME="GitLabRunner-${CI_PROJECT_ID}-${CI_PIPELINE_ID}" fi - !reference [ .tf-commands, default, init ] # init Assume Role with Web Identity Configuration # see: https://registry.terraform.io/providers/hashicorp/aws/latest/docs#assume-role-with-web-identity-configuration-reference variables: AWS_OIDC_AUD: $[[ inputs.aws-oidc-aud ]] AWS_OIDC_ROLE_ARN: $[[ inputs.aws-oidc-role-arn ]] Loading