mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
Added route53 domain module
This commit is contained in:
parent
fabc3235af
commit
33626797a9
5 changed files with 32 additions and 0 deletions
|
|
@ -2,6 +2,11 @@ stage = "dev"
|
|||
profile = "DevAdmin"
|
||||
region = "eu-west-2"
|
||||
|
||||
# Domain
|
||||
# Remember to create a production url in Google domains before deploying
|
||||
domain_name = "hestia.homes"
|
||||
api_url_prefix = "api-dev"
|
||||
|
||||
# Database
|
||||
allocated_storage = 20
|
||||
instance_class = "db.t3.micro"
|
||||
|
|
|
|||
|
|
@ -82,4 +82,12 @@ module "s3_presignable_bucket" {
|
|||
source = "./modules/s3_presignable_bucket"
|
||||
environment = var.stage
|
||||
allowed_origins = var.allowed_origins
|
||||
}
|
||||
|
||||
# Set up the route53 record for the API
|
||||
module "route53" {
|
||||
source = "./modules/route53"
|
||||
domain_name = var.domain_name
|
||||
api_url_prefix = var.api_url_prefix
|
||||
|
||||
}
|
||||
0
infrastructure/terraform/modules/route53/main.tf
Normal file
0
infrastructure/terraform/modules/route53/main.tf
Normal file
9
infrastructure/terraform/modules/route53/variables.tf
Normal file
9
infrastructure/terraform/modules/route53/variables.tf
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
variable "domain_name" {
|
||||
description = "Name of the base domain for Route53"
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "api_url_prefix" {
|
||||
description = "Prefix for the API URL"
|
||||
type = string
|
||||
}
|
||||
|
|
@ -13,6 +13,16 @@ variable "region" {
|
|||
type = string
|
||||
}
|
||||
|
||||
variable "domain_name" {
|
||||
description = "Name of the base domain for Route53"
|
||||
type = string
|
||||
}
|
||||
|
||||
variable "api_url_prefix" {
|
||||
description = "Prefix for the API URL"
|
||||
type = string
|
||||
}
|
||||
|
||||
variable allocated_storage {
|
||||
description = "The allocated storage in gigabytes"
|
||||
type = number
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue