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

Faill to parse the doc when Ref is a AWS::SSM::Parameter::Value<List<String>> #395

Open
binchenX opened this issue Jul 18, 2021 · 0 comments

Comments

@binchenX
Copy link

With following template file, the parse will fail with

 ERROR: json: cannot unmarshal string into Go struct field Properties.Properties.SubnetIds of type []string
2021/07/18 16:37:43 There was an error processing the template: json: cannot unmarshal string into Go struct field Template.Resources of type []string
---
 AWSTemplateFormatVersion: '2010-09-09'
 Description: VPC Endpoints for Linux Custom ( STS )

 Parameters:
   VPCId:
     Description: VPC id of the account
     Type: AWS::EC2::VPC::Id

   VPCEndPointSubnets:
     Type: AWS::SSM::Parameter::Value<List<String>>
     Description: List of subnets for STS Private Endpoint
     Default: /CNS/resources/subnets/ic/all

 Resources:
   ecrApiVpcEndpoint:
     Type: "AWS::EC2::VPCEndpoint"
     Properties:
       ServiceName: "com.amazonaws.ap-southeast-2.ecr.api"
       VpcEndpointType: "Interface"
       VpcId: !Ref VPCId
       SubnetIds: !Ref VPCEndPointSubnets
       PrivateDnsEnabled: true
       SecurityGroupIds:
         - !Ref SGVPCEndPoint
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

1 participant