Skip to content

Commit f9836ad

Browse files
Fix/post migration cleanup (#1)
* fixed linting errors * stop using kms in example for tests * with working tests
1 parent b406aa9 commit f9836ad

File tree

13 files changed

+1356
-12
lines changed

13 files changed

+1356
-12
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,13 +110,13 @@ If `make check` target is successful, developer is good to commit the code to pr
110110
| Name | Version |
111111
|------|---------|
112112
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.5.0, <= 1.5.5 |
113-
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 3.57.0 |
113+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | ~> 5.0 |
114114

115115
## Providers
116116

117117
| Name | Version |
118118
|------|---------|
119-
| <a name="provider_aws"></a> [aws](#provider\_aws) | 5.22.0 |
119+
| <a name="provider_aws"></a> [aws](#provider\_aws) | 5.62.0 |
120120

121121
## Modules
122122

examples/standalone/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ No outputs.
3939
| Name | Version |
4040
|------|---------|
4141
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.5.0, <= 1.5.5 |
42-
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 3.57.0 |
42+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | ~> 5.0 |
4343

4444
## Providers
4545

@@ -61,11 +61,11 @@ No resources.
6161
|------|-------------|------|---------|:--------:|
6262
| <a name="input_name"></a> [name](#input\_name) | Name of the log group. | `string` | n/a | yes |
6363
| <a name="input_kms_key_id"></a> [kms\_key\_id](#input\_kms\_key\_id) | (Optional) The ARN of the KMS Key to use when encrypting log data. Please note, after the AWS KMS CMK is disassociated from the log group, AWS CloudWatch Logs stops encrypting newly ingested data for the log group. All previously ingested data remains encrypted, and AWS CloudWatch Logs requires permissions for the CMK whenever the encrypted data is requested. | `string` | n/a | yes |
64-
| <a name="input_region"></a> [region](#input\_region) | AWS Region in which the infra needs to be provisioned | `string` | `"us-east-2"` | no |
6564

6665
## Outputs
6766

6867
| Name | Description |
6968
|------|-------------|
7069
| <a name="output_log_group_arn"></a> [log\_group\_arn](#output\_log\_group\_arn) | n/a |
70+
| <a name="output_log_group_name"></a> [log\_group\_name](#output\_log\_group\_name) | n/a |
7171
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->

examples/standalone/outputs.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,7 @@
1313
output "log_group_arn" {
1414
value = module.cloudwatch_log_group.log_group_arn
1515
}
16+
17+
output "log_group_name" {
18+
value = module.cloudwatch_log_group.log_group_name
19+
}

examples/standalone/test.tfvars

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
name = "/demo/group"
2-
kms_key_id = "arn:aws:kms:us-east-2:778189110199:key/a838d88c-807d-4eeb-911d-75d19c23c6eb"
2+
kms_key_id = ""

examples/standalone/variables.tf

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,3 @@ variable "kms_key_id" {
1919
description = "(Optional) The ARN of the KMS Key to use when encrypting log data. Please note, after the AWS KMS CMK is disassociated from the log group, AWS CloudWatch Logs stops encrypting newly ingested data for the log group. All previously ingested data remains encrypted, and AWS CloudWatch Logs requires permissions for the CMK whenever the encrypted data is requested."
2020
type = string
2121
}
22-
23-
variable "region" {
24-
description = "AWS Region in which the infra needs to be provisioned"
25-
default = "us-east-2"
26-
}

examples/standalone/versions.tf

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@
1212

1313
terraform {
1414
required_version = ">= 1.5.0, <= 1.5.5"
15+
1516
required_providers {
16-
aws = ">= 3.57.0"
17+
aws = {
18+
source = "hashicorp/aws"
19+
version = "~> 5.0"
20+
}
1721
}
1822
}

go.mod

Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,113 @@
11
module github.com/launchbynttdata/tf-aws-module_primitive-cloudwatch_log_group
22

33
go 1.21.7
4+
5+
require (
6+
github.com/aws/aws-sdk-go-v2 v1.30.3
7+
github.com/aws/aws-sdk-go-v2/config v1.27.27
8+
github.com/aws/aws-sdk-go-v2/service/cloudwatchlogs v1.37.3
9+
github.com/gruntwork-io/terratest v0.47.0
10+
github.com/launchbynttdata/lcaf-component-terratest v1.0.4
11+
github.com/stretchr/testify v1.9.0
12+
)
13+
14+
require (
15+
cloud.google.com/go v0.110.0 // indirect
16+
cloud.google.com/go/compute v1.19.1 // indirect
17+
cloud.google.com/go/compute/metadata v0.2.3 // indirect
18+
cloud.google.com/go/iam v0.13.0 // indirect
19+
cloud.google.com/go/storage v1.28.1 // indirect
20+
github.com/agext/levenshtein v1.2.3 // indirect
21+
github.com/apparentlymart/go-textseg/v13 v13.0.0 // indirect
22+
github.com/aws/aws-sdk-go v1.55.5 // indirect
23+
github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.3 // indirect
24+
github.com/aws/aws-sdk-go-v2/credentials v1.17.27 // indirect
25+
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.11 // indirect
26+
github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.15 // indirect
27+
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.15 // indirect
28+
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.0 // indirect
29+
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.11.3 // indirect
30+
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.17 // indirect
31+
github.com/aws/aws-sdk-go-v2/service/sso v1.22.4 // indirect
32+
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.26.4 // indirect
33+
github.com/aws/aws-sdk-go-v2/service/sts v1.30.3 // indirect
34+
github.com/aws/smithy-go v1.20.3 // indirect
35+
github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d // indirect
36+
github.com/boombuler/barcode v1.0.1-0.20190219062509-6c824513bacc // indirect
37+
github.com/cpuguy83/go-md2man/v2 v2.0.0 // indirect
38+
github.com/davecgh/go-spew v1.1.1 // indirect
39+
github.com/emicklei/go-restful/v3 v3.9.0 // indirect
40+
github.com/go-errors/errors v1.0.2-0.20180813162953-d98b870cc4e0 // indirect
41+
github.com/go-logr/logr v1.2.4 // indirect
42+
github.com/go-openapi/jsonpointer v0.19.6 // indirect
43+
github.com/go-openapi/jsonreference v0.20.2 // indirect
44+
github.com/go-openapi/swag v0.22.3 // indirect
45+
github.com/go-sql-driver/mysql v1.4.1 // indirect
46+
github.com/gogo/protobuf v1.3.2 // indirect
47+
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
48+
github.com/golang/protobuf v1.5.3 // indirect
49+
github.com/google/gnostic-models v0.6.8 // indirect
50+
github.com/google/go-cmp v0.5.9 // indirect
51+
github.com/google/gofuzz v1.2.0 // indirect
52+
github.com/google/uuid v1.3.0 // indirect
53+
github.com/googleapis/enterprise-certificate-proxy v0.2.3 // indirect
54+
github.com/googleapis/gax-go/v2 v2.7.1 // indirect
55+
github.com/gruntwork-io/go-commons v0.8.0 // indirect
56+
github.com/hashicorp/errwrap v1.0.0 // indirect
57+
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
58+
github.com/hashicorp/go-getter v1.7.5 // indirect
59+
github.com/hashicorp/go-multierror v1.1.0 // indirect
60+
github.com/hashicorp/go-safetemp v1.0.0 // indirect
61+
github.com/hashicorp/go-version v1.6.0 // indirect
62+
github.com/hashicorp/hcl/v2 v2.9.1 // indirect
63+
github.com/hashicorp/terraform-json v0.13.0 // indirect
64+
github.com/imdario/mergo v0.3.11 // indirect
65+
github.com/jinzhu/copier v0.0.0-20190924061706-b57f9002281a // indirect
66+
github.com/jmespath/go-jmespath v0.4.0 // indirect
67+
github.com/josharian/intern v1.0.0 // indirect
68+
github.com/json-iterator/go v1.1.12 // indirect
69+
github.com/klauspost/compress v1.15.11 // indirect
70+
github.com/mailru/easyjson v0.7.7 // indirect
71+
github.com/mattn/go-zglob v0.0.2-0.20190814121620-e3c945676326 // indirect
72+
github.com/mitchellh/go-homedir v1.1.0 // indirect
73+
github.com/mitchellh/go-testing-interface v1.14.1 // indirect
74+
github.com/mitchellh/go-wordwrap v1.0.1 // indirect
75+
github.com/moby/spdystream v0.2.0 // indirect
76+
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
77+
github.com/modern-go/reflect2 v1.0.2 // indirect
78+
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
79+
github.com/pmezard/go-difflib v1.0.0 // indirect
80+
github.com/pquerna/otp v1.2.0 // indirect
81+
github.com/russross/blackfriday/v2 v2.1.0 // indirect
82+
github.com/spf13/pflag v1.0.5 // indirect
83+
github.com/tmccombs/hcl2json v0.3.3 // indirect
84+
github.com/ulikunitz/xz v0.5.10 // indirect
85+
github.com/urfave/cli v1.22.2 // indirect
86+
github.com/zclconf/go-cty v1.9.1 // indirect
87+
go.opencensus.io v0.24.0 // indirect
88+
golang.org/x/crypto v0.21.0 // indirect
89+
golang.org/x/net v0.23.0 // indirect
90+
golang.org/x/oauth2 v0.8.0 // indirect
91+
golang.org/x/sys v0.18.0 // indirect
92+
golang.org/x/term v0.18.0 // indirect
93+
golang.org/x/text v0.14.0 // indirect
94+
golang.org/x/time v0.3.0 // indirect
95+
golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 // indirect
96+
google.golang.org/api v0.114.0 // indirect
97+
google.golang.org/appengine v1.6.7 // indirect
98+
google.golang.org/genproto v0.0.0-20230410155749-daa745c078e1 // indirect
99+
google.golang.org/grpc v1.56.3 // indirect
100+
google.golang.org/protobuf v1.33.0 // indirect
101+
gopkg.in/inf.v0 v0.9.1 // indirect
102+
gopkg.in/yaml.v2 v2.4.0 // indirect
103+
gopkg.in/yaml.v3 v3.0.1 // indirect
104+
k8s.io/api v0.28.4 // indirect
105+
k8s.io/apimachinery v0.28.4 // indirect
106+
k8s.io/client-go v0.28.4 // indirect
107+
k8s.io/klog/v2 v2.100.1 // indirect
108+
k8s.io/kube-openapi v0.0.0-20230717233707-2695361300d9 // indirect
109+
k8s.io/utils v0.0.0-20230406110748-d93618cff8a2 // indirect
110+
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect
111+
sigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect
112+
sigs.k8s.io/yaml v1.3.0 // indirect
113+
)

0 commit comments

Comments
 (0)