AK
Size: a a a
AK
IM
AK
AK
IM
IM
S
AK
AK
IM
S
AK
IM
AK
IM
t.Parallel()
expectedName := fmt.Sprintf("terratest-aws-s3-example")
expectedEnvironment := "AutomatedTesting"
awsRegion := aws.GetRandomStableRegion(t, nil, nil)
terraformOptions := &terraform.Options{
TerraformDir: "../example",
Vars: map[string]interface{}{
"tag_bucket_name": expectedName,
"tag_bucket_environment": expectedEnvironment,
},
EnvVars: map[string]string{
"AWS_DEFAULT_REGION": awsRegion,
},
}
defer terraform.Destroy(t, terraformOptions)
terraform.InitAndApply(t, terraformOptions)
instanceSshKey := terraform.Output(t, terraformOptions, "bucket_id")
assert.Equal(t, "terratest-aws-s3-example", instanceSshKey)
}
IM
IM
AK
OB
IM