Skip to content

Commit

Permalink
fix: credentails the wrong var
Browse files Browse the repository at this point in the history
  • Loading branch information
the-technat committed Dec 13, 2023
1 parent cc5a235 commit f071517
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/create-eks-terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ jobs:
aws iam create-user --user-name ${{ github.event.inputs.name }}
aws iam attach-user-policy --policy-arn "arn:aws:iam::aws:policy/AdministratorAccess" --user-name ${{ github.event.inputs.name }}
aws iam create-access-key --user-name ${{ github.event.inputs.name }} --output=json > output.json
echo 'cluster_access_key=$(cat output.json | jq '.AccessKey.AccessKeyId' |tr -d "\"")' >> $GITHUB_ENV
echo 'cluster_secret_key=$(cat output.json | jq '.AccessKey.SecretAccessKey' |tr -d "\"")' >> $GITHUB_ENV
echo 'cluster_access_key=$(cat output.json | jq '.AccessKey.AccessKeyId' |tr -d "\"")' >> $GITHUB_OUTPUT
echo 'cluster_secret_key=$(cat output.json | jq '.AccessKey.SecretAccessKey' |tr -d "\"")' >> $GITHUB_OUTPUT
deploy:
runs-on: ubuntu-latest
needs: prepare
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/delete-eks-terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ jobs:
- name: Rotate credentials for cluster user
run: |
aws iam create-access-key --user-name ${{ github.event.inputs.name }} --output=json > output.json
echo 'cluster_access_key=$(cat output.json | jq '.AccessKey.AccessKeyId' |tr -d "\"")' >> $GITHUB_ENV
echo 'cluster_secret_key=$(cat output.json | jq '.AccessKey.SecretAccessKey' |tr -d "\"")' >> $GITHUB_ENV
echo 'cluster_access_key=$(cat output.json | jq '.AccessKey.AccessKeyId' |tr -d "\"")' >> $GITHUB_OUTPUT
echo 'cluster_secret_key=$(cat output.json | jq '.AccessKey.SecretAccessKey' |tr -d "\"")' >> $GITHUB_OUTPUT
destroy:
needs: reprepare
Expand Down

0 comments on commit f071517

Please sign in to comment.