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

E3008 Property "VpcId" can Fn::GetAtt when creating AWS::EC2::TransitGatewayAttachment #1287

Closed
rgd11 opened this issue Jan 6, 2020 · 1 comment

Comments

@rgd11
Copy link

rgd11 commented Jan 6, 2020

cfn-lint version: (cfn-lint --version)
0.26.2

Description of issue.

  • Trying to create a AWS::EC2::TransitGatewayAttachment in us-gov-west-1
  • Assigning an SSM Parameter value to VpcId
  rVpc:
    Type: AWS::EC2::VPC
    Properties:
      ...
  rSsmParameterVpcId:
    Type: AWS::SSM::Parameter
    Properties:
      ...
      Value: !Ref rVpc
  rTransitGatewayAttachment:
    Type: AWS::EC2::TransitGatewayAttachment
    Properties:
      ...
      VpcId: !GetAtt rSsmParameterProdVdmsVpcId.Value
  • Results in

E3008 Property "VpcId" can Fn::GetAtt to a resource of types [AWS::EC2::SecurityGroup, AWS::EC2::Subnet] at Resources/.../Properties/VpcId/Fn::GetAtt

Please provide as much information as possible:

  • Template linting issues:
    • Please provide a CloudFormation sample that generated the issue.
    • If present, please add links to the (official) documentation for clarification.
    • Validate if the issue still exists with the latest version of cfn-lint and/or the latest Spec files
  • Feature request:
    • Please provide argumentation about the missing feature. Context is key!

Cfn-lint uses the CloudFormation Resource Specifications as the base to do validation. These files are included as part of the application version. Please update to the latest version of cfn-lint or update the spec files manually (cfn-lint -u)

kddejong added a commit that referenced this issue Jan 8, 2020
#1287

Co-authored-by: Kevin DeJong <kddejong@amazon.com>
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

3 participants