Setting up Resources on Render
Render is pretty neat!
I’m still super early days but I have discovered the
files that is the equivalent to the Amazon CDK (Cloud Development
Kit). The Amazon CDK is pretty powerful from what I can glean.
I say that because I have watched several videos on how awesome it is, but my eyes always glaze over when I have to go on a six week training course just so I know how many services Amazon can offer me! Bitter? Maybe, confused? Absolutely.
I’m not going to get all ranty about AWS, all I’ll say is that it’s not the sort of thing you can go ‘quickly’ spin something up without worrying if you’re going to end up with a massive bill at the end of the month.
Preconceptions? Absolutely, and until there’s an AWS light I don’t think they will change for me. There are services that offer the AWS light option though, services like Vercel, Begin, Netlify functions and Render.
Render gives you the option to configure your whole stack in one file. So far I’ve only spun up a Strapi web service with accompanying PSQL databases for a staging and production environment.
1services:2 - type: web3 name: strapi-production4 env: node5 plan: starter6 buildCommand: yarn install && yarn build7 startCommand: yarn start8 healthCheckPath: /_health9 region: frankfurt10 envVars:11 - key: NODE_VERSION12 value: 12.18.413 - key: NODE_ENV14 value: production15 - key: CLOUDINARY_NAME16 sync: false17 - key: CLOUDINARY_KEY18 sync: false19 - key: CLOUDINARY_SECRET20 sync: false21 - key: DATABASE_URL22 fromDatabase:23 name: database-production24 property: connectionString25 - key: JWT_SECRET26 generateValue: true27 - key: ADMIN_JWT_SECRET28 generateValue: true29 - type: web30 name: strapi-staging31 env: node32 plan: starter33 buildCommand: yarn install && yarn build34 startCommand: yarn start35 healthCheckPath: /_health36 region: frankfurt37 envVars:38 - key: NODE_VERSION39 value: 12.18.440 - key: NODE_ENV41 value: production42 - key: CLOUDINARY_NAME43 sync: false44 - key: CLOUDINARY_KEY45 sync: false46 - key: CLOUDINARY_SECRET47 sync: false48 - key: DATABASE_URL49 fromDatabase:50 name: database-staging51 property: connectionString52 - key: JWT_SECRET53 generateValue: true54 - key: ADMIN_JWT_SECRET55 generateValue: true5657databases:58 - name: database-production59 plan: starter60 region: frankfurt61 - name: database-staging62 plan: starter63 region: frankfurt
Back to Top