Two stacks for creating two VPC Flow logs: one to send logs to an S3 bucket and another to send logs to a Cloudwatch log group.
Terraform >= v1.5.2
cdktf >= 0.17.0
cdktf init --template="python"
pipenv install cdktf-cdktf-provider-aws
export AWS_PROFILE="your_aws_profile"
Configure settings.py with the VPC id where the Vpc Flow Log(s) will be created. You can also configure default tags for your deployment.
cdktf deploy vpc-flowlogs-loggroup
cdktf deploy vpc-flowlogs-s3