GithubHelp home page GithubHelp logo

isabella232 / terraform-aws-cloudwatch-s3 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kong/terraform-aws-cloudwatch-s3

0.0 0.0 0.0 183 KB

Stream Cloudwatch logs to s3

License: Apache License 2.0

Makefile 17.40% HCL 64.39% Shell 1.87% PowerShell 2.94% Python 13.39%

terraform-aws-cloudwatch-s3's Introduction

terraform-aws-cloudwatch-s3

Build Status Latest Release GitHub tag (latest SemVer) Terraform Version Infrastructure Tests pre-commit checkov Infrastructure Tests

Terraform module to provision infra that collates cloudwatch data into an s3 data lake cloudwatch.


This project 100% Open Source and licensed under the APACHE2.

Usage

Include this repository as a module in your existing Terraform code:

module "cloudwatch-s3" {
  source                 = "jameswoolfenden/aws/cloudwatch-s3"
  version                = "v0.2.20"
  cloudwatch_stream_name = var.cloudwatch_stream_name
  log_bucket             = var.log_bucket
  region_desc            = var.region_desc
  filter_pattern         = var.filter_pattern
  log_group_name         = aws_cloudwatch_log_group.example.name
  kms_master_key_id      = aws_kms_key.example.arn
}

The see folder example/examplea for a worked example.

Requirements

No requirements.

Providers

Name Version
aws n/a

Modules

No modules.

Resources

Name Type
aws_cloudwatch_log_subscription_filter.filters resource
aws_iam_role.cwl resource
aws_iam_role.firehosetos3 resource
aws_iam_role_policy.permissionsforcwl resource
aws_iam_role_policy.permissionsforfirehose resource
aws_kinesis_firehose_delivery_stream.extended_s3_stream resource
aws_s3_bucket.log_bucket resource
aws_s3_bucket_policy.log_bucket_policy resource
aws_s3_bucket_public_access_block.bucket resource
aws_caller_identity.current data source
aws_iam_policy_document.cloudwatch data source
aws_iam_policy_document.firehose data source
aws_region.current data source

Inputs

Name Description Type Default Required
cloudwatch_stream_name n/a string n/a yes
filter_pattern description string n/a yes
kms_master_key_id The KMS key id to use for Encryption string n/a yes
log_bucket n/a string n/a yes
log_bucket_mfa_delete If you set this as the default its going to make it hard to delete bool false no
log_group_name A log group to stream list(any) n/a yes
region_desc A string used to help name stuff doesnt have to be a region string n/a yes
server_side_encryption Encrypt at rest bool true no
sse_algorithm The Encryption algorithm to use string "aws:kms" no

Outputs

Name Description
cwlrolearn n/a
firehosearn n/a

Related Projects

Check out these related projects.

Help

Got a question?

File a GitHub issue.

Contributing

Bug Reports & Feature Requests

Please use the issue tracker to report any bugs or file feature requests.

Copyrights

Copyright © 2019-2022 James Woolfenden

License

License

See LICENSE for full details.

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Contributors

James Woolfenden
James Woolfenden

terraform-aws-cloudwatch-s3's People

Contributors

gozer avatar jameswoolfenden avatar zhalas avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.