Giter Site home page Giter Site logo

aws-samples / amazon-eventbridge-resource-policy-samples Goto Github PK

View Code? Open in Web Editor NEW
96.0 16.0 13.0 2.36 MB

Learn more about Amazon EventBridge resource policies and multi-account event bus topologies. This repo contains sample code for the AWS re:Invent 2020 session "Building event-driven applications with Amazon EventBridge" (https://youtu.be/Wk0FoXTUEjo) and the AWS Compute blog post "Simplifying cross-account access with Amazon EventBridge" (https://amzn.to/3o0Dcz4)

Home Page: https://serverlessland.com

License: MIT No Attribution

Python 84.17% Shell 2.70% Makefile 13.13%
aws eventbridge lambda serverless event-driven-architecture

amazon-eventbridge-resource-policy-samples's Introduction

Amazon EventBridge resource policy samples

Amazon EventBridge resource policies that make it easier to build applications that work across accounts. Resource policies provide you with a powerful mechanism for modeling your event buses across multiple accounts, and give you fine-grained control over EventBridge API invocations.

This repository contains sample implementations for Amazon EventBridge resource policies.

1. E-commerce example walk-through

This sample application walks you through how to use Amazon EventBridge resource policies as presented in feature release blog post

Get started with the e-commerce sample >>

Walkthrough architecture

2. Multi-account design patterns

The samples in this section provide sample implementations using "single-bus, multi-account", and "multi-bus, multi-account" patterns as presented in the AWS re:Invent 2020 session Building event-driven applications with Amazon EventBridge which is available on-demand on YouTube.

Walkthrough architecture


For more serverless learning resources, visit Serverless Land.

Security

See CONTRIBUTING for more information.

License

This library is licensed under the MIT-0 License. See the LICENSE file.

Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.

SPDX-License-Identifier: MIT-0

amazon-eventbridge-resource-policy-samples's People

Contributors

amazon-auto avatar dependabot[bot] avatar igorlg avatar samdengler avatar sliedig avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

amazon-eventbridge-resource-policy-samples's Issues

Problem with cross-region events

Hi, when I created the central event bus in account B in us-east-1 and the event bus in account C in us-west-2.

I received the following error:

CREATE_FAILED     AWS::Events::Rule    InvoiceProcessingRule  

Cross-region API call is not allowed. (Service: AmazonCloudWatchEvents; Status  Code: 400; Error Code: ValidationException; Request    ID: XXXXXXXX; Proxy: null)    

to deploy I ran the commands from the readme

sam deploy --guided --region us-west-2

Sam version: SAM CLI, version 1.90.0

In the same region, all is good but I have these restrictions and I need to use different regions. Am I missing something?

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.