mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-30 13:10:47 +00:00
Merge pull request #36 from Hestia-Homes/main
Added route53 domain module
This commit is contained in:
commit
da98ccc493
5 changed files with 32 additions and 0 deletions
|
|
@ -2,6 +2,11 @@ stage = "dev"
|
||||||
profile = "DevAdmin"
|
profile = "DevAdmin"
|
||||||
region = "eu-west-2"
|
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
|
# Database
|
||||||
allocated_storage = 20
|
allocated_storage = 20
|
||||||
instance_class = "db.t3.micro"
|
instance_class = "db.t3.micro"
|
||||||
|
|
|
||||||
|
|
@ -82,4 +82,12 @@ module "s3_presignable_bucket" {
|
||||||
source = "./modules/s3_presignable_bucket"
|
source = "./modules/s3_presignable_bucket"
|
||||||
environment = var.stage
|
environment = var.stage
|
||||||
allowed_origins = var.allowed_origins
|
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
|
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 {
|
variable allocated_storage {
|
||||||
description = "The allocated storage in gigabytes"
|
description = "The allocated storage in gigabytes"
|
||||||
type = number
|
type = number
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue