forked from trussworks/terraform-aws-logs
-
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.
Upgrade to tf 12 syntax; add terratest plumbing
- Loading branch information
1 parent
6ddae24
commit 503c532
Showing
16 changed files
with
481 additions
and
72 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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
version: 1 | ||
update_configs: | ||
# Keep go modules up to date, batching pull requests weekly | ||
- package_manager: "go:modules" | ||
directory: "/" | ||
update_schedule: "weekly" | ||
# Apply default reviewer @trussworks/waddlers group to PRs | ||
default_reviewers: | ||
- "trussworks/waddlers" | ||
# Apply dependencies label to PRs | ||
default_labels: | ||
- "dependencies" |
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,5 @@ | ||
.DS_Store | ||
.terraform | ||
terraform.tfstate | ||
terraform.tfstate.backup | ||
terraform.tfstate.*.backup |
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,6 @@ | ||
linters: | ||
enable: | ||
- gosec | ||
- golint | ||
- gofmt | ||
- goimports |
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 was deleted.
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,17 @@ | ||
.PHONY: ensure_pre_commit | ||
ensure_pre_commit: .git/hooks/pre-commit ## Ensure pre-commit is installed | ||
.git/hooks/pre-commit: /usr/local/bin/pre-commit | ||
pre-commit install | ||
pre-commit install-hooks | ||
|
||
.PHONY: pre_commit_tests | ||
pre_commit_tests: ensure_pre_commit ## Run pre-commit tests | ||
pre-commit run --all-files | ||
|
||
.PHONY: test | ||
test: pre_commit_tests | ||
go test -count 1 -v -timeout 90m ./test/... | ||
|
||
.PHONY: clean | ||
clean: | ||
rm -f .*.stamp |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module "aws_logs" { | ||
source = "../../" | ||
s3_bucket_name = var.logs_bucket | ||
region = var.region | ||
} |
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,7 @@ | ||
variable "logs_bucket" { | ||
type = string | ||
} | ||
|
||
variable "region" { | ||
type = string | ||
} |
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,5 @@ | ||
module github.com/trussworks/terraform-aws-logs | ||
|
||
go 1.13 | ||
|
||
require github.com/gruntwork-io/terratest v0.22.2 |
Oops, something went wrong.