Skip to content

Commit

Permalink
Ranomize resource names in test
Browse files Browse the repository at this point in the history
  • Loading branch information
Gregor Heine committed Apr 20, 2018
1 parent 5534d5c commit 7c50e03
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions aws/data_source_aws_batch_compute_environment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func testAccDataSourceAwsBatchComputeEnvironmentCheck(datasourceName, resourceNa
func testAccDataSourceAwsBatchComputeEnvironmentConfig(rName string) string {
return fmt.Sprintf(`
resource "aws_iam_role" "ecs_instance_role" {
name = "ecs_instance_role"
name = "ecs_%[1]s"
assume_role_policy = <<EOF
{
"Version": "2012-10-17",
Expand All @@ -86,12 +86,12 @@ resource "aws_iam_role_policy_attachment" "ecs_instance_role" {
}
resource "aws_iam_instance_profile" "ecs_instance_role" {
name = "ecs_instance_role"
name = "ecs_%[1]s"
role = "${aws_iam_role.ecs_instance_role.name}"
}
resource "aws_iam_role" "aws_batch_service_role" {
name = "aws_batch_service_role"
name = "batch_%[1]s"
assume_role_policy = <<EOF
{
"Version": "2012-10-17",
Expand All @@ -114,7 +114,7 @@ resource "aws_iam_role_policy_attachment" "aws_batch_service_role" {
}
resource "aws_security_group" "sample" {
name = "aws_batch_compute_environment_security_group"
name = "%[1]s"
}
resource "aws_vpc" "sample" {
Expand Down

0 comments on commit 7c50e03

Please sign in to comment.