Amplify Configuration

AWS Amplify Backend Setup

This section covers cloning the Weather Platform project, understanding its architecture, and deploying the Amplify backend with the correct configuration.

Overview

The Weather Platform uses AWS Amplify Gen 2 with a custom backend configuration that includes:

  • Next.js 15 frontend with App Router
  • Custom CDK constructs for advanced AWS services
  • Lambda functions for IoT device management
  • AWS Glue for data processing
  • CloudFront for global content delivery

What you need to do

In this section, you will:

  • Clone the Weather Platform repository
  • Inspect the project structure and Amplify backend configuration
  • Set up the development environment with pnpm
  • Deploy the backend using AWS Amplify with the ws1-amplify profile
  • Understand how custom CDK constructs integrate with Amplify

This section uses the ws1-amplify AWS profile. Make sure your profile is configured before proceeding.

Prerequisites

Before starting, ensure you have:

  • AWS CLI configured with ws1-amplify profile
  • Node.js 18+ installed
  • pnpm package manager installed
  • Git for cloning the repository

Section Structure

Amplify backend runs CloudFormation under the hood, making it quick to deploy sandbox infrastructure and easily integrate with existing projects. The sandbox environment allows rapid development and testing before production deployment.

Development Cleanup: For sandbox environments, you can easily delete all resources with a single command: npx ampx sandbox delete --profile ws1-amplify. See Section 6: Resource Cleanup for complete cleanup procedures.