Skip to content

Commit

Permalink
feat: add vpc_owner_id to outputs (#428)
Browse files Browse the repository at this point in the history
* added owner_id output (#1)

* Updated description of vpc_owner_id

* docs: Fixed README

Co-authored-by: V Malinics <47030027+vmalinics-managemy@users.noreply.github.com>
Co-authored-by: Anton Babenko <anton@antonbabenko.com>
  • Loading branch information
antonbabenko and vmalinics0 authored May 25, 2020
2 parents 32f3caf + 5dff453 commit 61b499a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 -->
Expand Down
5 changes: 5 additions & 0 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 61b499a

Please sign in to comment.