Files
coder/provisioner/terraform/testdata/instance-id/instance-id.tf
T
Kyle Carberry 3364abecdd chore: generate terraform testdata with matching terraform version (#13343)
Terraform changed the default output of the `terraform graph` command. You must put `-type=plan` to keep the prior behavior.


Co-authored-by: Colin Adler <colin1adler@gmail.com>
2024-05-22 12:45:47 -05:00

26 lines
406 B
Terraform

terraform {
required_providers {
coder = {
source = "coder/coder"
version = "0.22.0"
}
}
}
resource "coder_agent" "main" {
os = "linux"
arch = "amd64"
auth = "google-instance-identity"
}
resource "null_resource" "main" {
depends_on = [
coder_agent.main
]
}
resource "coder_agent_instance" "main" {
agent_id = coder_agent.main.id
instance_id = "example"
}