Demo of an Amazon Simple Notification Service (SNS) topic with multiple email subscriptions and how to add subscription filtering in SNS.
Requirements for any CDK app, in general, check out: Getting Started with the AWS CDK
Specific to CDK apps in Python: Working with the AWS CDK in Python
cd into the project
python3 -m venv .venv
source .venv/bin/activate
This repo requires aws-cdk-lib 2.137.0. See requirements.txt for package dependencies.
Install into the venv virtual environment for this project:
pip install -r requirements.txt
export IAC_PARAM_WELCOME_TEAM_EMAIL_ADDRESS=
export IAC_PARAM_EMAIL_ADDRESS=
source .env
source
tells bash interpreter to execute the commands in the file
export
makes the value available to the shell processes
cdk deploy
cdk deploy
initiate deploying to the default AWS account/region configured with the AWS CLI
Confirm the email subscriptions in order to receive the SNS Topic messages published by lambda function URL invocations.