Skip to content

Commit

Permalink
fixing pre-commit, cloudwatch log path
Browse files Browse the repository at this point in the history
  • Loading branch information
tomarv2 committed Oct 6, 2021
1 parent 812cf09 commit 6fe7b8e
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 17 deletions.
5 changes: 2 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,8 @@ repos:
- id: check-yaml

- repo: https://github.com/bridgecrewio/checkov.git
rev: '1.0.864' # change to tag or sha
rev: '2.0.469'
hooks:
- id: checkov
verbose: true
args:
- -d . --framework terraform -o output_format json
args: [-d, '.', --framework,'terraform']
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<img src="https://img.shields.io/twitter/follow/varuntomar2019?style=social&logo=twitter"></a>
</p>

# Terraform module to create [AWS Lambda]((https://registry.terraform.io/modules/tomarv2/lambda/aws/latest))
# Terraform module to create [AWS Lambda]((https://registry.terraform.io/modules/tomarv2/lambda/aws/latest)

## Versions

Expand Down Expand Up @@ -287,7 +287,7 @@ Please refer to examples directory [link](examples) for references.

| Name | Source | Version |
|------|--------|---------|
| <a name="module_cloudwatch"></a> [cloudwatch](#module\_cloudwatch) | git::git@github.com:tomarv2/terraform-aws-cloudwatch.git | v0.0.2 |
| <a name="module_cloudwatch"></a> [cloudwatch](#module\_cloudwatch) | git::git@github.com:tomarv2/terraform-aws-cloudwatch.git | v0.0.4 |
| <a name="module_cloudwatch_event"></a> [cloudwatch\_event](#module\_cloudwatch\_event) | git::git@github.com:tomarv2/terraform-aws-cloudwatch-event.git | v0.0.4 |
| <a name="module_iam_role"></a> [iam\_role](#module\_iam\_role) | git::git@github.com:tomarv2/terraform-aws-iam-role.git//modules/iam_role_instance | v0.0.4 |
| <a name="module_iam_role_existing"></a> [iam\_role\_existing](#module\_iam\_role\_existing) | git::git@github.com:tomarv2/terraform-aws-iam-role.git//modules/iam_role_instance | v0.0.4 |
Expand All @@ -309,7 +309,7 @@ Please refer to examples directory [link](examples) for references.
| <a name="input_archive_type"></a> [archive\_type](#input\_archive\_type) | archive file type. | `string` | `"zip"` | no |
| <a name="input_aws_region"></a> [aws\_region](#input\_aws\_region) | aws region to deploy resources in. | `string` | `"us-west-2"` | no |
| <a name="input_cloudwatch_event"></a> [cloudwatch\_event](#input\_cloudwatch\_event) | Map of cloudwatch event configuration | `map(any)` | <pre>{<br> "default": {}<br>}</pre> | no |
| <a name="input_cloudwatch_path"></a> [cloudwatch\_path](#input\_cloudwatch\_path) | name of the log group | `string` | `"aws/lambda"` | no |
| <a name="input_cloudwatch_path"></a> [cloudwatch\_path](#input\_cloudwatch\_path) | name of the log group | `string` | `"/aws/lambda"` | no |
| <a name="input_dead_letter_config"></a> [dead\_letter\_config](#input\_dead\_letter\_config) | dead letter config. | <pre>object({<br> target_arn = string<br> })</pre> | `null` | no |
| <a name="input_dependencies_path"></a> [dependencies\_path](#input\_dependencies\_path) | Location of dependencies management script. | `string` | `null` | no |
| <a name="input_deploy"></a> [deploy](#input\_deploy) | Controls whether resources should be created | `bool` | `true` | no |
Expand Down
2 changes: 1 addition & 1 deletion cloudwatch.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module "cloudwatch" {
source = "git::git@github.com:tomarv2/terraform-aws-cloudwatch.git?ref=v0.0.2"
source = "git::git@github.com:tomarv2/terraform-aws-cloudwatch.git?ref=v0.0.4"

cloudwatch_path = var.cloudwatch_path
teamid = var.teamid
Expand Down
2 changes: 1 addition & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ variable "layers" {

variable "cloudwatch_path" {
description = "name of the log group"
default = "aws/lambda"
default = "/aws/lambda"
type = string
}

Expand Down
12 changes: 3 additions & 9 deletions versions.tf
Original file line number Diff line number Diff line change
@@ -1,20 +1,14 @@
/*
locals {
profile_to_use = var.role != null ? var.role : var.profile_for_iam
}
*/

terraform {
required_version = ">= 1.0.1"
required_providers {
aws = {
version = "~> 3.47"
version = ">= 3.47"
}
archive = {
version = "~> 2.1"
version = ">= 2.1"
}
null = {
version = "~> 3.1.0"
version = ">= 3.1.0"
}
}
}
Expand Down

0 comments on commit 6fe7b8e

Please sign in to comment.