@@ -717,6 +717,10 @@ func testAccWorkspacesDirectoryConfig(rName string) string {
717717 testAccAwsWorkspacesDirectoryConfig_Prerequisites (rName ), `
718718resource "aws_workspaces_directory" "main" {
719719 directory_id = aws_directory_service_directory.main.id
720+
721+ tags = {
722+ Name = "tf-testacc-workspaces-directory-%[1]s"
723+ }
720724}
721725
722726data "aws_iam_role" "workspaces-default" {
@@ -738,6 +742,10 @@ resource "aws_workspaces_directory" "main" {
738742 restart_workspace = false
739743 switch_running_mode = true
740744 }
745+
746+ tags = {
747+ Name = "tf-testacc-workspaces-directory-%[1]s"
748+ }
741749}
742750` )
743751}
@@ -800,6 +808,10 @@ resource "aws_workspaces_directory" "main" {
800808 enable_maintenance_mode = false
801809 user_enabled_as_local_administrator = false
802810 }
811+
812+ tags = {
813+ Name = "tf-testacc-workspaces-directory-%[1]s"
814+ }
803815}
804816` , rName ))
805817}
@@ -816,6 +828,10 @@ resource "aws_workspaces_directory" "main" {
816828 enable_maintenance_mode = false
817829 user_enabled_as_local_administrator = false
818830 }
831+
832+ tags = {
833+ Name = "tf-testacc-workspaces-directory-%[1]s"
834+ }
819835}
820836` , rName ))
821837}
@@ -839,6 +855,10 @@ resource "aws_workspaces_directory" "main" {
839855 enable_maintenance_mode = false
840856 user_enabled_as_local_administrator = false
841857 }
858+
859+ tags = {
860+ Name = "tf-testacc-workspaces-directory-%[1]s"
861+ }
842862}
843863` , rName ))
844864}
@@ -857,6 +877,10 @@ resource "aws_workspaces_directory" "test" {
857877 ip_group_ids = [
858878 aws_workspaces_ip_group.test_alpha.id
859879 ]
880+
881+ tags = {
882+ Name = "tf-testacc-workspaces-directory-%[1]s"
883+ }
860884}
861885` , rName ))
862886}
@@ -880,6 +904,10 @@ resource "aws_workspaces_directory" "test" {
880904 aws_workspaces_ip_group.test_beta.id,
881905 aws_workspaces_ip_group.test_gamma.id
882906 ]
907+
908+ tags = {
909+ Name = "tf-testacc-workspaces-directory-%[1]s"
910+ }
883911}
884912` , rName ))
885913}
0 commit comments