Giter VIP home page Giter VIP logo

serverless-iban-service's Introduction

Serverless IBAN service - alpha version

Go to following url in your to test

https://hobqs726w8.execute-api.eu-west-1.amazonaws.com/v1/validate/BE68539007547034

The Swagger defintion is available here

Postman example:

Getting started

Deployment procedure

#!/bin/bash

# Todo: Read parameters from env-vars/dev.json
export STACK_NAME=serverless-iban-service
export MY_DEV_BUCKET=serverless-development-bucket


# Package new cloudformation package
aws cloudformation package --template template.yaml --s3-bucket $MY_DEV_BUCKET --output-template template-export-dev.yaml

# Deploy
sam deploy --template-file template-export-dev.yaml --stack-name $STACK_NAME --capabilities CAPABILITY_NAMED_IAM --parameter-overrides Stage=dev

# Manual post deployment step --f
# Cloudformation does not support adding S3 trigger to Lambda when using random s3 name
# https://aws.amazon.com/premiumsupport/knowledge-center/unable-validate-destination-s3/
aws s3api put-bucket-notification-configuration`--bucket awsteam-vandes16-dev-serverless-tim-s3imagebucket-1k00w09b9qwh9 --notification-configuration cfn-s3-fix-notification.json

aws s3api put-bucket-notification-configuration --bucket 'awsteam-vandes16-dev-serverless-tim-s3imagebucket-g34t0nyqsa9r' --notification-configuration file://cfn-s3-fix-notification.json

Test cases:

sam local invoke FnIbanApi --event ./lambda/fn-ibanvalidator/__tests__/test.json --docker-network lambda-local --env-vars env-vars/local.json --skip-pull-image
sam local invoke FnIbanApi --event ./lambda/fn-ibanvalidator/__tests__/test-valid.json --docker-network lambda-local --env-vars env-vars/local.json --skip-pull-image

serverless-iban-service's People

Contributors

samuelcastle avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.