Module: AwsRotate::AwsServices
- Included in:
- Base
- Defined in:
- lib/aws_rotate/aws_services.rb
Constant Summary collapse
- @@iam =
Memoization takes into account different AWS_PROFILE
{}
- @@sts =
{}
Instance Method Summary collapse
Instance Method Details
#iam ⇒ Object
8 9 10 |
# File 'lib/aws_rotate/aws_services.rb', line 8 def iam @@iam[ENV['AWS_PROFILE']] ||= Aws::IAM::Client.new end |
#sts ⇒ Object
13 14 15 |
# File 'lib/aws_rotate/aws_services.rb', line 13 def sts @@sts[ENV['AWS_PROFILE']] ||= Aws::STS::Client.new end |