proud-queen-14294
08/06/2020, 6:18 PMdirectoryservice.Directory
If I copy and paste the python example here
I've made MINOR adjustments, but the issue still remains.
I get the following error:
Diagnostics:
aws:directoryservice:Directory (main):
error: InvalidParameterException: Invalid directory name. The directory name must be between 2 and 64 characters, and can only contain alphanumeric characters, periods (.). or minus signs (-). Also, the directory name must begin and end with an alphanumeric character. : RequestId: 362da74b-62dc-4116-8785-e65cbacb52c3
{
RespMetadata: {
StatusCode: 400,
RequestID: "362da74b-62dc-4116-8785-e65cbacb52c3"
},
Message_: "Invalid directory name. The directory name must be between 2 and 64 characters, and can only contain alphanumeric characters, periods (.). or minus signs (-). Also, the directory name must begin and end with an alphanumeric character. : RequestId: 362da74b-62dc-4116-8785-e65cbacb52c3",
RequestId: "362da74b-62dc-4116-8785-e65cbacb52c3"
}
pulumi:pulumi:Stack (training_workspaces-dev):
error: update failed
I've tried overwriting the name to avoid the generated hex code being added by using the name
parameter of Directory
, but it just gives the same error.
I find it odd that this is happening with example code from the docs.
Any ideas? Full code added as snippetlemon-agent-27707
08/06/2020, 7:12 PM/
in the name? perhaps try `"mainWorkspaces_directoryDirectory" instead?proud-queen-14294
08/06/2020, 7:50 PMdirectoryservice.Directory
rather than the workspaces.Directory
so it's something to do with mainDirectory
and main-dir
/
As it still happens with this snippetlemon-agent-27707
08/06/2020, 8:36 PMmain_directory = aws.directoryservice.Directory("mainDirectory",
password="#S1ncerely",
size="Small",
name='main.dir',
vpc_settings={
"subnet_ids": [
private_a.id,
private_b.id,
],
"vpc_id": main_vpc.id,
})