mirror of
https://github.com/fleetdm/fleet
synced 2026-04-21 13:37:30 +00:00
* Initial work on customer terraform modules. I'm getting lost so I'll need to start applying stuff to make sure it works * Stopping here for now Next I need to add optional()'s to everything so we can specify partial structure.https://developer.hashicorp.com/terraform/language/expressions/type-constraints#optional-object-type-attributes * A random check in Need to redo basically all variables and fix everything * Got a lot more working finally! * RDS and Elasticache now create * Clean apply, just need debugging * Should be fully working, just need to make a fully working example * Everything is working and added a usage example * Added contributing * fixup * Final wiring changes and ran the autodoc command * Add more docs * Fixup
31 lines
732 B
HCL
31 lines
732 B
HCL
module "main" {
|
|
source = "../"
|
|
certificate_arn = module.acm.acm_certificate_arn
|
|
}
|
|
|
|
module "acm" {
|
|
source = "terraform-aws-modules/acm/aws"
|
|
version = "4.3.1"
|
|
|
|
domain_name = "fleet.loadtest.fleetdm.com"
|
|
zone_id = data.aws_route53_zone.main.id
|
|
|
|
wait_for_validation = true
|
|
}
|
|
|
|
resource "aws_route53_record" "main" {
|
|
zone_id = data.aws_route53_zone.main.id
|
|
name = "fleet.loadtest.fleetdm.com"
|
|
type = "A"
|
|
|
|
alias {
|
|
name = module.main.byo-vpc.byo-db.alb.lb_dns_name
|
|
zone_id = module.main.byo-vpc.byo-db.alb.lb_zone_id
|
|
evaluate_target_health = true
|
|
}
|
|
}
|
|
|
|
data "aws_route53_zone" "main" {
|
|
name = "loadtest.fleetdm.com."
|
|
private_zone = false
|
|
}
|