Commit d41b6e54 authored by Pierre Smeyers's avatar Pierre Smeyers
Browse files

docs: move comment alongside its code block

parent 2276926d
Loading
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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
@@ -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 ]]