Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions infrastructure/api/vars.tf
Original file line number Diff line number Diff line change
Expand Up @@ -105,3 +105,7 @@ variable "dynamodb_table_name" {
error_message = "The DynamoDB table name must not be empty."
}
}
variable "repo_name" {
description = "Name of the repository for resource descriptions and tags"
type = string
}
2 changes: 1 addition & 1 deletion infrastructure/api/waf.tf
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ resource "aws_cloudfront_distribution" "api" {
count = var.is_public_api ? 1 : 0
provider = aws.cloudfront_waf
web_acl_id = aws_wafv2_web_acl.cloudfront_acl[0].arn
comment = "Distribution for ${var.app_name} api."
comment = "Distribution for ${var.app_name} api, for github repository :: ${var.repo_name}"

origin {
domain_name = "${aws_apigatewayv2_api.app.id}.execute-api.${var.aws_region}.amazonaws.com"
Expand Down
2 changes: 1 addition & 1 deletion infrastructure/frontend/cloudfront.tf
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ resource "aws_cloudfront_distribution" "s3_distribution" {
depends_on = [aws_s3_bucket_policy.cloudfront_logs_policy]
enabled = true
is_ipv6_enabled = true
comment = "Distribution for ${var.app_name} site."
comment = "Distribution for ${var.app_name} site from github repository :: ${var.repo_name}"
default_root_object = "index.html"
price_class = "PriceClass_100"
web_acl_id = aws_wafv2_web_acl.waf_cloudfront.arn
Expand Down
4 changes: 4 additions & 0 deletions infrastructure/frontend/vars.tf
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,8 @@ variable "common_tags" {
description = "Common tags to be applied to resources"
type = map(string)
default = {}
}
variable "repo_name" {
description = "Name of the repository for resource descriptions and tags"
type = string
}
1 change: 1 addition & 0 deletions terraform/api/terragrunt.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ generate "tfvars" {
"RepoName" = "${local.repo_name}"
"ManagedBy" = "Terraform"
}
repo_name="${local.repo_name}"
EOF
}

Expand Down
1 change: 1 addition & 0 deletions terraform/database/terragrunt.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ generate "tfvars" {
"RepoName" = "${local.repo_name}"
"ManagedBy" = "Terraform"
}
repo_name="${local.repo_name}"
EOF
}

Expand Down
1 change: 1 addition & 0 deletions terraform/frontend/terragrunt.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ generate "tfvars" {
contents = <<-EOF
app_env="${local.app_env}"
app_name="${local.stack_prefix}-frontend-${local.app_env}"
repo_name="${local.repo_name}"
common_tags = {
"Environment" = "${local.target_env}"
"AppEnv" = "${local.app_env}"
Expand Down
Loading