Hi for some reason pulumi is trying to delete my t...
# general
b
Hi for some reason pulumi is trying to delete my tools-ou even though during the up, it shouldn't be modified.
1
I'm also receiving two errors, but I believe they are for the same OU:
Copy code
error:   sdk-v2/provider2.go:572: sdk.helper_schema: deleting Organizations Organizational Unit (ou-yr18-3itgaf1h): operation error Organizations: DeleteOrganizationalUnit, https response error StatusCode: 400, RequestID: 2282478a-ac43-4f02-9697-22ad9a2dbf36, OrganizationalUnitNotEmptyException: To delete an organizational unit you must first remove all of its children.: provider=aws@7.7.0
    error: deleting urn:pulumi:dev::infra::aws:organizations/organizationalUnit:OrganizationalUnit::tools-ou: 1 error occurred:
    	* deleting Organizations Organizational Unit (ou-yr18-3itgaf1h): operation error Organizations: DeleteOrganizationalUnit, https response error StatusCode: 400, RequestID: 2282478a-ac43-4f02-9697-22ad9a2dbf36, OrganizationalUnitNotEmptyException: To delete an organizational unit you must first remove all of its children.
is there any way to manually remove it from the state? happy to share a snippet of my state file. I see it defined twice, but in my code it's only defined once (hence the deletion I suppose). I think what happened was i added the AWS organization as a parent in my new Pulumi code, so Pulumi is trying to delete the OU
l
pulumi state delete
is the command I think?
👀 1
b
that worked, thank you legend pulumi community should set up something like heytaco for community members like you