curl -X POST "https://global.api.konghq.com/v2/cloud-gateways/networks/$KONNECT_NETWORK_ID/transit-gateways" \
--no-progress-meter --fail-with-body \
-H "Authorization: Bearer $KONNECT_TOKEN"\
-H "Accept: application/json"\
-H "Content-Type: application/json" \
--json '{
"name": "us-east-2 vpc peering",
"cidr_blocks": [
"'$AWS_VPC_CIDR'"
],
"transit_gateway_attachment_config": {
"kind": "aws-vpc-peering-attachment",
"peer_account_id": "'$AWS_ACCOUNT_ID'",
"peer_vpc_id": "'$AWS_VPC_ID'",
"peer_vpc_region": "'$AWS_REGION'"
}
}'
Copied!