Templates
Strapi Serverless
Deploy a New Strapi App
7min
strapi https //strapi io/ is an open source headless cms built with nodejs using strapi you can easily design and publish the content consumed by your apps via api strapi provides a great admin ui portal where you can design your data models, create and manage content the benefits of using microtica for your strapi projects are the simplicity of setup and low maintenance while having the infrastructure on your own aws account we are following the gitops and declarative infrastructure approach for stable, more reliable, and predictable deployments deploy strapi on aws now serverless strapi on aws with this approach, strapi can coexist with your existing aws infrastructure and you always have the flexibility to extend this setup with additional cloud resources microtica uses strapi v4 as a default version for the strapi serverless template infrastructure ownership the strapi infrastructure will be provisioned on your own aws account you retain full control over your infrastructure and data while getting all the benefits of infrastructure automation microtica provides a built in template that provisions the necessary infrastructure to run strapi on your aws account in a scalable, secure, and reliable way with zero downtime deployment to deploy the infrastructure you need to select the strapi serverless template https //app microtica com/templates/new?template=https //raw\ githubusercontent com/microtica/templates/master/strapi serverless/ microtica/template yaml follow the steps in the template to deploy the strapi app on your aws account 1 create git repository as a first step, you need to connect a git account (github, bitbucket, or gitlab) microtica defines a repository name by default for each template, but you can change it if you already have a git account connected to microtica, you can choose it from the list we will create a new repository on your account with the provided name, and every git push will be deployed automatically in microtica 2\ configure template the second step is to configure the environment variables for this template variables provide a way to customize a template to meet your requirements for example, here is where you configure the scaling parameters for your strapi app you can scale your app vertically and horizontally for vertical scaling, update the cpu and memory configuration in this section for horizontal scaling, update the number of desired replicas in the same section in this section you can also choose the database client sqlite is the default option you can update the configuration later as well 3\ configure environment after configuring the template, you will need to select an environment where the template will reside environments are a great way to separate your development and production applications if you need to create a new environment, you can enter the environment name and description and click the select button you can also choose an existing environment if you have created one previously next, you need to configure the target aws account where your strapi infrastructure will be provisioned here is a quick guide on how to connect your aws account 4\ deploy once your aws account is connected and configured in the environment, click on the deploy button to trigger the deployment it takes up to 10 mins to create a live strapi environment you can follow the pipeline logs inline, and monitor your deployment in real time once the template deployment finishes, you can find the access url in environment > infrastructure > strapi ( strapi is the appname we provided in the template configuration step), under resource outputs, the accessurl parameter copy paste it in the browser to see your strapi demo app