Commit bfc5d233 authored by Anton Babenko's avatar Anton Babenko

Fixed outputs when security group is not created

parent 0f17f01c
output "this_security_group_id" {
description = "The ID of the security group"
value = "${aws_security_group.this.id}"
value = "${element(concat(aws_security_group.this.*.id, list("")), 0)}"
}
output "this_security_group_vpc_id" {
description = "The VPC ID"
value = "${aws_security_group.this.vpc_id}"
value = "${element(concat(aws_security_group.this.*.vpc_id, list("")), 0)}"
}
output "this_security_group_owner_id" {
description = "The owner ID"
value = "${aws_security_group.this.owner_id}"
value = "${element(concat(aws_security_group.this.*.owner_id, list("")), 0)}"
}
output "this_security_group_name" {
description = "The name of the security group"
value = "${aws_security_group.this.name}"
value = "${element(concat(aws_security_group.this.*.name, list("")), 0)}"
}
output "this_security_group_description" {
description = "The description of the security group"
value = "${aws_security_group.this.description}"
value = "${element(concat(aws_security_group.this.*.description, list("")), 0)}"
}
output "this_security_group_ingress" {
description = "The ingress rules"
value = "${aws_security_group.this.ingress}"
value = "${element(concat(aws_security_group.this.*.ingress, list("")), 0)}"
}
output "this_security_group_egress" {
description = "The egress rules"
value = "${aws_security_group.this.egress}"
value = "${element(concat(aws_security_group.this.*.egress, list("")), 0)}"
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment