Skip to content

Commit

Permalink
Update buildspec.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
abdurahim50 authored Jun 18, 2023
1 parent 5681a82 commit f8e93c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion buildspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ phases:
- echo Push the latest image to cluster
# Get AWS Credential using STS Assume Role for kubectl
- echo "Setting Environment Variables related to AWS CLI for Kube Config Setup"
- CREDENTIALS=$(aws sts assume-role --role-arn $arn:aws:iam::069279771141:role/CodeBuildKubectlRole --role-session-name eks-codebuild --duration-seconds 900)
- CREDENTIALS=$(aws sts assume-role --role-arn arn:aws:iam::069279771141:role/CodeBuildKubectlRole --role-session-name eks-codebuild --duration-seconds 900)
- export AWS_ACCESS_KEY_ID="$(echo ${CREDENTIALS} | jq -r '.Credentials.AccessKeyId')"
- export AWS_SECRET_ACCESS_KEY="$(echo ${CREDENTIALS} | jq -r '.Credentials.SecretAccessKey')"
- export AWS_SESSION_TOKEN="$(echo ${CREDENTIALS} | jq -r '.Credentials.SessionToken')"
Expand Down

0 comments on commit f8e93c2

Please sign in to comment.