Module: SimpleDeploy::AWS::Helpers
- Included in:
- CloudFormation, InstanceReader, SimpleDB
- Defined in:
- lib/simple_deploy/aws/helpers.rb
Instance Method Summary collapse
Instance Method Details
#connection_args ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/simple_deploy/aws/helpers.rb', line 5 def connection_args { aws_access_key_id: @config.access_key, aws_secret_access_key: @config.secret_key, region: @config.region }.tap do |a| if @config.temporary_credentials? a.merge!({ aws_session_token: @config.security_token }) end end end |