KamWithK / golang_stage_aws_test

Testing Golang functions with LocalStack

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simple example of using the TypeScript CDK with Golang and Stages Eventually should work both on AWS and with LocalStack There are currently bugs which prevent it from being fully functional

Instructions

Setup

  1. cd infrastructure
  2. npm install
  3. cdk synth
  4. cdk bootstrap
  5. cdk deploy -a "cdk.out/assembly-testStage/" --require-approval "never" --all

Test

Get function information: aws lambda get-function --function-name "testFunction"

Invoke function: aws lambda invoke --function-name "testFunction" "manual_test.json"

About

Testing Golang functions with LocalStack

License:GNU General Public License v3.0


Languages

Language:TypeScript 64.6%Language:JavaScript 21.1%Language:Go 14.3%