We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c627c7 commit 5ea5eebCopy full SHA for 5ea5eeb
.gitlab-ci.yml
@@ -23,5 +23,10 @@ tests:
23
- mv tofu /usr/local/bin/tofu
24
- chmod +x /usr/local/bin/tofu
25
- tofu version
26
+ - echo "Assuming ddbuild-agent-ci role"
27
+ - roleoutput=$(aws sts assume-role --role-arn arn:aws:iam::669783387624:role/ddbuild-terraform-aws-ecs-datadog --external-id ddbuild-terraform-aws-ecs-datadog-ci --role-session-name RoleSession)
28
+ - export AWS_ACCESS_KEY_ID="$(echo "$roleoutput" | jq -r '.Credentials.AccessKeyId')"
29
+ - export AWS_SECRET_ACCESS_KEY="$(echo "$roleoutput" | jq -r '.Credentials.SecretAccessKey')"
30
+ - export AWS_SESSION_TOKEN="$(echo "$roleoutput" | jq -r '.Credentials.SessionToken')"
31
script:
32
- make test
0 commit comments