aws∕vpc‒flow‒logs∕cloudwatch - dicomgrid/pt-modules GitHub Wiki

Usage

To use this module in your Terraform, refer to the below module example:

module "aws_vpc_flow_logs_cloudwatch" {
  source = "git::https://github.com/dicomgrid/pt-modules.git?ref=null"

  # See inputs below for additional required parameters
}

Attributes

Requirements

No requirements.

Providers

Name Version
aws n/a

Modules

Name Source Version
enable-eni-logs ./enable-eni-logs n/a
enable-subnet-logs ./enable-subnet-logs n/a
enable-tgw-attachment-logs ./enable-tgw-attachment-logs n/a
enable-vpc-logs ./enable-vpc-logs n/a

Resources

Name Type
aws_cloudwatch_log_group.log_group resource
aws_cloudwatch_log_stream.log_name resource
aws_ec2_transit_gateway_attachments.attachments data source
aws_subnets.get_subnets data source

Inputs

Name Description Type Default Required
account_id n/a any n/a yes
enable-eni-logs n/a any n/a yes
enable-subnet-logs n/a any n/a yes
enable-tgw-attachment-logs n/a any n/a yes
enable-vpc-logs n/a any n/a yes
iam_role_arn n/a string n/a yes
log_destination n/a any n/a yes
max_aggregation_interval n/a any n/a yes
region n/a any n/a yes
traffic_type n/a any n/a yes
vpc_id n/a any n/a yes
log_destination_type n/a string "cloud-watch-logs" no
retention_in_days n/a number 180 no
tags A map of tags to assign to the resource. map(string) {} no

Outputs

Name Description
log_group_arn The ARN of the CloudWatch log group.
log_group_name The name of the CloudWatch log group.
log_stream_name The name of the CloudWatch log stream.

Changelog