Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ec2.py - AWS::EC2::TransitGateway object does not support attribute Description #1674

Closed
bwdbethke opened this issue May 8, 2020 · 1 comment

Comments

@bwdbethke
Copy link

I'm getting AttributeError: AWS::EC2::TransitGateway object does not support attribute Description

I noticed in ec2.py that Description isn't in the class's list of props

class TransitGateway(AWSObject):
    resource_type = "AWS::EC2::TransitGateway"
    props = {
        'AmazonSideAsn': (integer, False),
        'AutoAcceptSharedAttachments': (basestring, False),
        'DefaultRouteTableAssociation': (basestring, False),
        'DefaultRouteTablePropagation': (basestring, False),
        'DnsSupport': (basestring, False),
        'Tags': ((Tags, list), False),
        'VpnEcmpSupport': (basestring, False),
    }

but it is mentioned in CloudFormation docs at https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-transitgateway.html

{
  "Type" : "AWS::EC2::TransitGateway",
  "Properties" : {
      "AmazonSideAsn" : Integer,
      "AutoAcceptSharedAttachments" : String,
      "DefaultRouteTableAssociation" : String,
      "DefaultRouteTablePropagation" : String,
      "Description" : String,
      "DnsSupport" : String,
      "Tags" : [ Tag, ... ],
      "VpnEcmpSupport" : String
    }
}

other classes in ec2.py like TrafficMirrorTarget right above it include 'Description': (basestring, False), so maybe that should be added to TransitGateway

@markpeek
Copy link
Member

markpeek commented May 8, 2020

Thanks...pushed this change to master.

@markpeek markpeek closed this as completed May 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants