Giter Club home page Giter Club logo

Comments (4)

copernicus avatar copernicus commented on May 27, 2024

Trying to add this myself to my local copy of the SDK. I changed the ec2/client.rb to new API version, and added the CopySnapshot operation to a new EC2-2012-12-01.yml. When I try to use the EC2.client.copy_snapshot, I am getting back an error like this:

can't convert Symbol into String - (TypeError)
/Library/Ruby/Gems/1.8/gems/aws-sdk-1.7.1/lib/aws/core/client.rb:479:in delete' /Library/Ruby/Gems/1.8/gems/aws-sdk-1.7.1/lib/aws/core/client.rb:479:inbuild_request'
/Library/Ruby/Gems/1.8/gems/aws-sdk-1.7.1/lib/aws/core/client.rb:434:in send' /Library/Ruby/Gems/1.8/gems/aws-sdk-1.7.1/lib/aws/core/client.rb:434:inclient_request'
/Library/Ruby/Gems/1.8/gems/aws-sdk-1.7.1/lib/aws/core/response.rb:180:in call' /Library/Ruby/Gems/1.8/gems/aws-sdk-1.7.1/lib/aws/core/response.rb:180:inbuild_request'
/Library/Ruby/Gems/1.8/gems/aws-sdk-1.7.1/lib/aws/core/response.rb:108:in initialize' /Library/Ruby/Gems/1.8/gems/aws-sdk-1.7.1/lib/aws/core/client.rb:183:innew'
/Library/Ruby/Gems/1.8/gems/aws-sdk-1.7.1/lib/aws/core/client.rb:183:in new_response' /Library/Ruby/Gems/1.8/gems/aws-sdk-1.7.1/lib/aws/core/client.rb:433:inclient_request'
/Library/Ruby/Gems/1.8/gems/aws-sdk-1.7.1/lib/aws/core/client.rb:334:in log_client_request' /Library/Ruby/Gems/1.8/gems/aws-sdk-1.7.1/lib/aws/core/client.rb:420:inclient_request'
/Library/Ruby/Gems/1.8/gems/aws-sdk-1.7.1/lib/aws/core/client.rb:316:in return_or_raise' /Library/Ruby/Gems/1.8/gems/aws-sdk-1.7.1/lib/aws/core/client.rb:419:inclient_request'

What am I doing wrong?

thanks for your help

from aws-sdk-ruby.

copernicus avatar copernicus commented on May 27, 2024

Found the issue. It was an error with how I was passing the options.

from aws-sdk-ruby.

trevorrowe avatar trevorrowe commented on May 27, 2024

I pushed a commit earlier today that added support for CopySnapshot to the EC2::Client class (10ace10). I have not added any higher level methods to AWS::EC2::Snapshot at this time.

from aws-sdk-ruby.

kchowhan avatar kchowhan commented on May 27, 2024

when i use copy_snapshot is it copying them to the same region. I created a client for destination region and invoked copy_snapshot. am i missing anything? does copy_snapshot method work across regions?

from aws-sdk-ruby.

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.