File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -85,6 +85,11 @@ resource "coder_agent" "dev" {
85
85
}
86
86
87
87
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
+
88
93
user_data_start = << EOT
89
94
Content-Type: multipart/mixed; boundary="//"
90
95
MIME-Version: 1.0
137
142
}
138
143
139
144
resource "aws_instance" "dev" {
140
- # count = data.coder_workspace.me.transition == "start" ? 1 : 0
141
145
ami = data. aws_ami . ubuntu . id
142
146
availability_zone = " ${ var . region } a"
143
147
instance_type = " t3.micro"
Original file line number Diff line number Diff line change @@ -69,6 +69,11 @@ resource "coder_agent" "dev" {
69
69
}
70
70
71
71
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
+
72
77
user_data_start = << EOT
73
78
<powershell>
74
79
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
You can’t perform that action at this time.
0 commit comments