From 1f3c0f126df630e77d032946d53cdc9e66c30046 Mon Sep 17 00:00:00 2001 From: Puneeth Date: Wed, 15 Apr 2020 13:06:08 +0200 Subject: [PATCH] Output Kinesis Firehose ARN (#1) * Output Kinesis Firehose ARN * Update Readme * Update Readme * Update Readme * Update Readme --- README.md | 17 +++++++++++++++++ main.tf | 8 +++++++- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9ca4875..075a04c 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,23 @@ module "my_firehose" { } ``` +## Inputs + +| Name | Description | Type | Default | Required | +|------|-------------|:----:|:-----:|:-----:| +| account\_id | AWS account ID | string | n/a | yes | +| name | Name of the firehose | string | n/a | yes | +| destination | Kinesis Firehose Destination | string | `"s3"` | no | +| enable | Enable firehose | string | `"1"` | no | +| region | AWS region | string | `"eu-west-1"` | no | +| s3\_configuration | AWS S3 configuration | map | `` | no | + +## Outputs + +| Name | Description | +|------|-------------| +| arn | ARN of the Kinesis Firehose | + ## Authors Module managed by [Comtravo](https://github.com/comtravo). diff --git a/main.tf b/main.tf index 2d38376..e8eb0bd 100644 --- a/main.tf +++ b/main.tf @@ -19,7 +19,8 @@ variable region { } variable destination { - default = "s3" + default = "s3" + description = "Kinesis Firehose Destination" } variable s3_configuration { @@ -128,3 +129,8 @@ resource "aws_kinesis_firehose_delivery_stream" "stream" { } } } + +output "arn" { + value = "${aws_kinesis_firehose_delivery_stream.stream.arn}" + description = "ARN of the Kinesis Firehose" +}