Skip to content

Commit 22caabb

Browse files
committed
Use <<-EOT (vs <<EOT) to eliminate whitespace in front
1 parent 260ae3a commit 22caabb

File tree

10 files changed

+13
-13
lines changed

10 files changed

+13
-13
lines changed

examples/templates/aws-ecs-container/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ resource "coder_agent" "coder" {
9999

100100
delay_login_until_ready = true
101101
startup_script_timeout = 180
102-
startup_script = <<EOT
102+
startup_script = <<-EOT
103103
set -e
104104
105105
# install and start code-server

examples/templates/aws-linux/main.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ resource "coder_agent" "main" {
7979

8080
delay_login_until_ready = true
8181
startup_script_timeout = 180
82-
startup_script = <<EOT
82+
startup_script = <<-EOT
8383
set -e
8484
8585
# install and start code-server
@@ -109,7 +109,7 @@ locals {
109109
# User data is used to stop/start AWS instances. See:
110110
# https://github.com/hashicorp/terraform-provider-aws/issues/22
111111

112-
user_data_start = <<EOT
112+
user_data_start = <<-EOT
113113
Content-Type: multipart/mixed; boundary="//"
114114
MIME-Version: 1.0
115115
@@ -139,7 +139,7 @@ sudo -u ${local.linux_user} sh -c '${coder_agent.main.init_script}'
139139
--//--
140140
EOT
141141

142-
user_data_end = <<EOT
142+
user_data_end = <<-EOT
143143
Content-Type: multipart/mixed; boundary="//"
144144
MIME-Version: 1.0
145145

examples/templates/aws-windows/main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,15 +82,15 @@ locals {
8282
# User data is used to stop/start AWS instances. See:
8383
# https://github.com/hashicorp/terraform-provider-aws/issues/22
8484

85-
user_data_start = <<EOT
85+
user_data_start = <<-EOT
8686
<powershell>
8787
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
8888
${coder_agent.main.init_script}
8989
</powershell>
9090
<persist>true</persist>
9191
EOT
9292

93-
user_data_end = <<EOT
93+
user_data_end = <<-EOT
9494
<powershell>
9595
shutdown /s
9696
</powershell>

examples/templates/docker-code-server/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ resource "coder_agent" "main" {
2626

2727
delay_login_until_ready = true
2828
startup_script_timeout = 180
29-
startup_script = <<EOT
29+
startup_script = <<-EOT
3030
set -e
3131
code-server --auth none >/tmp/code-server.log 2>&1 &
3232
EOT

examples/templates/docker-image-builds/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ resource "coder_agent" "main" {
2727

2828
delay_login_until_ready = true
2929
startup_script_timeout = 180
30-
startup_script = <<EOT
30+
startup_script = <<-EOT
3131
set -e
3232
3333
# install and start code-server

examples/templates/docker-with-dotfiles/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ resource "coder_agent" "main" {
4747
delay_login_until_ready = true
4848
startup_script_timeout = 180
4949
env = { "DOTFILES_URI" = var.dotfiles_uri != "" ? var.dotfiles_uri : null }
50-
startup_script = <<EOT
50+
startup_script = <<-EOT
5151
set -e
5252
if [ -n "$DOTFILES_URI" ]; then
5353
echo "Installing dotfiles from $DOTFILES_URI"

examples/templates/docker/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ resource "coder_agent" "main" {
3030

3131
delay_login_until_ready = true
3232
startup_script_timeout = 180
33-
startup_script = <<EOT
33+
startup_script = <<-EOT
3434
set -e
3535
3636
# install and start code-server

examples/templates/gcp-linux/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ resource "coder_agent" "main" {
5252

5353
delay_login_until_ready = true
5454
startup_script_timeout = 180
55-
startup_script = <<EOT
55+
startup_script = <<-EOT
5656
set -e
5757
5858
# install and start code-server

examples/templates/gcp-vm-container/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ resource "coder_agent" "main" {
4242

4343
delay_login_until_ready = true
4444
startup_script_timeout = 180
45-
startup_script = <<EOT
45+
startup_script = <<-EOT
4646
set -e
4747
4848
# install and start code-server

examples/templates/kubernetes/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ data "coder_workspace" "me" {}
5151
resource "coder_agent" "main" {
5252
os = "linux"
5353
arch = "amd64"
54-
startup_script = <<EOT
54+
startup_script = <<-EOT
5555
#!/bin/bash
5656
5757
# home folder can be empty, so copying default bash settings

0 commit comments

Comments
 (0)