Demo from CloudEvents presentation on Warszawskie Dni Informatyki 2021 about sending events from cloud starages across multiple cloud providers.
- GCP Cloud Storage -> GCP EventArc -> GCP Cloud Run
- Azure Blob Storage -> Azure Event Grid -> GCP Cloud Run
- AWS S3 -> AWS Lambda -> Azure Event Grid -> GCP Cloud Run
- Create storage bucket
- Prepare Container Registry
export GCP_REGISTRY = YOUR_REGISTRY_PREFIX
- 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
- Deploy Cloud Run function
- Create Eventarc trigger
- Authentication options:
- Use Cloud Logging to see results
- Want to see how you can build solution with reporting dashboard presented on conferrence? Check my blog.
- Create Blob Storage
- Create system topic for BLob Storage events
- Create webhook subscription with Cloud Run url
- Create Event Grid Topic from events from AWS
- Save access key for topic
- Create webhook subscription with Cloud Run url
- Create S3 bucket
- Create ECR repository
export AWS_REPOSITORY = YOUR_ECR_REPOSITORY_PATH
- Build the Docker image:
cd aws-cloudevents-fn
docker build -t $AWS_REPOSITORY .
docker push $AWS_REPOSITORY
- Create Lambda from docker image
- Set
EVENT_URL
variable giving Event Grid Topic URL- Set
EVENTGRID_KEY
variable giving Event Grid Topic access key