-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathtemplate_versions.tf
More file actions
125 lines (115 loc) · 3.54 KB
/
template_versions.tf
File metadata and controls
125 lines (115 loc) · 3.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
###########################################################
# Core Coder GitOps Provider, Resource & Variable definitions
###########################################################
terraform {
required_providers {
coderd = {
source = "coder/coderd"
}
}
}
// Variables sourced from TF_VAR_<environment variables>
variable "coder_url" {
type = string
description = "Coder deployment login url"
default = ""
}
variable "coder_token" {
type = string
description = "Coder session token used to authenticate to deployment"
default = ""
}
variable "coder_gitsha" {
type = string
description = "Git SHA to use in version name"
default = ""
}
provider "coderd" {
url = "${var.coder_url}"
token = "${var.coder_token}"
}
###########################################################
# Maintain Coder Template Resources in this Section
###########################################################
resource "coderd_template" "awshp-k8s-with-claude-code" {
name = "awshp-k8s-base-claudecode"
display_name = "AWS Workshop - Kubernetes with Claude Code"
description = "Provision Kubernetes Deployments as Coder workspaces with Anthropic Claude Code."
icon = "/icon/k8s.png"
versions = [{
directory = "./awshp-k8s-with-claude-code"
active = true
# Version name is optional
name = var.coder_gitsha
tf_vars = [{
name = "namespace"
value = "coder"
}]
}]
}
resource "coderd_template" "awshp-k8s-with-kiro_cli" {
name = "awshp-k8s-base-kirocli"
display_name = "AWS Workshop - Kubernetes with Kiro CLI"
description = "Provision Kubernetes Deployments as Coder workspaces with Kiro CLI Agent."
icon = "/icon/k8s.png"
versions = [{
directory = "./awshp-k8s-with-kiro-cli"
active = true
# Version name is optional
name = var.coder_gitsha
tf_vars = [{
name = "namespace"
value = "coder"
}]
}]
}
# Uncomment for EC2/Graviton ARM + Serverless Workspace
resource "coderd_template" "awshp-linux-sam" {
name = "awshp-linux-sam"
display_name = "AWS Workshop - EC2 (Linux) SAM"
description = "Provision AWS EC2 ARM64 VMs as Serverless Development Coder workspaces"
icon = "/icon/aws.png"
versions = [{
directory = "./awshp-linux-sam"
active = true
# Version name is optional
name = var.coder_gitsha
tf_vars = [{
name = "aws_iam_profile"
value = "coder-workshop-ec2-workspace-profile"
}]
}]
}
# Uncomment for EC2/Windows Development Desktop Workspace
resource "coderd_template" "awshp-windows-dcv" {
name = "awshp-windows-dcv"
display_name = "AWS Workshop EC2 (Windows) DCV"
description = "Provision AWS EC2 Windows VMs as Coder workspaces accessible via browser using Amazon DCV"
icon = "/icon/aws.png"
versions = [{
directory = "./awshp-windows-dcv"
active = true
# Version name is optional
name = var.coder_gitsha
}]
}
resource "coderd_template" "awshp-k8s-rag-with-claude-code" {
name = "awshp-k8s-rag-with-claude-code"
display_name = "AWS Workshop Kubernetes RAG Prototyping with Claude Code"
description = "Provision Kubernetes Deployments as Coder workspaces with Anthropic Claude Code for AWS RAG prototyping."
icon = "/icon/k8s.png"
versions = [{
directory = "./awshp-k8s-rag-with-claude-code"
active = true
# Version name is optional
name = var.coder_gitsha
tf_vars = [{
name = "namespace"
value = "coder"
},
{
name = "eks_cluster_name"
value = "coder-aws-cluster"
}]
}]
}