Skip to content

Commit 95ad956

Browse files
committed
Add cloudwatch-log-group-full example
1 parent ce150e3 commit 95ad956

File tree

3 files changed

+42
-0
lines changed

3 files changed

+42
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
provider "aws" {
2+
region = "us-east-1"
3+
}
4+
5+
6+
###################################################
7+
# Secrets Manager Secret
8+
###################################################
9+
10+
module "secret" {
11+
source = "../../modules/cloudwatch-log-group"
12+
# source = "tedilabs/observability/aws//modules/cloudwatch-log-group"
13+
# version = "~> 0.1.0"
14+
15+
name = "/tedilabs/test"
16+
17+
retention_in_days = 7
18+
encryption_kms_key = null
19+
20+
streams = [
21+
"test-stream-1",
22+
"test-stream-2",
23+
]
24+
25+
tags = {
26+
"project" = "terraform-aws-secret-examples"
27+
}
28+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
output "secret" {
2+
value = module.secret
3+
sensitive = true
4+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
terraform {
2+
required_version = "~> 1.1"
3+
4+
required_providers {
5+
aws = {
6+
source = "hashicorp/aws"
7+
version = "~> 4.0"
8+
}
9+
}
10+
}

0 commit comments

Comments
 (0)