How to enable ApplianceModeSupport in a Transit GW Attachment

0

I am trying to enable the applicance mode with the following CLI command as per the online documentation:

C:\Users\Pablo>aws ec2 modify-transit-gateway-vpc-attachment --transit-gateway-attachment-id tgw-attach-0b6cb80499a53XXXX --options ApplianceModeSupport=enable

Parameter validation failed:
Unknown parameter in Options: "ApplianceModeSupport", must be one of: DnsSupport, Ipv6Support

I tried changing the DnsSupport option to make sure I'm in the right region and transit gateway attach and works:

C:\Users\Pablo>aws ec2 modify-transit-gateway-vpc-attachment --transit-gateway-attachment-id tgw-attach-0b6cb80499a5383e9 --options DnsSupport=disable

{
"TransitGatewayVpcAttachment": {
    "TransitGatewayAttachmentId": "tgw-attach-0b6cb80499a53XXXX",
    "TransitGatewayId": "tgw-01e5ee317cd46YYY3",
    "VpcId": "vpc-02e3c21f4d7dacZZZ",
    "VpcOwnerId": "95107885XXXX",
    "State": "modifying",
    "SubnetIds": [
        "subnet-0c24bb7aae4deeXXX",
        "subnet-064acc2ad5667aXXX",
        "subnet-03b6351363cd1cXXX"
    ],
    "CreationTime": "2022-09-27T18:09:59+00:00",
    "Options": {
        "DnsSupport": "disable",
        "Ipv6Support": "disable"
    }
}
}

It looks like this transit gateway attachment does not have this option. What am I doing wrong?

2 Answers
1
Accepted Answer

I was able to figure it out. The problem was my AWS Cli version 2.0.52. Updated to the last one 2.7.35 and voila, problem fixed.

answered 2 years ago
0

Hello,

Your command syntax seems to be correct; Can you try with region explicitly mentioned in the command:

Example:

aws ec2 modify-transit-gateway-vpc-attachment --transit-gateway-attachment-id tgw-attach-0b6cb80499a53XXXX --options ApplianceModeSupport=enable --region <YOUR REGION HERE>

Then run below command to verify:

aws ec2 describe-transit-gateways --filters --transit-gateway-ids tgw-attach-0b6cb80499a53XXXX

profile pictureAWS
EXPERT
answered 2 years ago
  • I got the same response including the region, in fact, I tried it before. As for the second command:

    C:\Users\Pablo>aws ec2 describe-transit-gateway-attachments --filters --transit-gateway-attachment-id tgw-attach-0b6cb80499a53XXXX
    {
    "TransitGatewayAttachments": [
        {
            "TransitGatewayAttachmentId": "tgw-attach-0b6cb80499a5383e9",
            "TransitGatewayId": "tgw-01e5ee317cd46c1a3",
            "TransitGatewayOwnerId": "95107885XXXX",
            "ResourceOwnerId": "95107885XXXX",
            "ResourceType": "vpc",
            "ResourceId": "vpc-02e3c21f4d7dac052",
            "State": "available",
            "Association": {
                "TransitGatewayRouteTableId": "tgw-rtb-0854831e6d2fcc9a3",
                "State": "associated"
            },
            "CreationTime": "2022-09-27T18:09:59+00:00",
            "Tags": [
                {
                    "Key": "Name",
                    "Value": "transit-gateway-inbound-qa"
                }
            ]
        }
    ]
    }
    

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions