Skip to content

lmaczulajtys/wdi-cloudevents-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WDI CloudEvents demo

Demo from CloudEvents presentation on Warszawskie Dni Informatyki 2021 about sending events from cloud starages across multiple cloud providers.

  1. GCP Cloud Storage -> GCP EventArc -> GCP Cloud Run
  2. Azure Blob Storage -> Azure Event Grid -> GCP Cloud Run
  3. AWS S3 -> AWS Lambda -> Azure Event Grid -> GCP Cloud Run

1. GCP Cloud Run

  1. Create storage bucket
  2. Prepare Container Registry
  3. export GCP_REGISTRY = YOUR_REGISTRY_PREFIX
  4. Build the Docker image:
cd gcp-cloudevents-run
docker build -t $GCP_REGISTRY/wdi-gcp-cloudevents-run .
docker push $GCP_REGISTRY/wdi-gcp-cloudevents-run
  1. Deploy Cloud Run function
  2. Create Eventarc trigger
  3. Authentication options:
  1. JWT
  2. Cloud Endpoints
  1. Use Cloud Logging to see results
  2. Want to see how you can build solution with reporting dashboard presented on conferrence? Check my blog.

2. Azure EventGrid

  1. Create Blob Storage
  2. Create system topic for BLob Storage events
  3. Create webhook subscription with Cloud Run url
  4. Create Event Grid Topic from events from AWS
  5. Save access key for topic
  6. Create webhook subscription with Cloud Run url

3. AWS Lambda

  1. Create S3 bucket
  2. Create ECR repository
  3. export AWS_REPOSITORY = YOUR_ECR_REPOSITORY_PATH
  4. Build the Docker image:
cd aws-cloudevents-fn
docker build -t $AWS_REPOSITORY .
docker push $AWS_REPOSITORY
  1. Create Lambda from docker image
  1. Set EVENT_URL variable giving Event Grid Topic URL
  2. Set EVENTGRID_KEY variable giving Event Grid Topic access key

About

Demo from CloudEvents presentation on Warszawskie Dni Informatyki 2021.

Resources

License

Stars

Watchers

Forks