Skip to content

Commit 3edebd6

Browse files
committed
cleanup
1 parent 65c9860 commit 3edebd6

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

examples/aws-linux/main.tf

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,11 @@ resource "coder_agent" "dev" {
8585
}
8686

8787
locals {
88+
89+
# with AWS, we are using user data
90+
# to start/stop instances with Terraform
91+
# https://github.com/hashicorp/terraform-provider-aws/issues/22
92+
8893
user_data_start = <<EOT
8994
Content-Type: multipart/mixed; boundary="//"
9095
MIME-Version: 1.0
@@ -137,7 +142,6 @@ EOT
137142
}
138143

139144
resource "aws_instance" "dev" {
140-
# count = data.coder_workspace.me.transition == "start" ? 1 : 0
141145
ami = data.aws_ami.ubuntu.id
142146
availability_zone = "${var.region}a"
143147
instance_type = "t3.micro"

examples/aws-windows/main.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,11 @@ resource "coder_agent" "dev" {
6969
}
7070

7171
locals {
72+
73+
# with AWS, we are using user data
74+
# to start/stop instances with Terraform
75+
# https://github.com/hashicorp/terraform-provider-aws/issues/22
76+
7277
user_data_start = <<EOT
7378
<powershell>
7479
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

0 commit comments

Comments
 (0)