Sha256: 115051339951e1967b586f1db41e29d2a0480153d25610c3a1756380cbf8fae3
Contents?: true
Size: 992 Bytes
Versions: 1
Compression:
Stored size: 992 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 byebug @s3 ||= Aws::S3::Client.new( region: region, credentials: Auth.creds ) end def sqs @sqs ||= Aws::SQS::Client.new(credentials: Auth.creds) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cloud_powers-0.2.2 | lib/cloud_powers/aws_resources.rb |