AwsEnvironment

AwsEnvironment pulls region and account information from installed environment variables

Note: Because of different package names for AWS1 vs AWS2 sdks, we can't use AWS's Region class.

Functions

Link copied to clipboard
fun awsAccountId(environmentVariableLoader: EnvironmentVariableLoader = EnvironmentVariableLoader.real, environmentVariable: String = "ACCOUNT_ID"): AwsAccountId
Link copied to clipboard
fun awsRegion(environmentVariableLoader: EnvironmentVariableLoader = EnvironmentVariableLoader.real, environmentVariables: List<String> = listOf("REGION", "AWS_REGION"), defaultAwsRegion: String = "us-west-2"): AwsRegion