An Amazon Kinesis Data Firehose Experiment
CloudWatch Logs --> Kinesis Firehose [ Lambda Function (Data Transformation) ] --> S3
make TF_BACKEND_TFSTATE_BUCKET=<your existing s3 bucket name> TF_BACKEND_REGION=<your region>
aws firehose describe-delivery-stream --delivery-stream-name ex-aws-firehose
Edit KMS policy based on kms_policy.json.tpl.
Check the destination before test.
aws s3 ls "ex-aws-firehose-$(aws sts get-caller-identity --query Account --output text)" --recursive
Send a test log to CloudWatch Logs.
make test
aws logs get-log-events --log-group-name /ex-aws-firehose --log-stream-name test
aws s3 ls "ex-aws-firehose-$(aws sts get-caller-identity --query Account --output text)" --recursive
aws logs get-log-events --log-group-name /ex-aws-firehose --log-stream-name firehose-service-logs
make TF_BACKEND_TFSTATE_BUCKET=<your existing s3 bucket name> TF_BACKEND_REGION=<your region> destroy