getAWSRegion function

String getAWSRegion()

Get the AWS region with fallback to default.

Implementation

String getAWSRegion() {
  return Platform.environment['AWS_REGION'] ??
      Platform.environment['AWS_DEFAULT_REGION'] ??
      'us-east-1';
}