diff --git a/main.tf b/main.tf index ad61941..a8bb71d 100644 --- a/main.tf +++ b/main.tf @@ -16,7 +16,7 @@ data "aws_caller_identity" "current" { data "aws_partition" "current" { } -# testing to see if Region variable is needed +# The region is pulled from the current AWS session you are in data "aws_region" "current" { } diff --git a/test/terraform_aws_logs_combined_test.go b/test/terraform_aws_logs_combined_test.go index 416fa05..9e4a353 100644 --- a/test/terraform_aws_logs_combined_test.go +++ b/test/terraform_aws_logs_combined_test.go @@ -20,7 +20,7 @@ func TestTerraformAwsLogsCombined(t *testing.T) { testName := fmt.Sprintf("terratest-aws-logs-%s", strings.ToLower(random.UniqueId())) // AWS only supports one configuration recorder per region. // Each test using aws-config will need to specify a different region. - awsRegion := "ca-central-1" + awsRegion := "us-east-2" vpcAzs := aws.GetAvailabilityZones(t, awsRegion)[:3] testRedshift := !testing.Short() diff --git a/test/terraform_aws_logs_config_test.go b/test/terraform_aws_logs_config_test.go index 8fef6d6..bc7aa17 100644 --- a/test/terraform_aws_logs_config_test.go +++ b/test/terraform_aws_logs_config_test.go @@ -19,7 +19,7 @@ func TestTerraformAwsLogsConfig(t *testing.T) { tempTestFolder := test_structure.CopyTerraformFolderToTemp(t, "../", "examples/config") // AWS only supports one configuration recorder per region. // Each test using aws-config will need to specify a different region. - awsRegion := "us-east-1" + awsRegion := "us-east-2" terraformOptions := &terraform.Options{ TerraformDir: tempTestFolder, @@ -48,7 +48,7 @@ func TestTerraformAwsLogsConfigRootPrefix(t *testing.T) { tempTestFolder := test_structure.CopyTerraformFolderToTemp(t, "../", "examples/config") // AWS only supports one configuration recorder per region. // Each test using aws-config will need to specify a different region. - awsRegion := "us-east-2" + awsRegion := "us-east-1" terraformOptions := &terraform.Options{ TerraformDir: tempTestFolder,