Convert AWS Amplify app to Terraform infrastructure #1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Convert AWS Amplify app to Terraform infrastructure
Summary
This PR converts the existing AWS Amplify Gen 2 application (
profilesapp, ID:d34w1re7vwygyp) to equivalent Terraform configuration, enabling infrastructure-as-code management. The conversion includes:The Terraform configuration is modular, well-documented, and includes comprehensive variable definitions and outputs.
Review & Testing Checklist for Human
terraform planandterraform applyin a safe environment to validate all resources deploy correctlyiam.tfto ensure permissions are neither too broad (security risk) nor too narrow (functionality breaks)Recommended Test Plan
terraform.tfvars.exampletoterraform.tfvarsand provide your GitHub access tokenterraform planto review all planned changesterraform applyterraform outputDiagram
%%{ init : { "theme" : "default" }}%% graph TB subgraph "Terraform Configuration" main["terraform/main.tf<br/>Provider & Backend"]:::major-edit vars["terraform/variables.tf<br/>Input Variables"]:::major-edit outputs["terraform/outputs.tf<br/>Resource IDs"]:::major-edit cognito["terraform/cognito.tf<br/>User Pool & Identity Pool"]:::major-edit appsync["terraform/appsync.tf<br/>GraphQL API & Resolvers"]:::major-edit dynamodb["terraform/dynamodb.tf<br/>Todo Table"]:::major-edit amplify["terraform/amplify.tf<br/>Hosting & GitHub Integration"]:::major-edit iam["terraform/iam.tf<br/>Service Roles & Policies"]:::major-edit end subgraph "Original Amplify App" amp_app["Amplify App<br/>d34w1re7vwygyp"]:::context amp_auth["amplify/auth/resource.ts<br/>Email Auth Config"]:::context amp_data["amplify/data/resource.ts<br/>Todo Model & Schema"]:::context end subgraph "Documentation" readme["terraform/README.md<br/>Setup & Migration Guide"]:::major-edit example["terraform/terraform.tfvars.example<br/>Configuration Template"]:::major-edit end amp_auth --> cognito amp_data --> appsync amp_data --> dynamodb amp_app --> amplify cognito --> iam appsync --> iam amplify --> iam subgraph Legend L1["Major Edit"]:::major-edit L2["Minor Edit"]:::minor-edit L3["Context/No Edit"]:::context end classDef major-edit fill:#90EE90 classDef minor-edit fill:#87CEEB classDef context fill:#FFFFFFNotes
terraform.tfvarsfor Amplify to access the repository