Creates an AWS Amplify app and a branch with environment variables for a React application in production stage.

Terraform Template

resource "aws_amplify_app" "example" {
  name = "app"
}

resource "aws_amplify_branch" "master" {
  app_id = aws_amplify_app.example.id
  branch_name = "master"

  environment_variables = {
    REACT_APP_API_SERVER = "https://api.example.com"
  }
  framework = "React"
  stage = "PRODUCTION"
}