Skip to content

Commit 61b499a

Browse files
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: V Malinics <[email protected]> Co-authored-by: Anton Babenko <[email protected]>
2 parents 32f3caf + 5dff453 commit 61b499a

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -869,6 +869,7 @@ It is possible to integrate this VPC module with [terraform-aws-transit-gateway
869869
| vpc\_ipv6\_association\_id | The association ID for the IPv6 CIDR block |
870870
| vpc\_ipv6\_cidr\_block | The IPv6 CIDR block |
871871
| vpc\_main\_route\_table\_id | The ID of the main route table associated with this VPC |
872+
| vpc\_owner\_id | The ID of the AWS account that owns the VPC |
872873
| vpc\_secondary\_cidr\_blocks | List of secondary CIDR blocks of the VPC |
873874

874875
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->

outputs.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,11 @@ output "vpc_secondary_cidr_blocks" {
6868
value = aws_vpc_ipv4_cidr_block_association.this.*.cidr_block
6969
}
7070

71+
output "vpc_owner_id" {
72+
description = "The ID of the AWS account that owns the VPC"
73+
value = concat(aws_vpc.this.*.owner_id, [""])[0]
74+
}
75+
7176
output "private_subnets" {
7277
description = "List of IDs of private subnets"
7378
value = aws_subnet.private.*.id

0 commit comments

Comments
 (0)