This is a step-by-step guide on how to deploy Strapi on your AWS account using Microtica.
Microtica is a developer self-service platform that helps developers and ops teams with cloud infrastructure setup and app deployment in minutes.
Using Microtica for your Strapi projects gives you the simplicity of setup and low maintenance while having the infrastructure on your own AWS account. Strapi can coexist with your existing AWS infrastructure and you can always extend this setup with additional cloud resources.
Microtica’s default version of the Strapi component is v4. Here you can learn more about what will be provisioned on AWS by deploying the Strapi Serverless template.
Click Deploy with Microtica below and follow the template steps to deploy your Strapi application on your AWS account.
Deploy Strapi Infrastructure
1. Create a Microtica Account
Go to Microtica App to create an account if you don’t have one already.
2. Select the Strapi Serverless Template
From the list of templates, choose the Strapi Serverless Template. Follow the steps to deploy the Strapi app on your AWS account.
3. Create/Import Git Repository
Connect a preferred Git account (GitHub, Bitbucket, GitLab, CodeCommit). You can create a new Strapi app, or import an existing one from your Git repository. Every Git push will be deployed automatically in Microtica.
4. Customize your Strapi setup
Configure an application name and the environment variables for this template. Variables provide a way to customize a template to meet your requirements.
Here you can choose a database client: SQLite, Postgres, or MySQL. You can update the environment variables later as well (for example you can scale the application).
5. Select the deployment environment
After configuring the template, you need to select an environment where the template will reside. Environments are a great way to separate your development and production applications.
Here you can connect your AWS account with just a click. Once the AWS account is connected and configured in the environment, click Save to see a deployment summary.
6. Deploy the Strapi Serverless template on AWS
Clicking on the Deploy button will trigger a deployment. It takes up to 10 minutes to create a live Strapi environment.
You can follow the pipeline logs inline, and monitor your deployment in real-time.
7. Access the Strapi application
Once the template deployment finishes, you can find the access URL in Environment > Resources > [Strapi app name], under Resource outputs, the AccessUrl parameter. Copy-paste it into the browser to see your Strapi app.
Configure a Custom Domain and SSL
By default, Strapi will be available on an auto-generated domain via http protocol.
To configure a custom domain follow the documentation linked.
A Strapi project can be scaled vertically and horizontally.
To update the configurations, navigate to your [Strapi app name], in the Resource Settings tab, under General, you will find all the resource properties you can configure.
For vertical scaling, update the CPU and Memory configuration, and for horizontal scaling, update the number of desired replicas.
Click on Save to only save the configuration, or Save and Deploy to immediately reflect your changes in your running environment by deploying a new version of the resource.
For more information, please refer to Mirotica’s documentation.