Hi,
I’m building a multi-tenant SaaS app, which has a separate Space (bucket) for each tenant. I have created a Project to house all of the resources relating to the SaaS application.
The Space is created using the AWS PHP SDK like so:
$client->createBucket(['Bucket' => $bucketName]);
The Space is created successfully and appears in the default Spaces area in the dashboard, after which I can move the Space into the SaaS application Project manually.
I would like to be able to specify the Project when creating the Space, in order to remove the manual last step.
Is this possible does anyone know please?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Hi there,
I’ve not tested this with the AWS PHP SDK, but you can do this with the DigitalOcean API as described here:
https://docs.digitalocean.com/reference/api/api-reference/#operation/assign_default_project_resources
So what you could do is, right after the Space creation, you can do a quick API call and move the resource to the correct project.
Hope that this helps.
Best,
Bobby