Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9d60a5a

Browse files
committed
example: Re-enable Digital Ocean project assignment
The issue tracked in#1750 was fixed by#2187, we can now re-enable theproject resource.
1 parent2621093 commit9d60a5a

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

‎examples/templates/do-linux/main.tf

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -123,14 +123,13 @@ resource "digitalocean_droplet" "workspace" {
123123
ssh_keys=var.step2_do_admin_ssh_key>0? [var.step2_do_admin_ssh_key]: []
124124
}
125125

126-
# Temporarily disabled because it breaks SSH. (https://github.com/coder/coder/issues/1750)
127-
# resource "digitalocean_project_resources" "project" {
128-
# project = var.step1_do_project_id
129-
# # Workaround for terraform plan when using count.
130-
# resources = length(digitalocean_droplet.workspace) > 0 ? [
131-
# digitalocean_volume.home_volume.urn,
132-
# digitalocean_droplet.workspace[0].urn
133-
# ] : [
134-
# digitalocean_volume.home_volume.urn
135-
# ]
136-
# }
126+
resource"digitalocean_project_resources""project" {
127+
project=var.step1_do_project_id
128+
# Workaround for terraform plan when using count.
129+
resources=length(digitalocean_droplet.workspace)>0? [
130+
digitalocean_volume.home_volume.urn,
131+
digitalocean_droplet.workspace[0].urn
132+
]: [
133+
digitalocean_volume.home_volume.urn
134+
]
135+
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp