great-sunset-355
10/19/2024, 4:24 PMThis role is created by the Quick Setup or if you launch a WorkSpace using the AWS Management Console, and it grants Amazon WorkSpaces permission to access specific AWS resources on your behalf.
little-cartoon-10569
10/20/2024, 8:04 PMpulumi.Command
, maybe inside an apply
that waits for the workspace to be created. But that would be quite fragile. I recommend having a non-Pulumi script that runs afterwards, that is not dependent on the Pulumi program (except perhaps via program outputs).
If credential management is tough, you could try Pulumi ESC? Or some similar tech that puts the creds in the environment, allowing your script to just rely on the right creds just being there.great-sunset-355
10/21/2024, 5:58 AMregistering WorkSpaces Directory (…): operation error WorkSpaces: RegisterWorkspaceDirectory, https response error StatusCode: 400, RequestID: …, WorkspacesDefaultRoleNotFoundException: The role workspaces_DefaultRole is missing. For more information, see <https://docs.aws.amazon.com/cli/latest/reference/workspaces/register-workspace-directory.html>.
little-cartoon-10569
10/21/2024, 6:20 AMgreat-sunset-355
10/21/2024, 8:22 AMcommand
with try create role or assume it is correct