あつかうAWSアカウントが大量にある方は、やっぱり望月さん作のcredential_traverserを使うと、さらに幸せかもしれません。 AWSのAPI操作を複数アカウントに対して行うGemをリリースしました | Developers.IO cm-ec2-describe-events.rb #!/usr/bin/env ruby require 'aws-sdk' require 'optparse' begin require 'aws/profile_parser' rescue LoadError; end config = {} ARGV.options do |opt| begin aws_opts = {} opt.on('-h', '--help') { puts opt.help; exit 0 } opt.on('-d', '--debug') { aws_opts[
