seahaven-door-unlock-api/terraform/outputs.tf
Adam Moussa 61f13bddfe
fix(terraform): defer api domain until dns cutover (#83)
API Gateway custom domain names are unique per region across accounts, so prod cannot create doorunlock.seahaven.com while mgmt still holds it.
2026-08-27 23:06:52 +00:00

30 lines
1.2 KiB
HCL

output "api_endpoint" {
description = "HTTP API execute-api URL for pre-DNS live-path proof."
value = aws_apigatewayv2_api.this.api_endpoint
}
output "custom_domain_target" {
description = "API Gateway regional domain name. DNS A alias target for doorunlock.seahaven.com at cutover. Null until attach_custom_domain is true."
value = var.attach_custom_domain ? aws_apigatewayv2_domain_name.this[0].domain_name_configuration[0].target_domain_name : null
}
output "custom_domain_hosted_zone_id" {
description = "API Gateway regional hosted zone id for the Route53 alias. Null until attach_custom_domain is true."
value = var.attach_custom_domain ? aws_apigatewayv2_domain_name.this[0].domain_name_configuration[0].hosted_zone_id : null
}
output "artifacts_bucket_name" {
description = "S3 bucket holding Lambda deployment packages."
value = aws_s3_bucket.artifacts.id
}
output "function_arns" {
description = "ARNs of every Lambda function in this configuration."
value = {
unlock = aws_lambda_function.unlock.arn
lockdown = aws_lambda_function.lockdown.arn
authorizer = aws_lambda_function.authorizer.arn
poller = aws_lambda_function.poller.arn
blf_sync = aws_lambda_function.blf_sync.arn
}
}