Comments (10)
We disable rollback with --disable-rollback
. For example:
./cloudformation.rb cfn-create-stack stack-name --region us-west-2 --capabilities CAPABILITY_IAM --parameters "key=value;key2=value" --disable-rollback --timeout 20
from cloudformation-ruby-dsl.
@aboutte Are you using version 1.0.4?
from cloudformation-ruby-dsl.
oops sorry...did not think about that. I am running 0.4.7.
from cloudformation-ruby-dsl.
Good catch, @dmeadows ! It looks like we just need to do some opt parsing and pass anything we don't specifically account for into the options hash we provide to the Cloudformation client in cfntemplate.rb. This should be relatively easy (parse the extra options, convert them to lowercase and hyphens to underscores, and merge them into the options hash) to do, but it is a bug in 1.0.4.
from cloudformation-ruby-dsl.
@dmeadows Can you do me a favor and check out b180666 and let me know if it works for you? Note that some options might have slightly altered names (e.g., --timeout
is now --timeout-in-minutes
, as Amazon's Ruby SDK has named it as such: http://docs.aws.amazon.com/sdkforruby/api/Aws/CloudFormation/Client.html#create_stack-instance_method).
from cloudformation-ruby-dsl.
Hey @jonaf, I've got following error with this codebase using --disable-rollback parameter:
"/Library/Ruby/Gems/2.0.0/gems/aws-sdk-core-2.1.23/lib/seahorse/model/shapes.rb:204:in `member': no such member :_c (ArgumentError)\n\tfrom /Library/Ruby/Gems/2.0.0/gems/aws-sdk-core-2.1.23/lib/aws-sdk-core/query/param_builder.rb:25:in `block in structure'
from /Library/Ruby/Gems/2.0.0/gems/aws-sdk-core-2.1.23/lib/aws-sdk-core/query/param_builder.rb:23:in `each_pair'
from /Library/Ruby/Gems/2.0.0/gems/aws-sdk-core-2.1.23/lib/aws-sdk-core/query/param_builder.rb:23:in `structure'
from /Library/Ruby/Gems/2.0.0/gems/aws-sdk-core-2.1.23/lib/aws-sdk-core/query/param_builder.rb:16:in `apply'
from /Library/Ruby/Gems/2.0.0/gems/aws-sdk-core-2.1.23/lib/aws-sdk-core/query/handler.rb:48:in `apply_params'
from /Library/Ruby/Gems/2.0.0/gems/aws-sdk-core-2.1.23/lib/aws-sdk-core/query/handler.rb:42:in `build_request'\n\tfrom /Library/Ruby/Gems/2.0.0/gems/aws-sdk-core-2.1.23/lib/aws-sdk-core/query/handler.rb:26:in `call'
from /Library/Ruby/Gems/2.0.0/gems/aws-sdk-core-2.1.23/lib/aws-sdk-core/plugins/user_agent.rb:12:in `call'
from /Library/Ruby/Gems/2.0.0/gems/aws-sdk-core-2.1.23/lib/seahorse/client/plugins/endpoint.rb:34:in `call'
from /Library/Ruby/Gems/2.0.0/gems/aws-sdk-core-2.1.23/lib/seahorse/client/plugins/raise_response_errors.rb:14:in `call'
from /Library/Ruby/Gems/2.0.0/gems/aws-sdk-core-2.1.23/lib/aws-sdk-core/plugins/param_converter.rb:21:in `call'
from /Library/Ruby/Gems/2.0.0/gems/aws-sdk-core-2.1.23/lib/seahorse/client/plugins/response_target.rb:21:in `call'
from /Library/Ruby/Gems/2.0.0/gems/aws-sdk-core-2.1.23/lib/seahorse/client/request.rb:70:in `send_request'
from /Library/Ruby/Gems/2.0.0/gems/aws-sdk-core-2.1.23/lib/seahorse/client/base.rb:207:in `block (2 levels) in define_operation_methods'
from /Library/Ruby/Gems/2.0.0/gems/cloudformation-ruby-dsl-1.0.4/lib/cloudformation-ruby-dsl/cfntemplate.rb:280:in `cfn'
from /Library/Ruby/Gems/2.0.0/gems/cloudformation-ruby-dsl-1.0.4/lib/cloudformation-ruby-dsl/cfntemplate.rb:503:in `exec!'
from ./service.rb:284:in `<main>'"
from cloudformation-ruby-dsl.
hi @apogoryelyi. It looks like that error is coming from the Seahorse library in the AWS Ruby SDK. Did you run bundle install
?
from cloudformation-ruby-dsl.
@jonaf it seems like I do my test incorrectly, please merge this change
from cloudformation-ruby-dsl.
Thanks for verifying, @apogoryelyi !
from cloudformation-ruby-dsl.
Closed by #68
from cloudformation-ruby-dsl.
Related Issues (20)
- Use optparse or thor HOT 1
- Allow nested code in interpolate()
- Improve unit testbed
- Use an OptionParser to generate the usage output
- Regression: expanding default parameters no longer works HOT 18
- False `diff` output and incorrect exit code HOT 2
- Updating with interactive parameters causes error HOT 1
- Using resource from a module HOT 1
- Add support for Change Sets for `diff` operation
- Attributes with dots in the name generate an incorrect get_att() call
- aws_region() "pseudo" parameter is not a pseudo parameter HOT 1
- Update fails if stack contains immutable parameter with NoEcho=true
- Incorrect handling of nested intrinsic functions in join()
- Missing function for Fn::Cidr
- https://rubygems.org/gems/cloudformation-ruby-dsl was displaying the license as "N/A" HOT 1
- Add support for stack metadata HOT 2
- Assumed Roles are ignored HOT 3
- profile fix broke it
- Add Github pull request template
- Credentials regression error in 1.2.3 HOT 2
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 cloudformation-ruby-dsl.