diff --git a/modules/aws_ec2_standalone/outputs.tf b/modules/aws_ec2_standalone/outputs.tf index cde9a6f..4b81dbd 100644 --- a/modules/aws_ec2_standalone/outputs.tf +++ b/modules/aws_ec2_standalone/outputs.tf @@ -17,3 +17,13 @@ output "ec2_public_ip" { value = aws_instance.this.public_ip description = "Public IP of EC2 Instance" } + +output "ec2_security_group_arn" { + value = aws_security_group.this.arn + description = "Security Group arn for EC2 instance" +} + +output "ec2_security_group_id" { + value = aws_security_group.this.id + description = "Security Group ID for EC2 instance" +} diff --git a/modules/aws_ecs/outputs.tf b/modules/aws_ecs/outputs.tf index 95a3f48..02813ab 100644 --- a/modules/aws_ecs/outputs.tf +++ b/modules/aws_ecs/outputs.tf @@ -8,6 +8,16 @@ output "ecs_alb_arn" { description = "Retool ALB arn" } +output "ecs_alb_security_group_arn" { + value = aws_security_group.alb.arn + description = "Security Group arn for Retool ALB" +} + +output "ecs_alb_security_group_id" { + value = aws_security_group.alb.id + description = "Security Group ID for Retool ALB" +} + output "ecs_cluster_name" { value = aws_ecs_cluster.this.name description = "Name of AWS ECS Cluster" @@ -23,6 +33,16 @@ output "ecs_cluster_id" { description = "ID of AWS ECS Cluster" } +output "ecs_containers_security_group_arn" { + value = aws_security_group.containers.arn + description = "Security Group arn for Retool containers" +} + +output "ecs_containers_security_group_id" { + value = aws_security_group.containers.id + description = "Security Group ID for Retool containers" +} + output "rds_instance_id" { value = aws_db_instance.this.id description = "ID of AWS RDS instance" @@ -43,6 +63,16 @@ output "rds_instance_name" { description = "Name of RDS instance" } +output "rds_security_group_arn" { + value = aws_security_group.rds.arn + description = "Security Group arn for RDS instance" +} + +output "rds_security_group_id" { + value = aws_security_group.rds.id + description = "Security Group ID for RDS instance" +} + output "target_group_arn" { value = aws_lb_target_group.this.arn description = "ARN for alb target group" diff --git a/modules/aws_ecs_ec2/outputs.tf b/modules/aws_ecs_ec2/outputs.tf index 84a7018..4dfc0c0 100644 --- a/modules/aws_ecs_ec2/outputs.tf +++ b/modules/aws_ecs_ec2/outputs.tf @@ -8,6 +8,16 @@ output "ecs_alb_arn" { description = "Retool ALB arn" } +output "ecs_alb_security_group_arn" { + value = aws_security_group.alb.arn + description = "Security Group arn for Retool ALB" +} + +output "ecs_alb_security_group_id" { + value = aws_security_group.alb.id + description = "Security Group ID for Retool ALB" +} + output "ecs_cluster_name" { value = aws_ecs_cluster.this.name description = "Name of AWS ECS Cluster" @@ -23,6 +33,16 @@ output "ecs_cluster_id" { description = "ID of AWS ECS Cluster" } +output "ecs_ec2_security_group_arn" { + value = aws_security_group.ec2.arn + description = "Security Group arn for Retool ec2" +} + +output "ecs_ec2_security_group_id" { + value = aws_security_group.ec2.id + description = "Security Group ID for Retool ec2" +} + output "rds_instance_id" { value = aws_db_instance.this.id description = "ID of AWS RDS instance" @@ -42,3 +62,13 @@ output "rds_instance_name" { value = aws_db_instance.this.db_name description = "Name of RDS instance" } + +output "rds_security_group_arn" { + value = aws_security_group.rds.arn + description = "Security Group arn for RDS instance" +} + +output "rds_security_group_id" { + value = aws_security_group.rds.id + description = "Security Group ID for RDS instance" +}