Commit 61b499a4 authored by Anton Babenko's avatar Anton Babenko Committed by GitHub

feat: add vpc_owner_id to outputs (#428)

* added owner_id output (#1)

* Updated description of vpc_owner_id

* docs: Fixed README
Co-authored-by: default avatarV Malinics <47030027+vmalinics-managemy@users.noreply.github.com>
Co-authored-by: default avatarAnton Babenko <anton@antonbabenko.com>
parents 32f3cafb 5dff4539
......@@ -869,6 +869,7 @@ It is possible to integrate this VPC module with [terraform-aws-transit-gateway
| vpc\_ipv6\_association\_id | The association ID for the IPv6 CIDR block |
| vpc\_ipv6\_cidr\_block | The IPv6 CIDR block |
| vpc\_main\_route\_table\_id | The ID of the main route table associated with this VPC |
| vpc\_owner\_id | The ID of the AWS account that owns the VPC |
| vpc\_secondary\_cidr\_blocks | List of secondary CIDR blocks of the VPC |
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
......
......@@ -68,6 +68,11 @@ output "vpc_secondary_cidr_blocks" {
value = aws_vpc_ipv4_cidr_block_association.this.*.cidr_block
}
output "vpc_owner_id" {
description = "The ID of the AWS account that owns the VPC"
value = concat(aws_vpc.this.*.owner_id, [""])[0]
}
output "private_subnets" {
description = "List of IDs of private subnets"
value = aws_subnet.private.*.id
......
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