Giter VIP home page Giter VIP logo

amazon-pinpoint-call-retry's Introduction

Amazon Pinpoint Call Retry

Retrying Undelivered Voice Messages with Amazon Pinpoint. Please refer to the accompanying AWS Blog post for architecture details.

License Summary

This sample code is made available under a modified MIT-0 license. See the LICENSE file.

Setup process

This package requires AWS Serverless Application Model (AWS SAM) Command Line Interface (CLI) to deploy to your account. Instructions for installing and setting up SAM CLI can be found here: https://aws.amazon.com/serverless/sam/

Prerequisites

This serverless application requires that you have an AWS Pinpoint project set up, and configured with voice support and a long code. You will need to specify the long code in the template.yaml file before deploing this package. The Long code must be owned by the same account as Pinpoint and your SAM package are deployed in.

Installing dependencies

Use npm install in the callgenerator and retrycallgenerator directories to install any required packages prior to packaging and deploying this SAM application.

Packaging and deployment

Firstly, we need a S3 bucket where we can upload our Lambda functions packaged as ZIP before we deploy anything - If you don't have a S3 bucket to store code artifacts then this is a good time to create one:

aws s3 mb s3://BUCKET_NAME

Next, run the following command to package our Lambda function to S3:

sam package \
    --template-file template.yaml \
    --output-template-file output_template.yaml \
    --s3-bucket REPLACE_THIS_WITH_YOUR_S3_BUCKET_NAME

Next, the following command will create a Cloudformation Stack and deploy your SAM resources.

sam deploy \
    --template-file output_template.yaml \
    --stack-name blogstack \
    --capabilities CAPABILITY_IAM \
    --parameter-overrides maxRetry=2 longCode=REPLACE_THIS_WITH_YOUR_LONG_CODE retryDelaySeconds=60

See Serverless Application Model (SAM) HOWTO Guide for more details in how to get started.

amazon-pinpoint-call-retry's People

Contributors

amazon-auto avatar mrbalkan avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.