From b96b71a05a6e22ddb0044f30263bde4f51858aef Mon Sep 17 00:00:00 2001 From: Daniel Roth Date: Fri, 13 Mar 2026 11:59:59 +0000 Subject: [PATCH] fix incorrect variables and references --- infrastructure/terraform/cdn/main.tf | 2 +- infrastructure/terraform/cdn/outputs.tf | 3 --- .../modules/lambda_with_api_gateway/outputs.tf | 14 +------------- 3 files changed, 2 insertions(+), 17 deletions(-) delete mode 100644 infrastructure/terraform/cdn/outputs.tf diff --git a/infrastructure/terraform/cdn/main.tf b/infrastructure/terraform/cdn/main.tf index daa3b0f1..839ea28b 100644 --- a/infrastructure/terraform/cdn/main.tf +++ b/infrastructure/terraform/cdn/main.tf @@ -16,7 +16,7 @@ data "terraform_remote_state" "shared" { data "terraform_remote_state" "fast_api" { backend = "s3" config = { - bucket = "assessment-model-terraform-state" + bucket = "ara-fast-api-terraform-state" key = "env:/${var.stage}/terraform.tfstate" region = "eu-west-2" } diff --git a/infrastructure/terraform/cdn/outputs.tf b/infrastructure/terraform/cdn/outputs.tf deleted file mode 100644 index 7c684377..00000000 --- a/infrastructure/terraform/cdn/outputs.tf +++ /dev/null @@ -1,3 +0,0 @@ -output "cloudfront_domain_name" { - value = module.api_cdn.cloudfront_domain_name -} \ No newline at end of file diff --git a/infrastructure/terraform/modules/lambda_with_api_gateway/outputs.tf b/infrastructure/terraform/modules/lambda_with_api_gateway/outputs.tf index 2d7af141..c44ddc0d 100644 --- a/infrastructure/terraform/modules/lambda_with_api_gateway/outputs.tf +++ b/infrastructure/terraform/modules/lambda_with_api_gateway/outputs.tf @@ -4,16 +4,4 @@ output "role_name" { output "api_endpoint" { value = aws_apigatewayv2_stage.this.invoke_url -} - -output "cloudfront_domain" { - value = aws_cloudfront_distribution.api.domain_name -} - -output "certificate_validation_records" { - value = aws_acm_certificate.this.domain_validation_options -} - -# output "custom_domain_endpoint" { -# value = var.domain_name != null ? "https://${var.domain_name}" : null -# } \ No newline at end of file +} \ No newline at end of file