Code Monkey home page Code Monkey logo

Comments (4)

mbabineau avatar mbabineau commented on August 20, 2024

Ah, ok, you found a gotcha with this template. I just saw this on another of our CloudFormation projects and haven't had a chance to fix it yet.

Long story short, you need to pass a Subnet for every AZ the ASG is configured to use. Since the template hard-codes the ASG to use all AZs in the region, stack creation will fail if you don't pass a subnet for each AZ.

The quick fix is to pass a subnet for every AZ in us-east-1.

The real solution is to update the template to accept a comma-delimited list of AZs for the ASG to use. I'll try push a fix for this sometime tomorrow.

from cloudformation-zookeeper.

pdehlke avatar pdehlke commented on August 20, 2024

Ah, I see, thanks. I'm a massive n00b at CF templates; really interested in what the fix for this looks like.

Thanks again!

from cloudformation-zookeeper.

mbabineau avatar mbabineau commented on August 20, 2024

Fixed in f9b4453. Would you mind confirming?

from cloudformation-zookeeper.

pdehlke avatar pdehlke commented on August 20, 2024

Works here, at least in us-east-1. Thanks for the fix; I was nearly there myself :)

FWIW, I'd have done

-e \"AWS_REGION=curl http://169.254.169.254/latest/dynamic/instance-identity/document|grep region|awk -F" '{print $4}\"",

Just to eliminate the human error possibility, but that's just me :)

Thanks again for your work on this. Saved me all kinds of time!

from cloudformation-zookeeper.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.