Sha256: a368b28841fa2737b66d9902a5cdd05c20c02bc0b995c75ebd0a154bdceebb34
Contents?: true
Size: 889 Bytes
Versions: 2
Compression:
Stored size: 889 Bytes
Contents
require_relative 'auth' require_relative 'helper' require_relative 'zenv' module Smash module CloudPowers module AwsResources include Smash::CloudPowers::Auth include Smash::CloudPowers::Helper include Smash::CloudPowers::Zenv def region zfind('Aws Region') end def ec2 @ec2 ||= Aws::EC2::Client.new( region: region, credentials: Auth.creds ) end def image(name) ec2.describe_images( filters: [{ name: 'tag:aminame', values: [name.to_s] }] ).images.first end def kinesis @kinesis ||= Aws::Kinesis::Client.new( region: region, credentials: Auth.creds, ) end def s3 @s3 ||= Aws::S3::Client.new( region: region, credentials: Auth.creds ) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cloud_powers-0.2.1 | lib/cloud_powers/aws_resources.rb |
cloud_powers-0.2 | lib/cloud_powers/aws_resources.rb |