Giter VIP home page Giter VIP logo

Comments (10)

aboutte avatar aboutte commented on June 21, 2024

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.

dmeadows avatar dmeadows commented on June 21, 2024

@aboutte Are you using version 1.0.4?

from cloudformation-ruby-dsl.

aboutte avatar aboutte commented on June 21, 2024

oops sorry...did not think about that. I am running 0.4.7.

from cloudformation-ruby-dsl.

jonaf avatar jonaf commented on June 21, 2024

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.

jonaf avatar jonaf commented on June 21, 2024

@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.

apohor avatar apohor commented on June 21, 2024

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.

jonaf avatar jonaf commented on June 21, 2024

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.

apohor avatar apohor commented on June 21, 2024

@jonaf it seems like I do my test incorrectly, please merge this change

from cloudformation-ruby-dsl.

jonaf avatar jonaf commented on June 21, 2024

Thanks for verifying, @apogoryelyi !

from cloudformation-ruby-dsl.

jonaf avatar jonaf commented on June 21, 2024

Closed by #68

from cloudformation-ruby-dsl.

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.