Skip to content

Commit

Permalink
fix: cut and paste errors removed
Browse files Browse the repository at this point in the history
  • Loading branch information
mvanholsteijn committed Sep 23, 2023
1 parent 61e4b26 commit c8a3a0d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions terraform/templates/gitlab-ci.yaml.template
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ aws-profile-demo:
GITLAB_AWS_IDENTITY_TOKEN:
aud: https://gitlab.com
script:
- aws sts get-caller-identity
- ./gitlab-aws-credential-helper aws-profile
- cat $HOME/.aws/credentials # just for demo purposes
- aws --profile default sts get-caller-identity
Expand All @@ -70,7 +69,7 @@ credential-process-demo:
script:
- aws configure --profile default set credential_process "$PWD/gitlab-aws-credential-helper process"
- aws configure --profile second set credential_process "$PWD/gitlab-aws-credential-helper process --role-name SecondDemoRole"
- aws configure --profile second set credential_process "$PWD/gitlab-aws-credential-helper process --role-name ThirdDemoRole"
- aws configure --profile third set credential_process "$PWD/gitlab-aws-credential-helper process --role-name ThirdDemoRole"
- ./gitlab-aws-credential-helper process # just for demo purposes
- aws --profile default sts get-caller-identity
- aws --profile second sts get-caller-identity
Expand All @@ -87,4 +86,4 @@ env-exec-demo:
GITLAB_AWS_IDENTITY_TOKEN:
aud: https://gitlab.com
script:
- ./gitlab-aws-credential-helper env -- aws sts get-caller-identity
- ./gitlab-aws-credential-helper env -- aws sts get-caller-identity

0 comments on commit c8a3a0d

Please sign in to comment.