You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
module"aws_vpc_peering_connection" {
source="./modules/aws/r/aws_vpc_peering_connection"# auto_accept - (optional) is a type of boolauto_accept=null# peer_owner_id - (optional) is a type of stringpeer_owner_id=null# peer_region - (optional) is a type of stringpeer_region=null# peer_vpc_id - (required) is a type of stringpeer_vpc_id=null# tags - (optional) is a type of map of stringtags={}
# vpc_id - (required) is a type of stringvpc_id=nullaccepter=[{
allow_classic_link_to_remote_vpc =null
allow_remote_vpc_dns_resolution =null
allow_vpc_to_remote_classic_link =null
}]
requester=[{
allow_classic_link_to_remote_vpc =null
allow_remote_vpc_dns_resolution =null
allow_vpc_to_remote_classic_link =null
}]
timeouts=[{
create =null
delete =null
update =null
}]
}
resource"aws_vpc_peering_connection""this" {
# auto_accept - (optional) is a type of boolauto_accept=var.auto_accept# peer_owner_id - (optional) is a type of stringpeer_owner_id=var.peer_owner_id# peer_region - (optional) is a type of stringpeer_region=var.peer_region# peer_vpc_id - (required) is a type of stringpeer_vpc_id=var.peer_vpc_id# tags - (optional) is a type of map of stringtags=var.tags# vpc_id - (required) is a type of stringvpc_id=var.vpc_iddynamic"accepter" {
for_each=var.acceptercontent {
# allow_classic_link_to_remote_vpc - (optional) is a type of boolallow_classic_link_to_remote_vpc=accepter.value["allow_classic_link_to_remote_vpc"]
# allow_remote_vpc_dns_resolution - (optional) is a type of boolallow_remote_vpc_dns_resolution=accepter.value["allow_remote_vpc_dns_resolution"]
# allow_vpc_to_remote_classic_link - (optional) is a type of boolallow_vpc_to_remote_classic_link=accepter.value["allow_vpc_to_remote_classic_link"]
}
}
dynamic"requester" {
for_each=var.requestercontent {
# allow_classic_link_to_remote_vpc - (optional) is a type of boolallow_classic_link_to_remote_vpc=requester.value["allow_classic_link_to_remote_vpc"]
# allow_remote_vpc_dns_resolution - (optional) is a type of boolallow_remote_vpc_dns_resolution=requester.value["allow_remote_vpc_dns_resolution"]
# allow_vpc_to_remote_classic_link - (optional) is a type of boolallow_vpc_to_remote_classic_link=requester.value["allow_vpc_to_remote_classic_link"]
}
}
dynamic"timeouts" {
for_each=var.timeoutscontent {
# create - (optional) is a type of stringcreate=timeouts.value["create"]
# delete - (optional) is a type of stringdelete=timeouts.value["delete"]
# update - (optional) is a type of stringupdate=timeouts.value["update"]
}
}
}