Working tofu plan
This commit is contained in:
1 parent
bb8b6dd978
commit
f81ad1c887
5 files changed
+52
-44
No files matched your search
@@ -1,27 +1,12 @@
|
||||
terraform {
|
||||
required_providers {
|
||||
linode = {
|
||||
source = "linode/linode"
|
||||
# version = "..."
|
||||
}
|
||||
}
|
||||
# Create a Linode VPC
|
||||
resource "linode_vpc" "eqit_vpc" {
|
||||
label = var.vpc_label
|
||||
region = var.region
|
||||
}
|
||||
|
||||
# Configure the Linode Provider
|
||||
provider "linode" {
|
||||
token = var.token
|
||||
# Create a Linode VPC
|
||||
resource "linode_vpc_subnet" "eqit_vpc_subnet" {
|
||||
vpc_id = linode_vpc.eqit_vpc.id
|
||||
label = var.vpc_subnet_label
|
||||
ipv4 = "10.0.10.0/16"
|
||||
}
|
||||
|
||||
data linode_instances "eqit_instances" {
|
||||
filter {
|
||||
name = "tags"
|
||||
values = ["tofu-manage"]
|
||||
}
|
||||
}
|
||||
|
||||
# Create a Linode
|
||||
#resource "linode_instance" "observability" {
|
||||
# label = "observability"
|
||||
#
|
||||
#
|
||||
#}
|
||||
Reference in new issue
Block a user