Sha256: f112e18e0026bcd4bcbdacfe460f0716cd2c8f605258084bfcea1a78b72310d9
Contents?: true
Size: 715 Bytes
Versions: 5
Compression:
Stored size: 715 Bytes
Contents
$: << File.expand_path("../../lib", __FILE__) require 'simple_aws/iam' ## # Expects your Amazon keys to be in the environment, something like # # export AWS_KEY="KEY" # export AWS_SECRET="SECRET" ## $iam = SimpleAWS::IAM.new ENV["AWS_KEY"], ENV["AWS_SECRET"] puts "", "You are", "" user = $iam.get_user.user puts "Id: #{user.user_id}" puts "Name: #{user.user_name}" puts "Arn: #{user.arn}" puts "Create Date: #{Time.parse user.create_date}" puts "", "Your SSL Certificates", "" $iam.list_server_certificates.server_certificate_metadata_list.each do |cert| puts "Id: #{cert.server_certificate_id}" puts "Path: #{cert.path}" puts "Arn: #{cert.arn}" puts "UploadDate: #{cert.upload_date}" puts "" end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
simple_aws-1.2.3 | samples/iam.rb |
simple_aws-1.2.2 | samples/iam.rb |
simple_aws-1.2.1 | samples/iam.rb |
simple_aws-1.2.0 | samples/iam.rb |
simple_aws-1.1.0 | samples/iam.rb |