Skip to content

whatisusername/toon-tank-post-signup-service

Repository files navigation

Toon Tank Post Sign-Up Service

This service implements a Cognito Post Confirmation Lambda Trigger, forwarding events to SQS for downstream processing.

The service is packaged as a ZIP file and uploaded to S3. A Lambda function is then deployed using this ZIP file.

CI/CD is implemented via GitHub Actions. To manually deploy the service, use the GitHub Actions job titled "Deploy to AWS".

Installation

make

  • Download mingw64

  • Extract files under C:\Program Files

  • Add C:\Program Files\mingw64\bin to the system's environment variable Path

  • Rename the executable under the bin folder from mingw32-make to make

  • Verify the installation by running the following command in the Command Prompt:

    make -v

build-lambda-zip tool

Run the following command in the Command Prompt:

go install github.com/aws/aws-lambda-go/cmd/build-lambda-zip@latest

Terraform

  • Download Terraform

  • Extract the downloaded file to C:\Program Files\HashiCorp\Terraform

  • Add the Terraform directory to your system's Path in the Environment Variables.

  • Verify the installation by running the following command in the Command Prompt:

    terraform version

Build Lambda Function Zip File

make build ENV=dev

Deploy the Lambda Function

Use the make command to deploy the service to your desired environment:

  • Replace ENV=dev with your target environment, e.g., dev, stag, prod.
  • Ensure that your AWS credentials are properly configured before deployment.
make tf_init ENV=dev
make tf_plan
make tf_deploy

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published