Giter Site home page Giter Site logo

terraform-aws-basic-cloudtrail's Introduction

terraform-aws-basic-cloudtrail

Overview

This is a module to start AWS Cloudtrail and to place the Cloudtrail logs in an S3 bucket. The bucket can be created externally and passed into the module or, if a bucket name is not passed in, a new bucket will be created.

Getting started

Please see the example.

Inputs

Name Var Type Required Default Description
bucket_name string yes Name of an S3 bucket that already exists. This bucket will be used to log Cloudtrail events. If no bucket name is specified then one will be created
s3_key_prefix string yes Specifies the S3 key prefix that precedes the name of the bucket you have designated for log file delivery
resource_prefix string bucket_name (Optional) Prefix used when naming the AWS Cloudtrail resource and, if not specified in the bucket_name variable, the S3 bucket used to store the Cloudtrail logs. Specifying this variable is recommended to prevent duplicate AWS resource names
enable_logging string true (Optional) Enables logging for the trail. Defaults to true. Setting this to false will pause logging
predefined_acl string private (Optional) A pre-defined or canned acl to apply to the bucket. This determines who is able to view the contents of the S3 bucket. For more information on values this field can take, see https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#canned-acl
custom_tags map (Optional) List of custom tags to apply to the resource

Outputs

In addition to the input arguments above, with the exception of custom_tags, the following attributes are exported:

Name Var Type Description
id string The name of the Cloudtrail resource
arn string The arn (Amazon Resource Name) of the Cloudtrail resource

Any attributes not specified in the inputs will have default values assigned and these values will appear in the outputs.

terraform-aws-basic-cloudtrail's People

Contributors

poveyd avatar smford avatar szd55gds avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.