Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
105 commits
Select commit Hold shift + click to select a range
fc655cc
fix: add CloudFormation UpdateTerminationProtection permission for cl…
ROunofF Feb 3, 2026
b40c54c
fix: increase timeout for alb-controller to fix broken resiliency lab…
idlikej Feb 18, 2026
9d48c9b
update: Re-enabled CodePipeline lab (#1788)
athavr Feb 24, 2026
cf4ce91
fix: Fix kubecost helm install
niallthomson Mar 3, 2026
3190ef2
Update values.yaml
niallthomson Mar 3, 2026
bb407e3
update: upgrade Grafana chart to 8.X (#1794)
athavr Mar 4, 2026
0f802a7
chore: Delay renovate package updates for 28 days
niallthomson Mar 4, 2026
47a4e80
update: Allow inf2 instance types for chatbot lab (#1797)
niallthomson Mar 5, 2026
6c3c707
fix: Use correct kro helm chart
niallthomson Mar 5, 2026
1e9d6d2
update: Upgrade Kyverno version (#1792)
athavr Mar 5, 2026
5e6e426
feat: Japanese translations (#1662)
niallthomson Mar 5, 2026
68a4a64
Fix translate workflow target path
niallthomson Mar 5, 2026
b3a7955
Skip file suffix
niallthomson Mar 5, 2026
fb283ed
Fix PR base branch
niallthomson Mar 5, 2026
e17b2fe
Use GH script to create/update PR
niallthomson Mar 5, 2026
63d09da
Tweak PR title
niallthomson Mar 5, 2026
473db33
Fix kubecost version
niallthomson Mar 5, 2026
7d625bb
Only run translate job when content updated
niallthomson Mar 5, 2026
fa84764
Automated translation updates (#1803)
github-actions[bot] Mar 6, 2026
b483243
fix: Provide kro release name
niallthomson Mar 6, 2026
88b507a
chore: Automated translation updates (#1806)
github-actions[bot] Mar 6, 2026
a3eb235
build(deps): bump tar from 7.5.6 to 7.5.11 (#1809)
dependabot[bot] Mar 12, 2026
8d4e8d7
build(deps): bump hono from 4.11.9 to 4.12.7 (#1808)
dependabot[bot] Mar 12, 2026
c62e9aa
build(deps): bump minimatch from 9.0.5 to 9.0.9 in /testing/util (#1795)
dependabot[bot] Mar 12, 2026
2d3acb6
Make sure release job sets flags for index and notification
niallthomson Mar 12, 2026
69ee60f
fix: use process.cwd() instead of vfile.cwd for docs path resolution
ROunofF Mar 25, 2026
e122519
fix: updated a command output to list accurate result (#1817)
parth-pandit Mar 26, 2026
f3ae4d9
chore(deps): update dependency yaml to v2.8.3 [security] (#1820)
renovate[bot] Mar 26, 2026
f896ec8
fix: Add missing coredns and kube-proxy addons to Terraform cluster c…
r-repka Mar 30, 2026
f444390
Import all changes from RIV
ROunofF Feb 19, 2026
04120b4
chores: Move all image to static with link
ROunofF Mar 25, 2026
d43bd54
fix: correct broken link to application overview in navigating-labs
ROunofF Feb 20, 2026
6966e0a
Fix: validate script to include needed provider + syntax
ROunofF Feb 20, 2026
2fd90d7
fix: missing provider for auto mode
ROunofF Feb 23, 2026
45dd83f
fix: export RESOURCE_CODEBUILD_ROLE_ARN in common-env.sh
ROunofF Feb 23, 2026
183540e
fix: skip kubectl download if already exists + detect OS and architec…
ROunofF Mar 25, 2026
6a4408c
feat: Life improvement for make-infrastructure and destroy, you can p…
ROunofF Feb 26, 2026
9786c55
fix: Allow changeset to be created by IDE_ROLE
ROunofF Feb 26, 2026
fb86fb7
Set variable to check when it's empty
ROunofF Feb 26, 2026
8d52198
fix: When delete in getting-started and various improvements
ROunofF Feb 26, 2026
21b6a52
Fix: Don't break the in your account workflow
ROunofF Mar 4, 2026
26cc8df
feat: Added Setup in learning paths with a few life improvements fixes
ROunofF Mar 23, 2026
43da6a8
fix: pass repository params to CFN template and fix REPOSITORY_REF typo
ROunofF Mar 25, 2026
f2b89b9
chore: regenerate yarn.lock after rebase conflicts
ROunofF Mar 25, 2026
047d181
fix: remove broken fastpaths/basics nav link
ROunofF Mar 25, 2026
dd42531
fix: sync test-durations.json with fastpaths pages
ROunofF Mar 25, 2026
33fc8a6
chore: remove check-broken-links targets and scripts
ROunofF Mar 25, 2026
751c71f
fix: Remove timing for non-based labs
ROunofF Mar 25, 2026
3fa13ff
fix: restore navbar item hiding for desktop - secondary nav handles m…
ROunofF Mar 26, 2026
e4ac495
fix: correct navigating-labs link path in auto mode nav
ROunofF Mar 26, 2026
6c7b3f6
fix: life improvements in Makefile and package.json
ROunofF Mar 26, 2026
ea7ccdc
fix: Bring back language selector in the top bar
ROunofF Mar 26, 2026
a7cf7b1
fix: Ensure that on delete we recreate the folder
ROunofF Mar 26, 2026
c6ced66
fix: PR review fixes for fastpaths and auto mode cluster support
svennam92 Apr 7, 2026
de0a6dd
fix: bump Node version to 20.18.0 for Netlify build
svennam92 Apr 7, 2026
5364c35
fix: fastpaths content improvements for in-your-account flow
svennam92 Apr 7, 2026
9226ba3
fix: navbar and secondary nav styling improvements
svennam92 Apr 7, 2026
2b02f7f
fix: restore homepage video that was dropped when adding HomepageModu…
svennam92 Apr 7, 2026
85db748
fix: test fixes for fastpaths modules
svennam92 Apr 7, 2026
5bc0daa
fix: enable module terraform for fastpaths in reset-environment
svennam92 Apr 7, 2026
d57616c
fix: make both standard and auto cluster lookups conditional in base.tf
svennam92 Apr 7, 2026
3a88beb
fix: one-time preprovision for fastpaths on first prepare-environment…
svennam92 Apr 8, 2026
53e9344
fix: add pod identity/DynamoDB resources to developer preprovision
svennam92 Apr 13, 2026
6e6c8bc
fix: test annotations for fastpaths automated testing
svennam92 Apr 13, 2026
c6288c0
fix: parallelize base app deploy and terraform preprovision, remove u…
svennam92 Apr 13, 2026
2034090
fix: handle missing AWS_SESSION_TOKEN for IAM user credentials in exe…
svennam92 Apr 13, 2026
231de30
fix: add cleanup flow for fastpaths module switching
svennam92 Apr 13, 2026
ee27df0
fix: consistent 'Before you start' tips across all fastpaths modules
svennam92 Apr 13, 2026
99b1142
fix: remove dead is_fastpaths guard and prevent lab-fastpaths.tf from…
svennam92 Apr 13, 2026
57a6a99
fix: fastpaths test timing, hooks, and reset-environment resilience
svennam92 Apr 14, 2026
82e91bc
fix: test framework support for USE_CURRENT_USER and timeout fixes
svennam92 Apr 14, 2026
9701fd2
fix: skip git clone in test container, manifests are volume-mounted
svennam92 Apr 14, 2026
bd293ec
fix: timing issues for operator test suite
svennam92 Apr 14, 2026
4c38199
fix: hook-pod-logs retries kubectl logs instead of rechecking stale o…
svennam92 Apr 14, 2026
b6c469f
fix: increase pod crash wait time for pod-logs hook
svennam92 Apr 14, 2026
7ce9f65
feat: add GitHub Actions workflow for fastpaths tests
svennam92 Apr 14, 2026
3f47039
fix: rename auto cluster to eks-workshop-SUFFIX-auto for IAM policy c…
svennam92 Apr 14, 2026
1ff93d5
fix: pass eks_cluster_auto_id through lab-fastpaths.tf to preprovisio…
svennam92 Apr 14, 2026
0d5d5dc
fix: shorten IAM name_prefix to stay within 38-char limit
svennam92 Apr 14, 2026
b78f7a6
fix: increase rollout timeout and add wait before pod exec in pod-ide…
svennam92 Apr 14, 2026
337c828
fix: add kubectl wait before exec, increase pod crash and KEDA scaleo…
svennam92 Apr 14, 2026
aa154e3
fix: correct KEDA pod identity service account name in terraform
svennam92 Apr 14, 2026
87c4504
fix: wait for external-secrets webhook before creating ClusterSecretS…
svennam92 Apr 14, 2026
590e9b7
fix: optimize prepare-environment - skip StatefulSet deletion unless …
svennam92 Apr 14, 2026
8f3073c
fix: hook-pod-logs waits for pod restart count > 0 before checking -p…
svennam92 Apr 14, 2026
59ca025
debug: add verbose output to hook-pod-logs to diagnose CI failure
svennam92 Apr 14, 2026
40796f4
fix: export EKS_CLUSTER_AUTO_NAME so cleanup scripts get the correct …
svennam92 Apr 14, 2026
01a9f90
debug: add verbose output to operator cleanup for pod identity deletion
svennam92 Apr 15, 2026
292acbc
fix: run all fastpaths in single container so cleanup hooks persist b…
svennam92 Apr 15, 2026
63df796
fix: KEDA wait=120 for CloudWatch metrics, fluent-bit hook checks all…
svennam92 Apr 15, 2026
bd80810
fix: increase KEDA CloudWatch wait to 300s, make karpenter suite hook…
svennam92 Apr 15, 2026
6fcab1d
fix: add --ignore-not-found to load-generator delete in test-keda.md
svennam92 Apr 16, 2026
440972c
Fix: override possible
ROunofF Apr 16, 2026
1fe07c5
Fix: change so we can set USE_CURRENT_USER=0
ROunofF Apr 16, 2026
08b8d65
fix: decouple RESOURCE_CODEBUILD_ROLE_ARN from SKIP_CREDENTIALS gate
ROunofF Apr 17, 2026
025fa63
Added debug
ROunofF Apr 19, 2026
5b76297
fix: allow override in destroy
ROunofF Apr 20, 2026
896ada9
fix: merge origin/main into merge-riv25, resolve conflicts keeping bo…
ROunofF Apr 20, 2026
0c07506
fix: remove duplicate .navbar__item selector from merge conflict reso…
ROunofF Apr 20, 2026
5db8c4c
feat: add inbound_cidrs support to fastpaths and operators modules
ROunofF Apr 27, 2026
7a8d4bf
fix: skip git clone in dev mode (RESET_NO_DELETE) to use local manifests
ROunofF Apr 28, 2026
ad25cfd
feat: add pre-provision Makefile target with S3 backend support
ROunofF Apr 28, 2026
90fcdd4
Merge remote-tracking branch 'origin/main' into merge-riv25
ROunofF Apr 30, 2026
d649b61
feat: add EXIT trap to output terraform directory on failure
ROunofF Apr 30, 2026
f47ffc9
fix: remove unused terraform module
ROunofF Apr 30, 2026
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
2 changes: 1 addition & 1 deletion .github/workflows/test-fastpaths.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Test - Fastpaths
on:
workflow_dispatch:
schedule:
- cron: "0 17 * * 5"
- cron: "0 7 * * 5"

permissions:
id-token: write
Expand Down
26 changes: 22 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,28 @@ environment=''
shell_command=''
shell_simple_command=''
glob='-'
cluster='all'

.PHONY: install
install:
yarn install

.PHONY: build
build: install
yarn build

.PHONY: warning
warning:
@echo "Note: 'make serve' now does a full static build. For dev mode, use 'make start' instead."

.PHONY: serve
serve: install
serve: warning build
yarn serve

.PHONY: start
start: install
yarn start

.PHONY: tf-fmt
tf-fmt:
cd ./terraform && terraform fmt --recursive
Expand All @@ -37,13 +50,17 @@ reset-environment:
delete-environment:
bash hack/shell.sh $(environment) delete-environment

.PHONY: pre-provision
pre-provision:
bash hack/pre-provision-resources.sh $(environment) $(action)

.PHONY: create-infrastructure
create-infrastructure:
bash hack/create-infrastructure.sh $(environment)
bash hack/create-infrastructure.sh $(environment) $(cluster)

.PHONY: destroy-infrastructure
destroy-infrastructure:
bash hack/destroy-infrastructure.sh $(environment)
bash hack/destroy-infrastructure.sh $(environment) $(cluster)

.PHONY: deploy-ide
deploy-ide:
Expand All @@ -55,4 +72,5 @@ destroy-ide:

.PHONY: lint
lint:
yarn lint
yarn lint

6 changes: 6 additions & 0 deletions cluster/eksctl/access-entries.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
accessEntries:
- principalARN: ${RESOURCE_CODEBUILD_ROLE_ARN}
accessPolicies:
- policyARN: "arn:aws:eks::aws:cluster-access-policy/AmazonEKSClusterAdminPolicy"
accessScope:
type: cluster
25 changes: 25 additions & 0 deletions cluster/eksctl/cluster-auto.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
apiVersion: eksctl.io/v1alpha5
kind: ClusterConfig
availabilityZones:
- ${AWS_REGION}a
- ${AWS_REGION}b
- ${AWS_REGION}c
metadata:
name: ${EKS_CLUSTER_AUTO_NAME}
region: ${AWS_REGION}
version: "1.33"
tags:
karpenter.sh/discovery: ${EKS_CLUSTER_AUTO_NAME}
created-by: eks-workshop-v2
env: ${EKS_CLUSTER_AUTO_NAME}
vpc:
cidr: 10.43.0.0/16
clusterEndpoints:
privateAccess: true
publicAccess: true
autoModeConfig:
enabled: true
nodePools: [general-purpose, system]
accessConfig:
authenticationMode: API
bootstrapClusterCreatorAdminPermissions: true
5 changes: 4 additions & 1 deletion cluster/eksctl/cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,7 @@ remoteNetworkConfig:
remoteNodeNetworks:
- cidrs: ["10.52.0.0/16"]
remotePodNetworks:
- cidrs: ["10.53.0.0/16"]
- cidrs: ["10.53.0.0/16"]
accessConfig:
authenticationMode: API
bootstrapClusterCreatorAdminPermissions: true
8 changes: 8 additions & 0 deletions docs/style_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,14 @@ sidebar_custom_props: { "explore": "https://<external link here>" }
---
```

To mark your module as optional:
```
---
...
sidebar_custom_props: { "optional": "true" }
---
```

### Navigating the AWS console

There are instances where the user needs to navigate to specific screens in the AWS console. It is preferable to provide a link to the exact screen if possible, or a close as can be done.
Expand Down
30 changes: 26 additions & 4 deletions hack/create-infrastructure.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
#!/bin/bash

environment=$1
cluster=${2:-all}
export USE_CURRENT_USER=${USE_CURRENT_USER:-1} # We don't want to change the ARN in exec
echo "Creating infrastructure for environment ${environment} and cluster ${cluster}"

set -Eeuo pipefail
set -u
set -x

SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )

Expand All @@ -13,12 +17,30 @@ bash $SCRIPT_DIR/update-iam-role.sh $environment

sleep 5

pids=()

cluster_exists=0
aws eks describe-cluster --name "${EKS_CLUSTER_NAME}" &> /dev/null || cluster_exists=$?

if [ $cluster_exists -eq 0 ]; then
if [ $cluster_exists -ne 0 ] && [[ "$cluster" == "standard" || "$cluster" == "all" ]]; then
echo "Creating cluster ${EKS_CLUSTER_NAME}"
bash $SCRIPT_DIR/exec.sh "${environment}" 'cat /cluster/eksctl/cluster.yaml /cluster/eksctl/access-entries.yaml | envsubst | eksctl create cluster -f -' &
pids+=($!)
else
echo "Cluster ${EKS_CLUSTER_NAME} already exists"
fi

auto_cluster_exists=0
aws eks describe-cluster --name "${EKS_CLUSTER_AUTO_NAME}" &> /dev/null || auto_cluster_exists=$?

if [ $auto_cluster_exists -ne 0 ] && [[ "$cluster" == "auto" || "$cluster" == "all" ]]; then
echo "Creating auto mode cluster ${EKS_CLUSTER_AUTO_NAME}"
bash $SCRIPT_DIR/exec.sh "${environment}" 'cat /cluster/eksctl/cluster-auto.yaml /cluster/eksctl/access-entries.yaml | envsubst | eksctl create cluster -f -' &
pids+=($!)
else
echo "Creating cluster ${EKS_CLUSTER_NAME}"
bash $SCRIPT_DIR/exec.sh "${environment}" 'cat /cluster/eksctl/cluster.yaml | envsubst | eksctl create cluster -f -'
fi
echo "Auto mode cluster ${EKS_CLUSTER_AUTO_NAME} already exists"
fi

for pid in "${pids[@]}"; do
wait "$pid" || exit 1
done
12 changes: 10 additions & 2 deletions hack/deploy-ide-cfn.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,21 @@ outfile=$(mktemp)

bash $SCRIPT_DIR/build-ide-cfn.sh $outfile

REPOSITORY_OWNER=${REPOSITORY_OWNER:-"aws-samples"}
REPOSITORY_NAME=${REPOSITORY_NAME:-"eks-workshop-v2"}
REPOSITORY_REF=${REPOSITORY_REF:-"main"}

source $SCRIPT_DIR/lib/resolve-source-ip.sh

STACK_NAME="$EKS_CLUSTER_NAME-cfn"

aws cloudformation deploy --stack-name "$STACK_NAME" \
--capabilities CAPABILITY_NAMED_IAM --disable-rollback --template-file $outfile \
--parameter-overrides InboundCIDR="$INBOUND_CIDRS"
--parameter-overrides \
RepositoryOwner="$REPOSITORY_OWNER" \
RepositoryName="$REPOSITORY_NAME" \
RepositoryRef="$REPOSITORY_REF" \
InboundCIDR="$INBOUND_CIDRS"

if [ -z "$CI" ]; then
IDE_URL=$(aws cloudformation describe-stacks --stack-name "$STACK_NAME" \
Expand All @@ -28,4 +36,4 @@ if [ -z "$CI" ]; then
echo ""
echo "IDE URL: $IDE_URL"
echo "IDE Password: $IDE_PASSWORD"
fi
fi
29 changes: 24 additions & 5 deletions hack/destroy-infrastructure.sh
Original file line number Diff line number Diff line change
@@ -1,24 +1,43 @@
#!/bin/bash

environment=$1
cluster=${2:-all}
echo "Destroying infrastructure for environment ${environment} and cluster ${cluster}"

set -Eeuo pipefail
set -u

SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )

export USE_CURRENT_USER=${USE_CURRENT_USER:-1};
source $SCRIPT_DIR/lib/common-env.sh

cluster_exists=0
aws eks describe-cluster --name "${EKS_CLUSTER_NAME}" &> /dev/null || cluster_exists=$?

if [ $cluster_exists -eq 0 ]; then
if [ $cluster_exists -eq 0 ] && [[ "$cluster" == "standard" || "$cluster" == "all" ]]; then
echo "Deleting cluster ${EKS_CLUSTER_NAME}"
bash $SCRIPT_DIR/shell.sh "${environment}" 'delete-environment' || true
bash $SCRIPT_DIR/exec.sh "${environment}" 'eksctl delete cluster --name ${EKS_CLUSTER_NAME} --region ${AWS_REGION} --wait --force --disable-nodegroup-eviction --timeout 45m'&
else
echo "Cluster ${EKS_CLUSTER_NAME} does not exist or skipped"
fi

bash $SCRIPT_DIR/exec.sh "${environment}" 'eksctl delete cluster --name ${EKS_CLUSTER_NAME} --region ${AWS_REGION} --wait --force --disable-nodegroup-eviction --timeout 45m'
export EKS_CLUSTER_AUTO_NAME="${EKS_CLUSTER_AUTO_NAME}"
auto_cluster_exists=0
aws eks describe-cluster --name "${EKS_CLUSTER_AUTO_NAME}" &> /dev/null || auto_cluster_exists=$?

if [ $auto_cluster_exists -eq 0 ] && [[ "$cluster" == "auto" || "$cluster" == "all" ]]; then
echo "Deleting auto mode cluster ${EKS_CLUSTER_AUTO_NAME}"
#bash $SCRIPT_DIR/shell.sh "${environment}" 'delete-environment' || true # Needed ?
bash $SCRIPT_DIR/exec.sh "${environment}" 'eksctl delete cluster --name ${EKS_CLUSTER_AUTO_NAME} --region ${AWS_REGION} --wait --force --disable-nodegroup-eviction --timeout 45m'
else
echo "Cluster ${EKS_CLUSTER_NAME} does not exist"
echo "Auto mode cluster ${EKS_CLUSTER_AUTO_NAME} does not exist or skipped"
fi

aws cloudformation delete-stack --stack-name ${EKS_CLUSTER_NAME}-ide-role || true
wait

# Only delete ide-role if all clusters are deleted
if [ "$cluster" == "all" ]; then
aws cloudformation delete-stack --stack-name ${EKS_CLUSTER_NAME}-ide-role || true
echo "Deleted role"
fi
15 changes: 13 additions & 2 deletions hack/exec.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,19 @@ container_image='eks-workshop-environment'

(cd $SCRIPT_DIR/../lab && $CONTAINER_CLI build -q -t $container_image .)

if [ -z "$SKIP_CREDENTIALS" ]; then

if [ "${SKIP_CREDENTIALS:-0}" = "0" ] && [ "${USE_CURRENT_USER:-0}" = "0" ]; then
echo "Passing temp AWS credentials"
source $SCRIPT_DIR/lib/generate-aws-creds.sh
elif [ "${USE_CURRENT_USER:-0}" != "0" ]; then
if [ -z "$AWS_ACCESS_KEY_ID" ]; then
echo "No AWS_ACCESS_KEY_ID found, please check your AWS credentials"
exit 1
fi
echo "Using USE_CURRENT_USER"
aws_credential_args="-e AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID -e AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY -e AWS_SESSION_TOKEN=${AWS_SESSION_TOKEN:-}"
else
echo "Using DEFAULT no credentials passed"
aws_credential_args=""
fi

Expand All @@ -31,5 +41,6 @@ $CONTAINER_CLI run --rm \
-v $SCRIPT_DIR/../manifests:/manifests \
-v $SCRIPT_DIR/../cluster:/cluster \
--entrypoint /bin/bash \
-e 'EKS_CLUSTER_NAME' -e 'AWS_REGION' -e 'AWS_CONTAINER_CREDENTIALS_RELATIVE_URI' \
-e "RESET_NO_DELETE=true" \
-e 'EKS_CLUSTER_NAME' -e 'EKS_CLUSTER_AUTO_NAME' -e 'AWS_REGION' -e 'AWS_CONTAINER_CREDENTIALS_RELATIVE_URI' -e RESOURCE_CODEBUILD_ROLE_ARN \
$aws_credential_args $container_image -c "$shell_command"
11 changes: 11 additions & 0 deletions hack/lib/common-env.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
environment=${environment:-""}

set -x

if [ -z "$environment" ]; then
export EKS_CLUSTER_NAME="eks-workshop"
export EKS_CLUSTER_AUTO_NAME="eks-workshop-auto"
else
export EKS_CLUSTER_NAME="eks-workshop-${environment}"
export EKS_CLUSTER_AUTO_NAME="eks-workshop-${environment}-auto"
fi

AWS_REGION=${AWS_REGION:-""}
Expand All @@ -15,6 +19,8 @@ if [ -z "$AWS_REGION" ]; then
fi

SKIP_CREDENTIALS=${SKIP_CREDENTIALS:-""}
USE_CURRENT_USER=${USE_CURRENT_USER:-""}
AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID:-""} # We check the access key

if [ -z "$SKIP_CREDENTIALS" ]; then
ACCOUNT_ID=$(aws sts get-caller-identity --query Account --output text)
Expand All @@ -23,4 +29,9 @@ if [ -z "$SKIP_CREDENTIALS" ]; then
IDE_ROLE_ARN="arn:aws:iam::${ACCOUNT_ID}:role/${IDE_ROLE_NAME}"
fi

# Set RESOURCE_CODEBUILD_ROLE_ARN if not already provided (e.g. by Workshop Studio)
if [ -z "${RESOURCE_CODEBUILD_ROLE_ARN:-}" ]; then
export RESOURCE_CODEBUILD_ROLE_ARN="${IDE_ROLE_ARN:-}"
fi

export DOCKER_CLI_HINTS="false"
Loading
Loading