Working vpc with two member instances
This commit is contained in:
1 parent
f81ad1c887
commit
784819ef34
4 files changed
+21
No files matched your search
@@ -5,4 +5,16 @@ resource "linode_instance" "eqit_instance" {
|
||||
type = var.type
|
||||
authorized_keys = var.authorized_keys
|
||||
root_pass = var.root_pass
|
||||
|
||||
interface {
|
||||
purpose = "public"
|
||||
}
|
||||
|
||||
interface {
|
||||
purpose = "vpc"
|
||||
subnet_id = var.vpc_subnet_id
|
||||
ipv4 {
|
||||
vpc = "10.0.10.2"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -3,6 +3,10 @@ variable "root_pass" {
|
||||
description = "Your Linode's root user's password."
|
||||
}
|
||||
|
||||
variable "vpc_subnet_id" {
|
||||
description = "Linode VPC Subnet ID"
|
||||
}
|
||||
|
||||
## Optional Variables
|
||||
variable "image" {
|
||||
description = "Image to use for Linode instance"
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
output "vpc_subnet_id" {
|
||||
value = linode_vpc_subnet.eqit_vpc_subnet.id
|
||||
}
|
||||
Reference in new issue
Block a user