From ab3536d5a14eb868af753b48bbdc443be267aaef Mon Sep 17 00:00:00 2001 From: Francois Laupretre Date: Wed, 17 Mar 2021 19:09:01 +0100 Subject: [PATCH] Add "dms_security_group_id" output variable --- outputs.tf | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/outputs.tf b/outputs.tf index e42ac61..1611f76 100644 --- a/outputs.tf +++ b/outputs.tf @@ -16,4 +16,9 @@ output "dms_replication_subnet_group_vpc_id" { output "dms_endpoints_arns" { value = values(aws_dms_endpoint.dms-endpoints)[*].endpoint_arn -} \ No newline at end of file +} + +output "dms_security_group_id" { + value = var.dms_create_default_sg ? aws_security_group.dms-sg[0].id : "" +} +