You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
irb(main):001:0> require'aws-sdk'=>trueirb(main):002:0> ec2=Aws::EC2::Resource.new(region: 'us-west-2')=>#<Aws::EC2::Resource>irb(main):003:0> ec2.vpc_peering_connections()=>#<Aws::Resources::Collection type="Aws::EC2::VpcPeeringConnection" limit=nil params={}>irb(main):004:0> ec2.vpc_peering_connections.eachdo |vpcpeeringconnection|
irb(main):005:1* putsvpcpeeringconnectionirb(main):006:1> endNoMethodError: undefinedmethod`each' for #<Seahorse::Client::Response:0x007fe39164ba50> from /Users/cravo/.chefdk/gem/ruby/2.1.0/gems/aws-sdk-core-2.1.17/lib/seahorse/client/response.rb:87:in `method_missing' from /Users/cravo/.chefdk/gem/ruby/2.1.0/gems/aws-sdk-resources-2.1.17/lib/aws-sdk-resources/operations.rb:127:in `all_batches'from/Users/cravo/.chefdk/gem/ruby/2.1.0/gems/aws-sdk-resources-2.1.17/lib/aws-sdk-resources/collection.rb:18:in`each' from /Users/cravo/.chefdk/gem/ruby/2.1.0/gems/aws-sdk-resources-2.1.17/lib/aws-sdk-resources/collection.rb:18:in `each' from (irb):4 from /opt/chefdk/embedded/bin/irb:11:in `<main>'irb(main):007:0>
The text was updated successfully, but these errors were encountered:
Trying to iterate over peering connections, like documentation says at http://docs.aws.amazon.com/sdkforruby/api/Aws/EC2/Resource.html#vpc_peering_connections-instance_method
gives the following error:
The text was updated successfully, but these errors were encountered: