Skip to content

Commit ca11d08

Browse files
whummerclaude
andcommitted
Add LocalStack VS Code extension to devcontainer
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 04b6231 commit ca11d08

3 files changed

Lines changed: 8 additions & 4 deletions

File tree

.devcontainer/devcontainer.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,12 @@
44
},
55
"customizations": {
66
"vscode": {
7+
"settings": {
8+
"localstack.cli.location": "/home/codespace/.python/current/bin/localstack"
9+
},
710
"extensions": [
811
"amazonwebservices.aws-toolkit-vscode",
12+
"localstack.localstack",
913
"hashicorp.terraform"
1014
]
1115
},
@@ -15,5 +19,5 @@
1519
]
1620
}
1721
},
18-
"postStartCommand": "echo 'Run ./00-setup/setup.sh to configure your auth token and start LocalStack.'"
22+
"postStartCommand": "bash ./00-setup/setup.sh"
1923
}

00-setup/setup.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ if [ -n "$TOKEN_URL" ]; then
1313
echo "LOCALSTACK_AUTH_TOKEN=$TOKEN" >> "${HOME}/.zshrc" 2>/dev/null || true
1414
echo "Token set."
1515
elif [ -z "${LOCALSTACK_AUTH_TOKEN:-}" ]; then
16-
echo "No token found. Set LOCALSTACK_AUTH_TOKEN or WORKSHOP_TOKEN_URL."
16+
echo "No token found. Set LOCALSTACK_AUTH_TOKEN or WORKSHOP_TOKEN_URL and re-run this script."
1717
echo " export LOCALSTACK_AUTH_TOKEN=<your-token>"
18-
exit 1
18+
exit 0
1919
else
2020
echo "Using existing LOCALSTACK_AUTH_TOKEN."
2121
fi

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# LocalStack Workshop — AWS Community Day
1+
# LocalStack Workshop
22

33
Hands-on workshop: local serverless development with [LocalStack](https://localstack.cloud).
44

0 commit comments

Comments
 (0)