Skip to content

Commit

Permalink
Add terraform acctest tags
Browse files Browse the repository at this point in the history
  • Loading branch information
Tensho committed Dec 7, 2020
1 parent 35cbae7 commit 20304a1
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions aws/resource_aws_workspaces_directory_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -717,6 +717,10 @@ func testAccWorkspacesDirectoryConfig(rName string) string {
testAccAwsWorkspacesDirectoryConfig_Prerequisites(rName), `
resource "aws_workspaces_directory" "main" {
directory_id = aws_directory_service_directory.main.id
tags = {
Name = "tf-testacc-workspaces-directory-%[1]s"
}
}
data "aws_iam_role" "workspaces-default" {
Expand All @@ -738,6 +742,10 @@ resource "aws_workspaces_directory" "main" {
restart_workspace = false
switch_running_mode = true
}
tags = {
Name = "tf-testacc-workspaces-directory-%[1]s"
}
}
`)
}
Expand Down Expand Up @@ -800,6 +808,10 @@ resource "aws_workspaces_directory" "main" {
enable_maintenance_mode = false
user_enabled_as_local_administrator = false
}
tags = {
Name = "tf-testacc-workspaces-directory-%[1]s"
}
}
`, rName))
}
Expand All @@ -816,6 +828,10 @@ resource "aws_workspaces_directory" "main" {
enable_maintenance_mode = false
user_enabled_as_local_administrator = false
}
tags = {
Name = "tf-testacc-workspaces-directory-%[1]s"
}
}
`, rName))
}
Expand All @@ -839,6 +855,10 @@ resource "aws_workspaces_directory" "main" {
enable_maintenance_mode = false
user_enabled_as_local_administrator = false
}
tags = {
Name = "tf-testacc-workspaces-directory-%[1]s"
}
}
`, rName))
}
Expand All @@ -857,6 +877,10 @@ resource "aws_workspaces_directory" "test" {
ip_group_ids = [
aws_workspaces_ip_group.test_alpha.id
]
tags = {
Name = "tf-testacc-workspaces-directory-%[1]s"
}
}
`, rName))
}
Expand All @@ -880,6 +904,10 @@ resource "aws_workspaces_directory" "test" {
aws_workspaces_ip_group.test_beta.id,
aws_workspaces_ip_group.test_gamma.id
]
tags = {
Name = "tf-testacc-workspaces-directory-%[1]s"
}
}
`, rName))
}

0 comments on commit 20304a1

Please sign in to comment.