File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,6 +12,20 @@ bash $SCRIPT_DIR/build-ide-cfn.sh $outfile
1212
1313source $SCRIPT_DIR /lib/resolve-source-ip.sh
1414
15- aws cloudformation deploy --stack-name " $EKS_CLUSTER_NAME -ide" \
15+ STACK_NAME=" $EKS_CLUSTER_NAME -cfn"
16+
17+ aws cloudformation deploy --stack-name " $STACK_NAME " \
1618 --capabilities CAPABILITY_NAMED_IAM --disable-rollback --template-file $outfile \
17- --parameter-overrides InboundCIDR=" $INBOUND_CIDRS "
19+ --parameter-overrides InboundCIDR=" $INBOUND_CIDRS "
20+
21+ if [ -z " $CI " ]; then
22+ IDE_URL=$( aws cloudformation describe-stacks --stack-name " $STACK_NAME " \
23+ --query ' Stacks[0].Outputs[?OutputKey==`IdeUrl`].OutputValue' --output text)
24+
25+ IDE_PASSWORD=$( aws secretsmanager get-secret-value \
26+ --secret-id " $STACK_NAME -password" --query ' SecretString' --output text | jq -r ' .password' )
27+
28+ echo " "
29+ echo " IDE URL: $IDE_URL "
30+ echo " IDE Password: $IDE_PASSWORD "
31+ fi
Original file line number Diff line number Diff line change @@ -6,5 +6,5 @@ SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
66
77source $SCRIPT_DIR /lib/common-env.sh
88
9- aws cloudformation delete-stack --stack-name " $EKS_CLUSTER_NAME -ide "
10- aws cloudformation wait stack-delete-complete --stack-name " $EKS_CLUSTER_NAME -ide "
9+ aws cloudformation delete-stack --stack-name " $EKS_CLUSTER_NAME -cfn "
10+ aws cloudformation wait stack-delete-complete --stack-name " $EKS_CLUSTER_NAME -cfn "
Original file line number Diff line number Diff line change @@ -26,7 +26,9 @@ cat << EOF > ~/.local/share/code-server/User/settings.json
2626 "security.workspace.trust.enabled": false,
2727 "task.allowAutomaticTasks": "on",
2828 "telemetry.telemetryLevel": "off",
29- "workbench.startupEditor": "terminal"
29+ "workbench.startupEditor": "terminal",
30+ "workbench.secondarySideBar.defaultVisibility": "hidden",
31+ "chat.disableAIFeatures": true
3032}
3133EOF
3234
You can’t perform that action at this time.
0 commit comments