Skip to content

Commit

Permalink
adding service account
Browse files Browse the repository at this point in the history
  • Loading branch information
Paramadon committed Jun 28, 2024
1 parent 94e1db9 commit dda4e45
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/application-signals-java-beta-e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ jobs:
run: |
cd integration-tests/terraform/pulse
./create_service_account.sh \
chmod +x ./create-iam-service-account.sh
./create-iam-service-account.sh \
service-account-${{ env.TESTING_ID }} \
${{ env.SAMPLE_APP_NAMESPACE }} \
${{ inputs.test-java-cluster-name }} \
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

# Exit immediately if a command exits with a non-zero status
set -e
set -x

# Define variables
SERVICE_ACCOUNT_NAME=$1
Expand All @@ -13,7 +13,7 @@ AWS_REGION=$6
AWS_ACCOUNT_ID=$7

# Retrieve the OIDC provider URL
OIDC_PROVIDER_URL=$(aws eks describe-cluster --name $CLUSTER_NAME --query "cluster.identity.oidc.issuer" --output text)
OIDC_PROVIDER_URL=$(aws eks describe-cluster --name $CLUSTER_NAME --query "cluster.identity.oidc.issuer" --output text --endpoint https://api.beta.us-west-2.wesley.amazonaws.com)

# Extract the OIDC ID
OIDC_ID=$(echo $OIDC_PROVIDER_URL | sed 's|https://oidc.eks\.[a-zA-Z0-9-]*\.amazonaws\.com/id/||')
Expand Down

0 comments on commit dda4e45

Please sign in to comment.