Question

How to setup S3 space in app.yaml file?

I am trying to setup a project that uses PostgreSQL and S3 that are both hosted on DigitalOcean with doctl. Following the tutorial, I created a app.yaml file that has a service that runs my app and a database that created a PG instance. However, I was not able to find out how to create a S3 space in the reference page. Is this simply not supported or am I missing something? Thanks for the help.


Submit an answer


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!

Sign In or Sign Up to Answer

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.

Bobby Iliev
Site Moderator
Site Moderator badge
February 8, 2025

Hey Matthew! 👋

Yes, as of the moment, the DigitalOcean App Platform doesn’t support provisioning Spaces directly in app.yaml, but you can still definitely use it, you would just need to have it created either manually or using doctl.

https://docs.digitalocean.com/products/spaces/how-to/create/

Then Generate Spaces Access Keys and add the details to your app.yaml:

envs:
  - key: SPACES_ACCESS_KEY
    value: "your-access-key"
  - key: SPACES_SECRET_KEY
    value: "your-secret-key"
  - key: SPACES_REGION
    value: "nyc3"
  - key: SPACES_BUCKET
    value: "my-space"

The best thing to do to get your voice heard regarding this would be to head over to the DigitalOcean Product Ideas board and post a new idea, including as much information as possible for what you’d like to see implemented.

https://ideas.digitalocean.com/

- Bobby.

Become a contributor for community

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.

New accounts only. By submitting your email you agree to our Privacy Policy

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.