File tree 10 files changed +13
-13
lines changed 10 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ resource "coder_agent" "coder" {
99
99
100
100
delay_login_until_ready = true
101
101
startup_script_timeout = 180
102
- startup_script = << EOT
102
+ startup_script = <<- EOT
103
103
set -e
104
104
105
105
# install and start code-server
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ resource "coder_agent" "main" {
79
79
80
80
delay_login_until_ready = true
81
81
startup_script_timeout = 180
82
- startup_script = << EOT
82
+ startup_script = <<- EOT
83
83
set -e
84
84
85
85
# install and start code-server
@@ -109,7 +109,7 @@ locals {
109
109
# User data is used to stop/start AWS instances. See:
110
110
# https://github.com/hashicorp/terraform-provider-aws/issues/22
111
111
112
- user_data_start = << EOT
112
+ user_data_start = <<- EOT
113
113
Content-Type: multipart/mixed; boundary="//"
114
114
MIME-Version: 1.0
115
115
@@ -139,7 +139,7 @@ sudo -u ${local.linux_user} sh -c '${coder_agent.main.init_script}'
139
139
--//--
140
140
EOT
141
141
142
- user_data_end = << EOT
142
+ user_data_end = <<- EOT
143
143
Content-Type: multipart/mixed; boundary="//"
144
144
MIME-Version: 1.0
145
145
Original file line number Diff line number Diff line change @@ -82,15 +82,15 @@ locals {
82
82
# User data is used to stop/start AWS instances. See:
83
83
# https://github.com/hashicorp/terraform-provider-aws/issues/22
84
84
85
- user_data_start = << EOT
85
+ user_data_start = <<- EOT
86
86
<powershell>
87
87
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
88
88
${ coder_agent . main . init_script }
89
89
</powershell>
90
90
<persist>true</persist>
91
91
EOT
92
92
93
- user_data_end = << EOT
93
+ user_data_end = <<- EOT
94
94
<powershell>
95
95
shutdown /s
96
96
</powershell>
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ resource "coder_agent" "main" {
26
26
27
27
delay_login_until_ready = true
28
28
startup_script_timeout = 180
29
- startup_script = << EOT
29
+ startup_script = <<- EOT
30
30
set -e
31
31
code-server --auth none >/tmp/code-server.log 2>&1 &
32
32
EOT
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ resource "coder_agent" "main" {
27
27
28
28
delay_login_until_ready = true
29
29
startup_script_timeout = 180
30
- startup_script = << EOT
30
+ startup_script = <<- EOT
31
31
set -e
32
32
33
33
# install and start code-server
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ resource "coder_agent" "main" {
47
47
delay_login_until_ready = true
48
48
startup_script_timeout = 180
49
49
env = { " DOTFILES_URI" = var.dotfiles_uri != " " ? var.dotfiles_uri : null }
50
- startup_script = << EOT
50
+ startup_script = <<- EOT
51
51
set -e
52
52
if [ -n "$DOTFILES_URI" ]; then
53
53
echo "Installing dotfiles from $DOTFILES_URI"
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ resource "coder_agent" "main" {
30
30
31
31
delay_login_until_ready = true
32
32
startup_script_timeout = 180
33
- startup_script = << EOT
33
+ startup_script = <<- EOT
34
34
set -e
35
35
36
36
# install and start code-server
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ resource "coder_agent" "main" {
52
52
53
53
delay_login_until_ready = true
54
54
startup_script_timeout = 180
55
- startup_script = << EOT
55
+ startup_script = <<- EOT
56
56
set -e
57
57
58
58
# install and start code-server
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ resource "coder_agent" "main" {
42
42
43
43
delay_login_until_ready = true
44
44
startup_script_timeout = 180
45
- startup_script = << EOT
45
+ startup_script = <<- EOT
46
46
set -e
47
47
48
48
# install and start code-server
Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ data "coder_workspace" "me" {}
51
51
resource "coder_agent" "main" {
52
52
os = " linux"
53
53
arch = " amd64"
54
- startup_script = << EOT
54
+ startup_script = <<- EOT
55
55
#!/bin/bash
56
56
57
57
# home folder can be empty, so copying default bash settings
You can’t perform that action at this time.
0 commit comments