Amazon-CloudFormation [SOLVED]: How to validate or create CloudFormation stacks

Amazon-CloudFormation [SOLVED]: How to validate or create CloudFormation stacks

Home Forums Amazon Web Services Amazon CloudFormation Amazon-CloudFormation [SOLVED]: How to validate or create CloudFormation stacks

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #233148

    Cloudy Point
    Keymaster

    QuestionQuestion

    I added CloudFormation setting files vpc.yml and front.yml, export some values in vpc.yml and import them.
    I ran the following command, but it does not work.

    $ aws cloudformation validate-template --template-body file://front.yml
    An error occurred (ValidationError) when calling the ValidateTemplate operation: Template format error: Unresolved resource dependencies [VPCGatewayAttach] in the Resources block of the template
    

    What is a valid command for the stack importing values from others?

    #233149

    Cloudy Point
    Keymaster

    Accepted AnswerAnswer

    The error your are getting is because you have dependsOn attribute in one of the resources that specifies dependency on VPCGatewayAttach but VPCGatewayAttach does not exist in your cft.

    Source: https://stackoverflow.com/questions/47489321/how-to-validate-or-create-cloudformation-stacks
    Author: Asdfg
    Creative Commons License
    This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.