aws ec2 modify-transit-gateway
Modifies the specified transit gateway. AWS CLI reference
1 example 4 options Its page in the AWS CLI reference
Examples
To modify a transit gateway
The following modify-transit-gateway example modifies the specified transit gateway by enabling ECMP support for VPN attachments.
aws ec2 modify-transit-gateway --transit-gateway-id tgw-1111112222aaaaaaa --options VpnEcmpSupport=enableIdentify--transit-gateway-idThe ID of the transit gateway.--optionsThe options to modify.Its output
{
"TransitGateway": {
"TransitGatewayId": "tgw-1111112222aaaaaaa",
"TransitGatewayArn": "64512",
"State": "modifying",
"OwnerId": "123456789012",
"CreationTime": "2020-04-30T08:41:37.000Z",
"Options": {
"AmazonSideAsn": 64512,
"AutoAcceptSharedAttachments": "disable",
"DefaultRouteTableAssociation": "enable",
"AssociationDefaultRouteTableId": "tgw-rtb-0123456789abcd123",
"DefaultRouteTablePropagation": "enable",
"PropagationDefaultRouteTableId": "tgw-rtb-0123456789abcd123",
"VpnEcmpSupport": "enable",
"DnsSupport": "enable"
}
}
}For more information, see Transit gateways in the Transit Gateways Guide.
Options
--descriptionThe description for the transit gateway.--dry-runChecks whether you have the required permissions for the action, without actually making the request, and provides an error response.--optionsThe options to modify.--transit-gateway-idThe ID of the transit gateway.