Skip to content

Commit 6c3b524

Browse files
added git app repo for prototyping
1 parent 8857108 commit 6c3b524

File tree

3 files changed

+83
-70
lines changed

3 files changed

+83
-70
lines changed

templates/kubernetes-awsrag-with-claude-code/main.tf

Lines changed: 29 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -147,10 +147,15 @@ resource "coder_agent" "dev" {
147147
env = {
148148
CODER_MCP_CLAUDE_TASK_PROMPT = local.task_prompt
149149
CODER_MCP_CLAUDE_SYSTEM_PROMPT = local.system_prompt
150-
CLAUDE_CODE_USE_BEDROCK = "1",
151-
ANTHROPIC_MODEL = "us.anthropic.claude-3-7-sonnet-20250219-v1:0",
152-
ANTHROPIC_SMALL_FAST_MODEL = "us.anthropic.claude-3-5-haiku-20241022-v1:0",
150+
CLAUDE_CODE_USE_BEDROCK = "1"
151+
ANTHROPIC_MODEL = "us.anthropic.claude-3-7-sonnet-20250219-v1:0"
152+
ANTHROPIC_SMALL_FAST_MODEL = "us.anthropic.claude-3-5-haiku-20241022-v1:0"
153153
CODER_MCP_APP_STATUS_SLUG = "claude-code"
154+
PGVECTOR_USER = "dbadmin"
155+
PGVECTOR_PASSWORD = "YourStrongPasswordHere1"
156+
PGVECTOR_HOST = ${module.aurora-pgvector.aurora_postgres_1_endpoint}
157+
PGVECTOR_PORT = "5432"
158+
PGVECTOR_DATABASE = "mydb1"
154159
}
155160
display_apps {
156161
vscode = false
@@ -166,23 +171,31 @@ module "coder-login" {
166171
agent_id = coder_agent.dev.id
167172
}
168173

169-
module "vscode-web" {
170-
source = "registry.coder.com/coder/vscode-web/coder"
171-
version = "1.2.0"
172-
agent_id = coder_agent.dev.id
173-
folder = local.home_folder
174-
accept_license = true
175-
subdomain = true
176-
order = 0
174+
# Prompt the user for the git repo URL
175+
data "coder_parameter" "git_repo" {
176+
name = "git_repo"
177+
display_name = "Git repository"
178+
default = "https://github.com/greg-the-coder/aws-rag-prototyping.git"
177179
}
178180

179-
module "cursor" {
180-
source = "registry.coder.com/coder/cursor/coder"
181-
version = "1.1.0"
182-
agent_id = coder_agent.dev.id
183-
order = 1
181+
# Clone the repository
182+
module "git_clone" {
183+
count = data.coder_workspace.me.start_count
184+
source = "registry.coder.com/coder/git-clone/coder"
185+
version = "1.1.1"
186+
agent_id = coder_agent.dev.id
187+
url = data.coder_parameter.git_repo.value
184188
}
185189

190+
# Create a code-server instance for the cloned repository
191+
module "code-server" {
192+
count = data.coder_workspace.me.start_count
193+
source = "registry.coder.com/coder/code-server/coder"
194+
version = "1.0.18"
195+
agent_id = coder_agent.dev.id
196+
order = 1
197+
folder = "/home/${local.username}/${module.git_clone[count.index].folder_name}"
198+
}
186199

187200
module "claude-code" {
188201
count = data.coder_workspace.me.start_count

templates/terraform.tfstate

Lines changed: 27 additions & 27 deletions
Large diffs are not rendered by default.

templates/terraform.tfstate.backup

Lines changed: 27 additions & 27 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)