What is the difference between the digitalocean_spaces_bucket and digitalocean_spaces_bucket_object providers in terraform?
Thanks!
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.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
digitalocean_spaces_bucket
is used to create a new Space (bucket in S3 terminology) and manage Space-wide settings like CORS policies.digitalocean_spaces_bucket_object
is for adding an individual file to the Space.They can be used together. For example:
digitalocean_spaces_bucket_object
can also be used with a Space created outside of Terraform by specifying its name and region rather than referencing adigitalocean_spaces_bucket