Code Monkey home page Code Monkey logo

aws-terraform-solution's Introduction

AWS Terraform Solution:

Overview:

I want a small .net core app running in a creator lambda function that when invoked, writes a message to sqs. Another lambda (processor lambda) grabs the message and publishes it to SNS with an email topic subscription. The second part is an integration stack. This will have another SQS queue which subscribed to the SNS topic in the main stack. I want a lambda to receive the message from this integration queue and write the message to a S3 storage bucket.

Instructions:

In order to achieve the above we would like to make use of Terraform to create the above resources in AWS. You can do this in a single TF file or split them up. We wan to send a message to the creator lambda for example:

[
  {
    "eventType": "CREATE",
    "message": "value1"
  }
]

Possible EventTypes include:

  • "CREATE" - Will be processed successfully.
  • "UPDATE" - Will be processed successfully.
  • "DLQ" - This type of event should be sent to the DLQ.
  • "ERROR" - This type of event or any other unknown event should throw an exception.

Ensure you supply the following deliverables:

  • Host the Terraform state in a S3 bucket.

  • artifact S3 bucket

  • Storage S3 bucket

  • IAMUser with policy,

  • KMSKey (Everything except the integration queue should be encrypted using this KMS key.),

  • IAMRole,

  • Lambdas that read code from artifact bucket,

  • A SQS Queue and a Deadletter Queue

  • SNS topic with one email and one sms subscription

  • Integration Queue which will receive a event from SNS

  • A Integration Lambda which will receive a event from the integration queue

  • The Integration lambda will write the event message to the storage bucket.

Our end goal is to create this:

design

aws-terraform-solution's People

Contributors

loanburger avatar

Watchers

 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.