Git Product home page Git Product logo

arun9theja / terraform-aws-route53-query-logs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from trussworks/terraform-aws-route53-query-logs

0.0 0.0 0.0 238 KB

Configures query logging on an existing Route53 hosted zones.

Home Page: https://registry.terraform.io/modules/trussworks/route53-query-logs

License: BSD 3-Clause "New" or "Revised" License

HCL 29.61% Makefile 7.00% Go 63.39%

terraform-aws-route53-query-logs's Introduction

This module configures query logging on an existing Route53 hosted zone.

NOTE: AWS only supports sending Route53 logs in us-east-1 so we must create all the resources in that region.

In order to use this module, you will need to define a us-east-1 provider using the following code:

provider "aws" {
  alias  = "us-east-1"
  region = "us-east-1"
}

ADDITIONAL NOTE: There is a limit of ten Cloudwatch log resource policies an AWS account can have in place. If you plan to have several instances of this module, it is recommended that only one should have create_resource_policy set to true and the others to false.

Creates the following resources:

  • CloudWatch log group for storing Route53 query logs
  • IAM Policy for allowing logs to be written
  • Route53 query logging service

Usage

module "r53_query_logging" {
  source  = "trussworks/route53-query-logs/aws"
  version = "~> 3.0.0"

  providers = {
    aws.us-east-1 = aws.us-east-1
  }

  logs_cloudwatch_retention = 30
  zone_id                   = aws_route53_zone.my_zone.zone_id
}

Terraform Versions

  • Terraform 0.13 and newer. Pin module version to ~> 3.0. Submit pull requests to master branch.
  • Terraform 0.12. Pin module version to ~> 2.0. Submit pull requests to terraform012 branch.

Requirements

Name Version
terraform >= 0.13
aws >= 3.0

Providers

Name Version
aws >= 3.0
aws.us-east-1 >= 3.0

Inputs

Name Description Type Default Required
create_resource_policy Specifies whether the module should create the resource policy. bool true no
logs_cloudwatch_retention Specifies the number of days you want to retain log events in the log group. string 90 no
zone_id Route53 zone ID. string n/a yes

Outputs

No output.

terraform-aws-route53-query-logs's People

Contributors

ralren avatar dependabot-preview[bot] avatar linuxbozo avatar mdawn avatar dependabot[bot] avatar kodiakhq[bot] avatar eeeady avatar cblkwell avatar mdrummerboy09 avatar esacteksab avatar chrisgilmerproj 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.