๐ Builds a self-destructing S3 bucket and associated IAM Role for file temporary transfer workflows. Built with AWS CDK + TypeScript.
Getting Started
Run the following commands to install dependencies, build the CDK stack, and deploy the CDK Stack to AWS.
yarn install
yarn build
cdk bootstrap
cdk deploy
The following is an overview of each process performed by this CDK stack:
- Create S3 bucket
- Create IAM Role
- Create IAM Policies
- Send email to adimin with login credentials
- Send email to recipient user with login credentials
- Send delete reminder after 29 days
- Delete everything after 30 days
- Send delete confirmation email
yarn install
- installs dependenciesyarn build
- builds the production-ready CDK Stackyarn test
- runs Jestcdk bootstrap
- bootstraps AWS Cloudformation for your CDK deploycdk deploy
- deploys the CDK stack to AWS
Notes
-
Includes tests with Jest.
-
Recommended to use
Visual Studio Code
with theFormat on Save
setting turned on.
Built with
Additional Resources
License
Opens source under the MIT License.
Built with โค๏ธ by aeksco