cool-jordan-85318
08/21/2020, 2:55 PMconst prodFolder = new Folder(name,
{
displayName: name,
parent: "organizations/<org_id>",
}
)}
const googleCloudProject = new gcp.organizations.Project(name,
{
name: "some-name",
projectId: "some-id",
folderId: folder.id,
});
I receive this error
error: error creating project unicorn (Funke Infrastructure): googleapi: Error 409: Requested entity already exists, alreadyExists. If you received a 403 error, make sure you have the `roles/resourcemanager.projectCreator` permission
If I leave out the folderId
in the Project creation above, the stuff works. What do I miss?
I use an account having the requested permission, just in case, even if it does not look like this kind of error.green-school-95910
08/21/2020, 3:06 PMfolderId
the project will be created as a personal project, which you can always do (almost).
Do you have the Project Creator role across the whole organization?cool-jordan-85318
08/21/2020, 3:09 PMgreen-school-95910
08/21/2020, 3:11 PMfolder.name
: https://www.pulumi.com/docs/reference/pkg/gcp/organizations/folder/#outputscool-jordan-85318
08/21/2020, 3:24 PMgreen-school-95910
08/21/2020, 3:27 PMfolder_id
as in the api on the config file. The id
output might not be it exactly, since the provider can change to add some prefix, and the name
output is folder/{folder_id}
, which is what is used to create a nested folder, but not a project.name
, but that seems like a hackcool-jordan-85318
08/21/2020, 4:21 PMenough-baker-16813
09/01/2020, 1:57 PMcool-jordan-85318
09/02/2020, 4:54 AM