CmdID / aws / aws directconnect
aws directconnect create-direct-connect-gateway-association-proposal
Creates a proposal to associate the specified virtual private gateway or transit gateway with the specified Direct Connect gateway. AWS CLI reference
1 example 5 options Its page in the AWS CLI reference
Examples
To create a proposal to associate the specified transit gateway with the specified Direct Connect gateway
The following create-direct-connect-gateway-association-proposal example creates a proposal that associates the specified transit gateway with the specified Direct Connect gateway.
aws directconnect create-direct-connect-gateway-association-proposal --direct-connect-gateway-id a1b2c3d4-5678-90ab-cdef-EXAMPLE11111 --direct-connect-gateway-owner-account 123456789012 --gateway-id tgw-02f776b1a7EXAMPLE --add-allowed-prefixes-to-direct-connect-gateway cidr=192.168.1.0/30Identify--direct-connect-gateway-idThe ID of the Direct Connect gateway.--direct-connect-gateway-owner-accountThe ID of the Amazon Web Services account that owns the Direct Connect gateway.--gateway-idThe ID of the virtual private gateway or transit gateway.--add-allowed-prefixes-to-direct-connect-gatewayThe Amazon VPC prefixes to advertise to the Direct Connect gateway.Its output
{
"directConnectGatewayAssociationProposal": {
"proposalId": "a1b2c3d4-5678-90ab-cdef-EXAMPLE22222",
"directConnectGatewayId": "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
"directConnectGatewayOwnerAccount": "123456789012",
"proposalState": "requested",
"associatedGateway": {
"id": "tgw-02f776b1a7EXAMPLE",
"type": "transitGateway",
"ownerAccount": "123456789012",
"region": "us-west-2"
},
"requestedAllowedPrefixesToDirectConnectGateway": [
{
"cidr": "192.168.1.0/30"
}
]
}
}For more information, see Create a Transit Gateway and Direct Connect association proposal in the AWS Direct Connect User Guide.
Options
--add-allowed-prefixes-to-direct-connect-gatewayThe Amazon VPC prefixes to advertise to the Direct Connect gateway.--direct-connect-gateway-idThe ID of the Direct Connect gateway.--direct-connect-gateway-owner-accountThe ID of the Amazon Web Services account that owns the Direct Connect gateway.--gateway-idThe ID of the virtual private gateway or transit gateway.--remove-allowed-prefixes-to-direct-connect-gatewayThe Amazon VPC prefixes to no longer advertise to the Direct Connect gateway.