Giter Club home page Giter Club logo

Comments (8)

 avatar commented on July 29, 2024

@munjeli

You can pass Abort-no to simple_deploy create.

simple_deploy create -e env -n stack_name -a Abort=no

Let us know if that solves your problem so we can close this.

Thanks.

from simple_deploy.

munjeli avatar munjeli commented on July 29, 2024

Alas, that didn't work. My stack is rolling back on failure.

from simple_deploy.

 avatar commented on July 29, 2024

My bad. I forgot that we add abort support to our cloud formation templates to support that. When I am back at a laptop I can post a snippet for you if you want to try in your template.

Sent from my iPhone

On Sep 24, 2014, at 5:42 PM, Ele Munjeli <[email protected]mailto:[email protected]> wrote:

Alas, that didn't work. My instance is rolling back on failure.

Reply to this email directly or view it on GitHubhttps://github.com//issues/241#issuecomment-56759756.

from simple_deploy.

bw-intuit avatar bw-intuit commented on July 29, 2024

@munjeli are you refering to the disable rollback option below:

DisableRollback
Set to true to disable rollback of the stack if stack creation failed. You can specify either DisableRollback or OnFailure, but not both.

Default: false

Type: Boolean

Required: No

http://docs.aws.amazon.com/AWSCloudFormation/latest/APIReference/API_CreateStack.html

from simple_deploy.

munjeli avatar munjeli commented on July 29, 2024

Please do. For some reason I can't get it to work in the template even though I read the docs. A snippet would be helpful.

from simple_deploy.

 avatar commented on July 29, 2024

@munjeli

Here we go. The hope is you can use this so we don't have to add an option to simple_deploy.

Snippet 1:

"Parameters": {
"Abort": {
      "Description": "Should the entire deployment be aborted if bootstrapping fails?",
      "Type": "String",
      "Default": "yes",
      "AllowedValues": [ "yes", "no" ],
      "ConstraintDescription": "yes or no"
    }
}

Snippet 2:

"Mappings": {
"BootstrapSettingMap": {
      "abort": { "yes": "$?", "no": "0" }
    }
}

Snippet 3:

"Resources": {
  "InstanceLaunchConfig": {
    "UserData": { "Fn::Base64": { "Fn::Join": ["", [
     "export CFN_SIGNAL_BIN=/path/to/cfn-signal", "\n",
     "runuser -c \"/path/to/myscript\" root", "\n",
      "export CONFIGURE_EXIT_STATUS=$? ",
            "CFN_ABORT_SIGNAL=", { "Fn::FindInMap": [ "BootstrapSettingMap", "abort", { "Ref": "Abort" } ] }, "\n",
       "if [ $CONFIGURE_EXIT_STATUS -ne 0 ] && [ $CFN_ABORT_SIGNAL -ne 0 ] ; ", "then", "\n",
         "$CFN_SIGNAL_BIN -e $CFN_ABORT_SIGNAL",
              " '", { "Ref": "InstancesWaitHandle" }, "'\n",
            "shutdown -h now", "\n",
        "else", "\n",
          "$CFN_SIGNAL_BIN -e $CFN_ABORT_SIGNAL",
              " '", { "Ref": "InstancesWaitHandle" }, "'\n",
          "fi", "\n",
       ]]}}

from simple_deploy.

munjeli avatar munjeli commented on July 29, 2024

Wow, no wonder I didn't figure it out :P

Thanks so much, I'll run these or mod my own. It shouldn't be you supporting the option, we should be able to access the option as a regular parameter in the template. It's a bit goofy to have it as a property of the stack but not being able to access it on the template.

Close the issue!

from simple_deploy.

munjeli avatar munjeli commented on July 29, 2024

@brettweavnet-intuit yes, the option on the cli where I can create a stack with --disable-rollback. Tragically, there isn't a way to insert "DisableRollback": True into the template.

from simple_deploy.

Related Issues (20)

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.