menu
techminis

A naukri.com initiative

google-web-stories
Home

>

Cloud News

>

Automate D...
source image

Dev

1M

read

345

img
dot

Image Credit: Dev

Automate Deployment to AWS App Runner Using Terraform

  • In this post, I’ll be sharing the Terraform (and shell) scripts I wrote to automate the deployment of a Node.js (Express) API with environment variables, including a database deployed on AWS RDS with MySQL.
  • Use Infrastructure-as-code to automate provisioning of the AWS resources that allow for manual deployments to change the region of AWS deployments.
  • The ARN for your connection to the repository provider, and the creation of a VPC connector need to be included in your Terraform scripts.
  • After successful deployment, you'll see the output in the terminal with the following details - api_service_url, api_service_arn, and api_service_status.
  • To update the service configuration without rewriting the entire setup configurations, you need to use a similar script as the previous update script.
  • If you have any existing app runner connections and VPC connectors, ensure they are in the new region you are deploying to, cause these resources need to be located in the same region; terraform script throws an error otherwise.

Read Full Article

like

20 Likes

For uninterrupted reading, download the app