Skip to content

Commit

Permalink
Add tags to peering connection
Browse files Browse the repository at this point in the history
  • Loading branch information
rgrizzell committed Mar 9, 2024
1 parent 446fe62 commit bd6b3c0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ resource "aws_vpc_peering_connection" "requestor" {
requester {
allow_remote_vpc_dns_resolution = local.requestor_dns
}
tags = var.tags
}

// Allow the accepting VPC to associate to the requesting VPC's private zone.
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,9 @@ variable "auto_accept_peering" {
description = "Whether or not to automatically accept the peering request from the requestor VPC."
default = true
}

variable "tags" {
default = {}
description = "Tags to apply to the peering connection"
type = map(string)
}

0 comments on commit bd6b3c0

Please sign in to comment.