Skip to content

doi-t/ex-aws-firehose

Repository files navigation

ex-aws-firehose

An Amazon Kinesis Data Firehose Experiment

CloudWatch Logs --> Kinesis Firehose [ Lambda Function (Data Transformation) ] --> S3

Usage

Deploy

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.

Send a test log to CloudWatch Logs

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

Check the result

aws s3 ls "ex-aws-firehose-$(aws sts get-caller-identity --query Account --output text)" --recursive

Check the error log

aws logs get-log-events --log-group-name /ex-aws-firehose --log-stream-name firehose-service-logs

Cleanup

make TF_BACKEND_TFSTATE_BUCKET=<your existing s3 bucket name> TF_BACKEND_REGION=<your region> destroy

Refs

About

An Experiment of Amazon Kinesis Data Firehose

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published