Initial commit - realms platform
This commit is contained in:
parent
c590ab6d18
commit
c717c3751c
234 changed files with 74103 additions and 15231 deletions
10
devops/terraform/modules/vpc/main.tf
Normal file
10
devops/terraform/modules/vpc/main.tf
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
# =============================================================================
|
||||
# VPC Resource
|
||||
# =============================================================================
|
||||
|
||||
resource "digitalocean_vpc" "main" {
|
||||
name = var.name
|
||||
region = var.region
|
||||
ip_range = var.ip_range
|
||||
description = var.description
|
||||
}
|
||||
14
devops/terraform/modules/vpc/outputs.tf
Normal file
14
devops/terraform/modules/vpc/outputs.tf
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
output "vpc_id" {
|
||||
description = "ID of the VPC"
|
||||
value = digitalocean_vpc.main.id
|
||||
}
|
||||
|
||||
output "vpc_urn" {
|
||||
description = "URN of the VPC"
|
||||
value = digitalocean_vpc.main.urn
|
||||
}
|
||||
|
||||
output "vpc_ip_range" {
|
||||
description = "IP range of the VPC"
|
||||
value = digitalocean_vpc.main.ip_range
|
||||
}
|
||||
20
devops/terraform/modules/vpc/variables.tf
Normal file
20
devops/terraform/modules/vpc/variables.tf
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
variable "name" {
|
||||
description = "Name of the VPC"
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "region" {
|
||||
description = "DigitalOcean region"
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "ip_range" {
|
||||
description = "IP range for the VPC (CIDR notation)"
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "description" {
|
||||
description = "Description of the VPC"
|
||||
type = string
|
||||
default = ""
|
||||
}
|
||||
8
devops/terraform/modules/vpc/versions.tf
Normal file
8
devops/terraform/modules/vpc/versions.tf
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
terraform {
|
||||
required_providers {
|
||||
digitalocean = {
|
||||
source = "digitalocean/digitalocean"
|
||||
version = ">= 2.34"
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue