Api-waf-example-cdk - Demo using sam to drive a CDK serverless api

CDK SAM Demo

Demo using sam to drive a CDK serverless api

Stack Setup

go build -v ./cmd/application
🛠️  cmd/application done
âś“  stacks/build done
âś“  build done
cdk deploy --app ./application
2021/11/03 21:56:33 Starting Application Build
Bundling asset OpenenterpriseProductionSamAppStack/Hosting/Lambda/Code/Stage...
OpenenterpriseProductionSamAppStack: deploying...
[0%] start: Publishing e9deedc87e534faa84cd401ae14a2e47c1e235ff4cbab5bbadd3d810bf38c6ec:current
[50%] success: Published e9deedc87e534faa84cd401ae14a2e47c1e235ff4cbab5bbadd3d810bf38c6ec:current
[50%] start: Publishing 54aa9368cb0af77728b139df544966eb0ee9754a76a567e67d1db78a861cdb72:current
[100%] success: Published 54aa9368cb0af77728b139df544966eb0ee9754a76a567e67d1db78a861cdb72:current
OpenenterpriseProductionSamAppStack: creating CloudFormation changeset...

 âś…  OpenenterpriseProductionSamAppStack

Stack ARN:
arn:aws:cloudformation:eu-west-1:074705540277:stack/OpenenterpriseProductionSamAppStack/18c8c170-3ce5-11ec-8c2b-06e6d7c1014f
🛠️  deploy/application done
âś“  deploy done

License

MIT

Useful commands

  • make deploy deploy this stack to your default AWS account/region
  • make sam/test/api start the api
  • make sam/test/hello call the hello endpoint
  • make sam/test/version call the version endpoint

Notes

Had to set the following due to https://github.com/aws/aws-sam-cli/issues/2849

"@aws-cdk/core:newStyleStackSynthesis": false,
Similar Resources

Zero - If Google Drive says that 1 is under copyright, 0 must be under copyleft

zero Zero under copyleft license Google Drive's copyright detector says that fil

May 16, 2022

Prueba de concepto: Boletia, una aplicaciĂłn para venta de boletos, basada en microservicios event-driven. Desarrollada sobre AWS Serverless: Api Gateway, Lambda, DynamoDB, DynamoDB Streams

Prueba de concepto: Boletia, una aplicaciĂłn para venta de boletos, basada en microservicios event-driven. Desarrollada sobre AWS Serverless: Api Gateway, Lambda, DynamoDB, DynamoDB Streams

Prueba de concepto: Boletia, una aplicaciĂłn para venta de boletos, basada en microservicios event-driven. Desarrollada sobre AWS Serverless: Api Gatew

May 7, 2022

Una prueba técnica: Servicio Golang REST API local, sobre Docker, gRPC, AWS Serverless y sobre Kubernetes en AWS EC2

Una prueba técnica: Servicio Golang REST API local, sobre Docker, gRPC, AWS Serverless y sobre Kubernetes en AWS EC2

May 7, 2022

Serverless SOAR (Security Orchestration, Automation and Response) framework for automatic inspection and evaluation of security alert

Serverless SOAR (Security Orchestration, Automation and Response) framework for automatic inspection and evaluation of security alert

DeepAlert DeepAlert is a serverless framework for automatic response of security alert. Overview DeepAlert receives a security alert that is event of

Jan 3, 2023

A serverless sync server for Santa, built on AWS

Rudolph Rudolph is the control server counterpart of Santa, and is used to rapidly deploy configurations to Santa agents. Rudolph is built in Amazon W

Dec 5, 2022

This repository shows how can we use `AWS Lambda` to build serverless applications in golang.

Serverless Api in Go with AWS Lambda Here we are going to use AWS Lambda to build serverless applications in golang. Prerequisites You’ll need an AWS

Nov 3, 2021

A serverless teeny-tiny version of Diomedes which sends alerts to Telegram. Written in Go.

A serverless teeny-tiny version of Diomedes which sends alerts to Telegram. Written in Go.

diomedes-search Get a notification on Telegram whenever your movie opens bookings in a theater of your choice. Pre-requisites Install AWS CLI (v2) by

Oct 11, 2022

Sample serverless application written in Golang

Sample serverless application written in Golang

Serverless Go Demo This is a simple serverless application built in Golang. It consists of an API Gateway backed by four Lambda functions and a Dynamo

Dec 15, 2022
A Lambda function built with SAM (Serverless Application Module)

AWS SAM Lambda Function © Israel Pereira Tavares da Silva The AWS Serverless Application Model (SAM) is an open-source framework for building serverle

Dec 19, 2021
Simple CRUD API written in Go, built using AWS SAM tool and using the AWS' infrastructure.
Simple CRUD API written in Go, built using AWS SAM tool and using the AWS' infrastructure.

tutor-pet API Simple CRUD API written in Go, built using AWS SAM tool and using the AWS' infrastructure. Macro architecture: Code architecture: Pre-Re

Aug 17, 2022
Golang AWS SAM Lambda example

Golang AWS SAM Lambda example This example project shows how to use AWS SAM with

Nov 18, 2022
Go-serverless-eth-event-listener - Go serverless, ethereum contract event listener with a sample contract

go-serverless-eth-event-listener This repository is for showing how to listen sm

May 19, 2022
Create an ESK cluster using CDK and Golang.

Welcome to your CDK Go project! This is a blank project for Go development with CDK. NOTICE: Go support is still in Developer Preview. This implies th

Feb 14, 2022
GoDrive is a Go CLI tool written to wrap the Google Drive API.

GoDrive is a Go CLI tool written to wrap the Google Drive API.

Jan 10, 2022
Http apis with AWS CDK for Go

Http apis with AWS CDK for Go Blog: https://harshq.medium.com/building-apps-with-aws-sdk-for-golang-api-gateway-and-lambda-b254858b1d71 Useful command

Jan 4, 2022
Terraform CDK aws Provider

Terraform CDK aws Provider

Jul 29, 2022
Sample CDK projects developed by AWS Professional Services (ProServe)

AWS CDK Examples - ProServe This repository contains a set of CDK example projects which have been developed by AWS Professional Services (ProServe).

Dec 27, 2022
Sample application managed with AWS CDK v2 (TypeScript).

honyakutter-ts This is an application that translates text entered in Japanese into English and tweets it, defined using AWS CDK v2 (TypeScript) and u

Dec 7, 2021