-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from pbs/chore/template_updates
Template Updates
- Loading branch information
Showing
23 changed files
with
251 additions
and
135 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
github.com/terraform-docs/[email protected] | ||
github.com/gruntwork-io/[email protected] | ||
github.com/stretchr/[email protected] |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,45 @@ | ||
plugin "aws" { | ||
enabled = true | ||
version = "0.9.0" | ||
source = "github.com/terraform-linters/tflint-ruleset-aws" | ||
enabled = true | ||
version = "0.14.0" | ||
source = "github.com/terraform-linters/tflint-ruleset-aws" | ||
} | ||
|
||
rule "terraform_deprecated_interpolation" { | ||
enabled = true | ||
enabled = true | ||
} | ||
rule "terraform_deprecated_index" { | ||
enabled = true | ||
enabled = true | ||
} | ||
rule "terraform_unused_declarations" { | ||
enabled = true | ||
enabled = true | ||
} | ||
rule "terraform_comment_syntax" { | ||
enabled = true | ||
enabled = true | ||
} | ||
rule "terraform_documented_outputs" { | ||
enabled = true | ||
enabled = true | ||
} | ||
rule "terraform_documented_variables" { | ||
enabled = true | ||
enabled = true | ||
} | ||
rule "terraform_typed_variables" { | ||
enabled = true | ||
enabled = true | ||
} | ||
rule "terraform_module_pinned_source" { | ||
enabled = true | ||
enabled = true | ||
} | ||
rule "terraform_naming_convention" { | ||
enabled = true | ||
enabled = true | ||
} | ||
rule "terraform_required_version" { | ||
enabled = true | ||
enabled = true | ||
} | ||
rule "terraform_required_providers" { | ||
enabled = true | ||
enabled = true | ||
} | ||
rule "terraform_unused_required_providers" { | ||
enabled = true | ||
enabled = true | ||
} | ||
rule "terraform_workspace_remote" { | ||
enabled = true | ||
enabled = true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
terraform 1.1.7 | ||
golang 1.17.6 | ||
terraform 1.2.4 | ||
golang 1.18.3 | ||
ripgrep 13.0.0 | ||
tflint 0.34.1 | ||
github-cli 2.7.0 | ||
fd 8.3.2 | ||
tflint 0.38.1 | ||
github-cli 2.13.0 | ||
fd 8.4.0 | ||
terraform-docs 0.16.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# lambda cron module | ||
# Lambda Cron Module | ||
|
||
This directory will be used for any documentation that is unique to this module. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
backend.tf | ||
provider.tf |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
module "lambda_cron" { | ||
source = "../.." | ||
|
||
handler = "main" | ||
filename = "../artifacts/handler.zip" | ||
runtime = "go1.x" | ||
|
||
architectures = ["arm64"] | ||
|
||
environment = var.environment | ||
product = var.product | ||
repo = var.repo | ||
organization = var.organization | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
output "lambda_arn" { | ||
description = "Lambda ARN" | ||
value = module.lambda_cron.lambda_arn | ||
} | ||
|
||
output "cron" { | ||
description = "Cron" | ||
value = module.lambda_cron.cron | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# terraform { | ||
# backend "s3" { | ||
# bucket = "my-bucket-tfstate" | ||
# key = "example-terraform-aws-lambda-cron-arm" | ||
# profile = "my-profile" | ||
# region = "us-east-1" | ||
# dynamodb_table = "terraform-lock" | ||
# } | ||
# } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# provider "aws" { | ||
# region = "us-east-1" | ||
# profile = "my-profile" | ||
# default_tags { | ||
# tags = { | ||
# product = var.product | ||
# environment = var.environment | ||
# repo = var.repo | ||
# organization = var.organization | ||
# } | ||
# } | ||
# } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
variable "environment" { | ||
description = "Environment (sharedtools, dev, staging, prod)" | ||
type = string | ||
|
||
default = "sharedtools" | ||
|
||
validation { | ||
condition = contains(["sharedtools", "dev", "staging", "prod"], var.environment) | ||
error_message = "The environment variable must be one of [sharedtools, dev, staging, prod]." | ||
} | ||
} | ||
|
||
variable "product" { | ||
description = "Tag used to group resources according to application" | ||
|
||
default = "ex-tf-lambda-cron-arm" | ||
|
||
validation { | ||
condition = can(regex("[a-z\\-]+", var.product)) | ||
error_message = "The product variable violates approved regex." | ||
} | ||
} | ||
|
||
variable "repo" { | ||
description = "Tag used to point to the repo using this module" | ||
|
||
default = "https://github.com/pbs/terraform-lambda-cron-module.git" | ||
|
||
validation { | ||
condition = can(regex("(?:git|ssh|https?|git@[-\\w.]+):(\\/\\/)?(.*?)(\\.git)(\\/?|\\#[-\\d\\w._]+?)$", var.repo)) | ||
error_message = "The repo variable violates approved regex." | ||
} | ||
} | ||
|
||
variable "organization" { | ||
description = "Organization using this module. Used to prefix tags so that they are easily identified as being from your organization" | ||
type = string | ||
|
||
default = "example" | ||
|
||
validation { | ||
condition = can(regex("[a-z\\-]+", var.organization)) | ||
error_message = "The organization variable violates approved regex." | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
backend.tf | ||
provider.tf |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
go 1.18 | ||
|
||
use ./tests |
Oops, something went wrong.