Skip to content

Commit 571f921

Browse files
docs: update Claude Code module to version 3.0.1 and add AWS Bedrock and Google Vertex AI usage examples
1 parent e516446 commit 571f921

File tree

1 file changed

+98
-4
lines changed

1 file changed

+98
-4
lines changed

registry/coder/modules/claude-code/README.md

Lines changed: 98 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Run the [Claude Code](https://docs.anthropic.com/en/docs/agents-and-tools/claude
1313
```tf
1414
module "claude-code" {
1515
source = "registry.coder.com/coder/claude-code/coder"
16-
version = "3.0.0"
16+
version = "3.0.1"
1717
agent_id = coder_agent.example.id
1818
workdir = "/home/coder/project"
1919
claude_api_key = "xxxx-xxxxx-xxxx"
@@ -49,7 +49,7 @@ data "coder_parameter" "ai_prompt" {
4949
5050
module "claude-code" {
5151
source = "registry.coder.com/coder/claude-code/coder"
52-
version = "3.0.0"
52+
version = "3.0.1"
5353
agent_id = coder_agent.example.id
5454
workdir = "/home/coder/project"
5555
@@ -85,7 +85,7 @@ Run and configure Claude Code as a standalone CLI in your workspace.
8585
```tf
8686
module "claude-code" {
8787
source = "registry.coder.com/coder/claude-code/coder"
88-
version = "3.0.0"
88+
version = "3.0.1"
8989
agent_id = coder_agent.example.id
9090
workdir = "/home/coder"
9191
install_claude_code = true
@@ -108,13 +108,107 @@ variable "claude_code_oauth_token" {
108108
109109
module "claude-code" {
110110
source = "registry.coder.com/coder/claude-code/coder"
111-
version = "3.0.0"
111+
version = "3.0.1"
112112
agent_id = coder_agent.example.id
113113
workdir = "/home/coder/project"
114114
claude_code_oauth_token = var.claude_code_oauth_token
115115
}
116116
```
117117

118+
### Usage with AWS Bedrock
119+
120+
#### Prerequisites
121+
122+
AWS account with Bedrock access, Claude models enabled in Bedrock console, appropriate IAM permissions.
123+
124+
Configure Claude Code to use AWS Bedrock for accessing Claude models through your AWS infrastructure.
125+
126+
```tf
127+
resource "coder_env" "bedrock_use" {
128+
agent_id = coder_agent.example.id
129+
name = "CLAUDE_CODE_USE_BEDROCK"
130+
value = "1"
131+
}
132+
133+
resource "coder_env" "aws_region" {
134+
agent_id = coder_agent.example.id
135+
name = "AWS_REGION"
136+
value = "us-east-1" # Choose your preferred region
137+
}
138+
139+
# Option 1: Using AWS credentials
140+
resource "coder_env" "aws_access_key" {
141+
agent_id = coder_agent.example.id
142+
name = "AWS_ACCESS_KEY_ID"
143+
value = "your-access-key-id"
144+
}
145+
146+
resource "coder_env" "aws_secret_key" {
147+
agent_id = coder_agent.example.id
148+
name = "AWS_SECRET_ACCESS_KEY"
149+
value = "your-secret-access-key"
150+
sensitive = true
151+
}
152+
153+
# Option 2: Using Bedrock API key (simpler)
154+
resource "coder_env" "bedrock_api_key" {
155+
agent_id = coder_agent.example.id
156+
name = "AWS_BEARER_TOKEN_BEDROCK"
157+
value = "your-bedrock-api-key"
158+
sensitive = true
159+
}
160+
161+
module "claude-code" {
162+
source = "registry.coder.com/coder/claude-code/coder"
163+
version = "3.0.1"
164+
agent_id = coder_agent.example.id
165+
workdir = "/home/coder/project"
166+
model = "us.anthropic.claude-3-7-sonnet-20250219-v1:0"
167+
}
168+
```
169+
170+
> [!NOTE]
171+
> For additional Bedrock configuration options (model selection, token limits, region overrides, etc.), see the [Claude Code Bedrock documentation](https://docs.claude.com/en/docs/claude-code/amazon-bedrock).
172+
173+
### Usage with Google Vertex AI
174+
175+
#### Prerequisites
176+
177+
GCP project with Vertex AI API enabled, Claude models enabled through Model Garden, Google Cloud authentication configured, appropriate IAM permissions.
178+
179+
Configure Claude Code to use Google Vertex AI for accessing Claude models through Google Cloud Platform.
180+
181+
```tf
182+
resource "coder_env" "vertex_use" {
183+
agent_id = coder_agent.example.id
184+
name = "CLAUDE_CODE_USE_VERTEX"
185+
value = "1"
186+
}
187+
188+
resource "coder_env" "vertex_project_id" {
189+
agent_id = coder_agent.example.id
190+
name = "ANTHROPIC_VERTEX_PROJECT_ID"
191+
value = "your-gcp-project-id"
192+
}
193+
194+
resource "coder_env" "cloud_ml_region" {
195+
agent_id = coder_agent.example.id
196+
name = "CLOUD_ML_REGION"
197+
value = "global"
198+
}
199+
200+
module "claude-code" {
201+
source = "registry.coder.com/coder/claude-code/coder"
202+
version = "3.0.1"
203+
agent_id = coder_agent.example.id
204+
workdir = "/home/coder/project"
205+
model = "claude-sonnet-4@20250514"
206+
}
207+
```
208+
209+
> [!NOTE]
210+
> For additional Vertex AI configuration options (model selection, token limits, region overrides, etc.), see the [Claude Code Vertex AI documentation](https://docs.claude.com/en/docs/claude-code/google-vertex-ai).
211+
118212
## Troubleshooting
119213

120214
If you encounter any issues, check the log files in the `~/.claude-module` directory within your workspace for detailed information.

0 commit comments

Comments
 (0)