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
Next Next commit
add more tags
  • Loading branch information
v1v committed May 5, 2025
commit 0fe3b95ebd0af011b142dcb534ecff13cd3225a9
2 changes: 1 addition & 1 deletion .buildkite/scripts/cloud-cleanup-oidc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ create_aws_ephemeral_user() {
EPHEMERAL_USER="ephemeral-admin-$(date +%s)"
echo "Creating IAM user: ${EPHEMERAL_USER}"
aws iam create-user --user-name "${EPHEMERAL_USER}" \
--tags Key=ephemeral,Value=true Key=division,Value=engineering Key=org,Value=obs Key=creation-date,Value="$(date -u +"%Y-%m-%dT%H:%M:%SZ")"
--tags Key=ephemeral,Value=true Key=division,Value=engineering Key=org,Value=obs Key=environment,Value=ci Key=repo,Value=elastic-package Key=created_at,Value="$(date -Is)"

echo "Attaching AdministratorAccess policy to ${EPHEMERAL_USER}..."
aws iam attach-user-policy --user-name "${EPHEMERAL_USER}" --policy-arn arn:aws:iam::aws:policy/AdministratorAccess
Expand Down