Skip to content

AWS CLI v2 issue #1

@seaphu

Description

@seaphu

There seems to be a syntax issue in https://github.com/cfn-modules/vpc-subnet/edit/master/module.yml. line 52 when trying to deploy it. There are several nested functions here using the short syntax that I think is tripping it up.

I'm using aws cli 2.0.1 on mac os 10.14.6

This line turns into invalid yaml once it goes through aws cloudformation package:

CidrBlock: !Select [!Ref SubnetIndex, !Cidr [{'Fn::ImportValue': !Sub '${VpcPlainModule}-CidrBlock'}, !Ref SubnetCount, 12]]

I tested with a longer syntax but without changing anything and it is working.

CidrBlock: !Select
        - Ref: SubnetIndex
        - Fn::Cidr: 
          - Fn::ImportValue: 
              !Sub '${VpcPlainModule}-CidrBlock' 
          - Ref: SubnetCount
          - 12

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions