From 24a46b5c4ca412f603a4d706d81719e01fc3b259 Mon Sep 17 00:00:00 2001 From: Claude AI Date: Tue, 6 Jan 2026 14:21:46 +0000 Subject: [PATCH] feat(terraform): Add outputs configuration --- terraform/aws-infrastructure/outputs.tf | 49 +++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 terraform/aws-infrastructure/outputs.tf diff --git a/terraform/aws-infrastructure/outputs.tf b/terraform/aws-infrastructure/outputs.tf new file mode 100644 index 0000000..524c339 --- /dev/null +++ b/terraform/aws-infrastructure/outputs.tf @@ -0,0 +1,49 @@ +# Terraform Outputs +# Use: terraform output to view all outputs + +output "vpc_id" { + description = "VPC ID" + value = module.vpc.vpc_id +} + +output "alb_dns_name" { + description = "Application Load Balancer DNS" + value = module.alb.dns_name +} + +output "rds_endpoint" { + description = "RDS endpoint" + value = module.rds.endpoint + sensitive = true +} + +output "s3_bucket_names" { + description = "S3 bucket names" + value = module.s3.bucket_names +} + +output "asg_name" { + description = "Auto Scaling Group name" + value = module.asg.name +} + +output "application_url" { + description = "Application URL" + value = "http://${module.alb.dns_name}" +} + +output "infrastructure_summary" { + description = "Infrastructure summary" + value = { + environment = var.environment + region = var.aws_region + vpc_id = module.vpc.vpc_id + alb_dns = module.alb.dns_name + rds_endpoint = module.rds.endpoint + asg_name = module.asg.name + } +} + +# View all outputs: terraform output +# View specific: terraform output alb_dns_name +# JSON format: terraform output -json