lib/jets/aws_services.rb in jets-0.5.8 vs lib/jets/aws_services.rb in jets-0.6.0
- old
+ new
@@ -1,8 +1,9 @@
require "aws-sdk-s3"
require "aws-sdk-cloudformation"
require "aws-sdk-lambda"
+require "aws-sdk-sts"
module Jets::AwsServices
def s3
@s3 ||= Aws::S3::Client.new
end
@@ -15,9 +16,13 @@
@cfn ||= Aws::CloudFormation::Client.new
end
def lambda
@lambda ||= Aws::Lambda::Client.new
+ end
+
+ def sts
+ @sts ||= Aws::STS::Client.new
end
def stack_exists?(stack_name)
return false if ENV['TEST']