Class: Ufo::S3::AwsSetup
- Inherits:
-
Object
- Object
- Ufo::S3::AwsSetup
- Includes:
- AwsServices, Utils::Logging
- Defined in:
- lib/ufo/s3/aws_setup.rb
Instance Method Summary collapse
Methods included from Utils::Logging
Methods included from AwsServices
#acm, #applicationautoscaling, #aws_options, #cfn, #cloudwatchlogs, #ec2, #ecr, #ecs, #elb, #s3, #ssm_client, #waf_client
Methods included from AwsServices::Concerns
#find_stack, #find_stack_resources, #stack_resources, #status, #task_definition_arns
Instance Method Details
#check! ⇒ Object
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/ufo/s3/aws_setup.rb', line 6 def check! s3.config.region rescue Aws::Errors::MissingRegionError => e logger.info "ERROR: #{e.class}: #{e.}".color(:red) logger.info <<~EOL Unable to detect the AWS_REGION to make AWS API calls. This is might be because the AWS access has not been set up yet. Please either your ~/.aws files. EOL exit 1 end |