Skip to content

Commit 6f4d463

Browse files
authored
Merge pull request #1466 from splunk/bugfix/CSPL-3534
CSPL-3534 Fixing string processing in cluster script
2 parents cfd650c + fe9d031 commit 6f4d463

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/deploy-eks-cluster.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,13 +107,13 @@ function createCluster() {
107107
{
108108
\"Effect\": \"Allow\",
109109
\"Principal\": {
110-
\"Federated\": \"arn:aws:iam::$account_id:oidc-provider/$oidc_provider\"
110+
\"Federated\": \"arn:aws:iam::${account_id}:oidc-provider/${oidc_provider}\"
111111
},
112112
\"Action\": \"sts:AssumeRoleWithWebIdentity\",
113113
\"Condition\": {
114114
\"StringEquals\": {
115-
\"$oidc_provider:aud\": \"sts.amazonaws.com\",
116-
\"$oidc_provider:sub\": \"system:serviceaccount:$namespace:$service_account\"
115+
\"${oidc_provider}:aud\": \"sts.amazonaws.com\",
116+
\"${oidc_provider}:sub\": \"system:serviceaccount:${namespace}:${service_account}\"
117117
}
118118
}
119119
}

0 commit comments

Comments
 (0)