lib/datapimp/clients/amazon.rb in datapimp-1.2.9 vs lib/datapimp/clients/amazon.rb in datapimp-1.2.10
- old
+ new
@@ -52,9 +52,15 @@
aws_secret_access_key: aws_secret_access_key,
region: aws_region
})
end
+ # This needs ENV['AWS_ACCESS_KEY_ID'] and ENV['AWS_SECRET_ACCESS_KEY']
+ def cloud_formation
+ require 'aws-sdk'
+ @cloud_formation ||= Aws::CloudFormation::Client.new(region: aws_region)
+ end
+
def s3_bucket_website_url
if s3_bucket.is_a?(Fog::Storage::AWS::Directory)
website_url_for(s3_bucket)
end
end