Class: App::AWS
- Inherits:
-
Object
- Object
- App::AWS
- Defined in:
- lib/aws/aws.rb
Constant Summary collapse
- VALID_REGIONS =
%w(ap-south-1 eu-west-3 eu-west-2 eu-west-1 ap-northeast-2 ap-northeast-1 sa-east-1 ca-central-1 ap-southeast-1 ap-southeast-2 eu-central-1 us-east-1 us-east-2 us-west-1 us-west-2)
Class Method Summary collapse
-
.get_profile_for_cli ⇒ Object
Returns either ‘ –profile [profile-name]’ or ”, depending on whether the machine we’re running on has credentials or is an EC2 (which uses IAM roles).
Class Method Details
.get_profile_for_cli ⇒ Object
Returns either ‘ –profile [profile-name]’ or ”, depending on whether the machine we’re running on has credentials or is an EC2 (which uses IAM roles).
9 10 11 12 |
# File 'lib/aws/aws.rb', line 9 def self.get_profile_for_cli profile_name = App::AWSProfile::get_profile_name profile_name.nil? ? '' : " --profile #{profile_name}" end |