Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update .buildkite/scripts/cloud-cleanup-oidc.sh
  • Loading branch information
v1v authored May 5, 2025
commit aaad8950ec68516f2ae2eccbfee9cd906be6f843
1 change: 1 addition & 0 deletions .buildkite/scripts/cloud-cleanup-oidc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ cleanup_ephemeral_user() {
aws iam delete-access-key --user-name "${EPHEMERAL_USER}" --access-key-id "${key_id}"
aws iam delete-user --user-name "${EPHEMERAL_USER}"
echo "Ephemeral IAM user ${EPHEMERAL_USER} deleted."
unset EPHEMERAL_USER AWS_ACCESS_KEY_ID_EPHEMERAL AWS_SECRET_ACCESS_KEY_EPHEMERAL
}
trap cleanup_ephemeral_user EXIT

Expand Down