mirror of
https://github.com/coder/coder.git
synced 2026-11-06 00:03:36 +08:00
- Updates `terraform` to [v1.10.5](https://github.com/hashicorp/terraform/blob/v1.10.5/CHANGELOG.md#1105-january-22-2025) - Updates provider to >=2.0.0 in provider testdata fixtures - Fixes provider to required release version for resource monitors - Fixes missing leading / in volumes in resource monitor tests --------- Co-authored-by: Cian Johnston <cian@coder.com>
26 lines
407 B
Terraform
26 lines
407 B
Terraform
terraform {
|
|
required_providers {
|
|
coder = {
|
|
source = "coder/coder"
|
|
version = ">=2.0.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"
|
|
}
|