Skip to content

Instantly share code, notes, and snippets.

View refayathaque's full-sized avatar
🌱

Refayat Haque refayathaque

🌱
View GitHub Profile
@refayathaque
refayathaque / route53.tf
Last active March 21, 2021 19:50
Part of "Automate hosting a static website on AWS with Terraform" post
resource "aws_route53_zone" "primary" {
name = var.DOMAIN_NAME
}
resource "aws_route53_record" "certificate_validation" {
for_each = {
for dvo in aws_acm_certificate.certificate.domain_validation_options : dvo.domain_name => {
name = dvo.resource_record_name
record = dvo.resource_record_value
type = dvo.resource_record_type