Comments (8)
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.
Alas, that didn't work. My stack is rolling back on failure.
from simple_deploy.
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.
@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.
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.
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.
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.
@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)
- Review error handling
- clone command should be able to read outputs from other stacks HOT 1
- throws stack trace with certain cloudformation errors
- throws stack errors when trying to clone EIP stack
- By default, Simple Deploy SSHes to private IP of default VPC instances HOT 1
- Catch and display Excon errors HOT 1
- Clone command should not write to temp file
- Certain commands cause excon to throw Invalid Excon request keys: :host HOT 13
- Simple Deploy attributes option in create, update and clone should be --attribute
- "List" command provides old stacks that are non-existant
- Getting started page has bad link
- Catch, backoff and retry when receiving cloud formation rate exceeded error
- update fog to 1.19.0 HOT 1
- Stack Updates Wait Too Long
- Support nested stack HOT 3
- fog-core 1.22.0 dependency issues HOT 1
- Atributes mapping for ChefRepoUrl
- Catch expired token or bad token error and print friendlier message
- list command swallowing errors HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from simple_deploy.