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_appmesh_gateway_route" {
source="./modules/aws/r/aws_appmesh_gateway_route"# mesh_name - (required) is a type of stringmesh_name=null# mesh_owner - (optional) is a type of stringmesh_owner=null# name - (required) is a type of stringname=null# tags - (optional) is a type of map of stringtags={}
# virtual_gateway_name - (required) is a type of stringvirtual_gateway_name=nullspec=[{
grpc_route = [{
action = [{
target = [{
virtual_service = [{
virtual_service_name =null
}]
}]
}]
match = [{
service_name =null
}]
}]
http2_route = [{
action = [{
target = [{
virtual_service = [{
virtual_service_name =null
}]
}]
}]
match = [{
prefix =null
}]
}]
http_route = [{
action = [{
target = [{
virtual_service = [{
virtual_service_name =null
}]
}]
}]
match = [{
prefix =null
}]
}]
}]
}
resource"aws_appmesh_gateway_route""this" {
# mesh_name - (required) is a type of stringmesh_name=var.mesh_name# mesh_owner - (optional) is a type of stringmesh_owner=var.mesh_owner# name - (required) is a type of stringname=var.name# tags - (optional) is a type of map of stringtags=var.tags# virtual_gateway_name - (required) is a type of stringvirtual_gateway_name=var.virtual_gateway_namedynamic"spec" {
for_each=var.speccontent {
dynamic"grpc_route" {
for_each=spec.value.grpc_routecontent {
dynamic"action" {
for_each=grpc_route.value.actioncontent {
dynamic"target" {
for_each=action.value.targetcontent {
dynamic"virtual_service" {
for_each=target.value.virtual_servicecontent {
# virtual_service_name - (required) is a type of stringvirtual_service_name=virtual_service.value["virtual_service_name"]
}
}
}
}
}
}
dynamic"match" {
for_each=grpc_route.value.matchcontent {
# service_name - (required) is a type of stringservice_name=match.value["service_name"]
}
}
}
}
dynamic"http2_route" {
for_each=spec.value.http2_routecontent {
dynamic"action" {
for_each=http2_route.value.actioncontent {
dynamic"target" {
for_each=action.value.targetcontent {
dynamic"virtual_service" {
for_each=target.value.virtual_servicecontent {
# virtual_service_name - (required) is a type of stringvirtual_service_name=virtual_service.value["virtual_service_name"]
}
}
}
}
}
}
dynamic"match" {
for_each=http2_route.value.matchcontent {
# prefix - (required) is a type of stringprefix=match.value["prefix"]
}
}
}
}
dynamic"http_route" {
for_each=spec.value.http_routecontent {
dynamic"action" {
for_each=http_route.value.actioncontent {
dynamic"target" {
for_each=action.value.targetcontent {
dynamic"virtual_service" {
for_each=target.value.virtual_servicecontent {
# virtual_service_name - (required) is a type of stringvirtual_service_name=virtual_service.value["virtual_service_name"]
}
}
}
}
}
}
dynamic"match" {
for_each=http_route.value.matchcontent {
# prefix - (required) is a type of stringprefix=match.value["prefix"]
}
}
}
}
}
}
}