Merge pull request #36 from Hestia-Homes/main

Added route53 domain module
This commit is contained in:
KhalimCK 2023-07-17 11:15:43 +01:00 committed by GitHub
commit da98ccc493
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 32 additions and 0 deletions

View file

@ -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"

View file

@ -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
}

View 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
}

View file

@ -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