This message was deleted.
# python
s
This message was deleted.
l
Looks like there may be a bug in our docs. Does this work if you remove the
/
in the name? perhaps try `"mainWorkspaces_directoryDirectory" instead?
I've filed an issue to track getting this fixed, thanks for reporting! https://github.com/pulumi/pulumi/issues/5123
p
The error occurs with
directoryservice.Directory
rather than the
workspaces.Directory
so it's something to do with
mainDirectory
and
main-dir
@lemon-agent-27707 Not entirely sure it's related to the
/
As it still happens with this snippet
l
This is working for me:
Copy code
main_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,
                                                })
Must be an issue with the validation. I will update the issue.
transfered the issue to pulumi-aws and updated it with my observations. Feel free to drop notes in there: https://github.com/pulumi/pulumi-aws/issues/1061
👍 1