Giter VIP home page Giter VIP logo

terraform-aws-cloudwatch-logs's Introduction

AWS CloudWatch Logs Terraform Module

This Terraform module deploys an AWS CloudWatch Log Stream and Group.

Usage

Check valid versions on:

Install pre commit hooks.

Pleas run this command right after cloning the repository.

    pre-commit install

For that you may need to install the folowwing tools:

In order to run all checks at any point run the following command:

    pre-commit run --all-files

Requirements

Name Version
terraform >= 0.13
aws >= 4

Providers

Name Version
aws 4.0.0

Modules

No modules.

Resources

Name Type
aws_cloudwatch_log_group.log_group resource
aws_cloudwatch_log_stream.log_stream resource
aws_kms_key.encryption_key resource
aws_caller_identity.current data source
aws_region.current data source

Inputs

Name Description Type Default Required
create_kms_key If true a new KMS key will be created to encrypt the logs. If set to false a custom key can be used by setting the variable log_group_kms_key_id bool false no
log_group_kms_key_id The ARN of the KMS Key to use when encrypting log data. Please note, after the AWS KMS CMK is disassociated from the log group, AWS CloudWatch Logs stops encrypting newly ingested data for the log group. All previously ingested data remains encrypted, and AWS CloudWatch Logs requires permissions for the CMK whenever the encrypted data is requested. string null no
log_group_retention_in_days (Optional) Specifies the number of days you want to retain log events in the specified log group. Possible values are: 1, 3, 5, 7, 14, 30, 60, 90, 120, 150, 180, 365, 400, 545, 731, 1827, 3653, and 0. If you select 0, the events in the log group are always retained and never expire. Default to 30 days. number 30 no
logs_path Path of the logs in CloudWatch any n/a yes
tags Resource tags map(string) {} no

Outputs

Name Description
encryption_key_arn The Amazon Resource Name (ARN) of the key.
encryption_key_id The globally unique identifier for the key.
log_group_arn The Amazon Resource Name (ARN) specifying the log group.
log_group_name The name of the log group.
log_group_retention_in_days Specifies the number of days log events are retained
log_stream_arn The Amazon Resource Name (ARN) specifying the log stream.
log_stream_log_group_name The name of the log group under which the log stream was created
log_stream_name The name of the log stream.
logs_path Path of the logs in CloudWatch

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.