Skip to content

coryodaniel/tf_modules

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terraform modules

Firehose to S3

firehose_to_s3 is a module that creates a Kinesis Firehose with an S3 destination.

This module will create:

  • Kinesis Firehose
  • Private S3 Bucket, logging enabled
  • IAM roles and policies for writing to S3

Usage

module "firehose_to_s3" {
  source = "github.com/coryodaniel/tf_modules//firehose_to_s3"
  account_id      = "your-account-id"
  firehose_name   = "my_name"
  bucket_name     = "my_bucket"
  force_destroy_bucket = false
  buffer_size     = 5
  buffer_interval = 300
}

Firehose Writer

firehose_writer will create the write policy for Firehose and attaches it to the given role.

This module will create:

  • IAM Policy for writing to the firehose
  • Attachment to the role_name provided. This role should already exist.
module "firehose_writer" {
  source = "github.com/coryodaniel/tf_modules//firehose_writer"
  role_name    = "existing-role-to-give-write-access"
  firehose_arn = "${module.firehose_to_s3.firehose_arn}"
}

Lambda-Kinesis execution role

lambda_kinesis_execution_role configures role for Amazon Kinesis Streams actions, and CloudWatch Logs actions. Useful for Lambda functions that process Amazon Kinesis stream events.

module "lambda_assume_role" {
  source = "github.com/coryodaniel/tf_modules//lambda_assume_role"
  role_name_prefix = "${var.app_name}_${var.env}"
}

About

Terraform modules

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages