Skip to content

Commit

Permalink
tf
Browse files Browse the repository at this point in the history
  • Loading branch information
beggers committed Jun 15, 2024
1 parent 8da09d0 commit 57759c5
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 3 deletions.
6 changes: 3 additions & 3 deletions beneggerscom/test/ssg/input_files/test_markdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ def test_title_and_meta_title():
"\n"
)
md = MarkdownFile.from_lines(in_md)
assert md.title == "Test Title"
assert md.meta_title == "Test Title | Ben Eggers dot com"
assert md.title == "Test title"
assert md.meta_title == "Test title | Ben Eggers dot com"


def test_raises_with_no_title():
Expand Down Expand Up @@ -52,7 +52,7 @@ def test_manual_meta_title():
"\n"
)
md = MarkdownFile.from_lines(in_md)
assert md.title == "Test Title"
assert md.title == "Test title"
assert md.meta_title == "Test meta title"


Expand Down
12 changes: 12 additions & 0 deletions terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,18 @@ module "index" {
zone_id = aws_route53_zone.main.zone_id
}

module "improvements_1_posts" {
source = "./zone_deployment"

content_type = "text/html"
domain_aliases = []
file = "improvements-1.html"
file_directory = "../public/posts/"
fqdn = "improvements-1.posts.${var.domainName}"
source_hash = filemd5("../public/posts/improvements-1.html")
zone_id = aws_route53_zone.main.zone_id
}

module "posts" {
source = "./zone_deployment"

Expand Down
25 changes: 25 additions & 0 deletions terraform/outputs_autogen.tf
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,31 @@ output "index_cert_validation_record" {
}


output "improvements_1_posts_cloudfront_distribution_id" {
value = module.improvements_1_posts.cloudfront_distribution_id
}

output "improvements_1_posts_hosted_zone_id" {
value = module.improvements_1_posts.hosted_zone_id
}

output "improvements_1_posts_bucket_id" {
value = module.improvements_1_posts.bucket_id
}

output "improvements_1_posts_bucket_regional_domain_name" {
value = module.improvements_1_posts.bucket_regional_domain_name
}

output "improvements_1_posts_cert_arn" {
value = module.improvements_1_posts.cert_arn
}

output "improvements_1_posts_cert_validation_record" {
value = module.improvements_1_posts.cert_validation_record
}


output "posts_cloudfront_distribution_id" {
value = module.posts.cloudfront_distribution_id
}
Expand Down

0 comments on commit 57759c5

Please sign in to comment.