0

我正在使用 AWS 开发工具包,但无法标记现有快照。它说即使您可以看到我的测试对象是 AWS::EC2::Snapshot,快照也不会退出。这是怎么回事 ?!?!

irb(main):017:0> test
=> <AWS::EC2::Snapshot id:snap-XXXXXXXX>
irb(main):018:0> test.tag('auto_delete')
AWS::EC2::Errors::InvalidSnapshot::NotFound: The snapshot 'snap-XXXXXXXX' does not exist.
    from /Library/Ruby/Gems/2.0.0/gems/aws-sdk-1.25.0/lib/aws/core/client.rb:366:in `return_or_raise'
    from /Library/Ruby/Gems/2.0.0/gems/aws-sdk-1.25.0/lib/aws/core/client.rb:467:in `client_request'
    from (eval):3:in `create_tags'
    from /Library/Ruby/Gems/2.0.0/gems/aws-sdk-1.25.0/lib/aws/ec2/tagged_item.rb:31:in `add_tag'
    from (irb):18
    from /usr/bin/irb:12:in `<main>'
irb(main):019:0> 
4

0 回答 0