Coder Social home page Coder Social logo

smithjw / aws-civ6-notification Goto Github PK

View Code? Open in Web Editor NEW

This project forked from egriffith/aws-civ6-notification

0.0 3.0 0.0 10 KB

An API Gateway endpoint, Lambda, and SNS topic for processing Civilization VI Play By Cloud webhook notifications.

Python 100.00%

aws-civ6-notification's Introduction

AWS-Civ6-Notification

This project contains json/yaml Cloudformation templates (under the Cloudformation directory), generated by the Troposphere script at the root of the directory. It is used to create an API Gateway endpoint, Lambda function, and SNS topic to be used with Civilization 6's new "Play By Cloud" functionality.

The lambda code also has the ability to post a message to a Discord Webhook URL.

This cloudformation template spins up the following resources:

  1. A Lambda function
  2. A Lambda policy allowing it to be invoked by API Gateway.
  3. A Lambda Execution IAM role & IAM policy allowing it to post to Cloudwatch Logs, Publish an SNS message, and invoke itself.
  4. An API Gateway end point with a 'civ6' resource, a 'prod' stage and accompanying deployment.
  5. An SNS topic to be subscribed to. Though no messages are published to it unless the 'SendToSNS' parameter is set to True.

While 'SendToSNS' and 'SendToDiscord' are configurable independently, one of them to needs to be set to True for this template to be of any value.

If you desire SNS notifications, then please subscribe to the SNS topic ARN that is available under the Template's "Outputs" tab.

Once the template is complete, please copy-paste the Api Gateway endpoint URL that is available under the "Outputs" tab to the Civilization 6 Webhook settings panel in the game.

aws-civ6-notification's People

Contributors

egriffith avatar

Watchers

 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.