-
Notifications
You must be signed in to change notification settings - Fork 2
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 #44 from kunduso/use-vpc-module
Use vpc module
- Loading branch information
Showing
15 changed files
with
282 additions
and
140 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
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,25 @@ | ||
#https://github.com/terraform-docs/gh-actions | ||
name: generate-terraform-docs | ||
on: | ||
- pull_request | ||
jobs: | ||
docs: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
#checkov:skip=CKV2_GHA_1: This is required to add Terraform module details to the ReadMe.md | ||
# Ensure top-level permissions are not set to write-all | ||
contents: write | ||
id-token: write | ||
pull-requests: write | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.event.pull_request.head.ref }} | ||
|
||
- name: Render terraform docs inside the README.md and push changes back to PR branch | ||
uses: terraform-docs/[email protected] | ||
with: | ||
working-dir: . | ||
output-file: README.md | ||
output-method: inject | ||
git-push: "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
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,10 +1,12 @@ | ||
#https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudwatch_log_group | ||
resource "aws_cloudwatch_log_group" "slow_log" { | ||
name = "/elasticache/${var.replication_group_id}/slow-log" | ||
name = "/elasticache/${var.name}/slow-log" | ||
retention_in_days = 365 | ||
kms_key_id = aws_kms_key.encryption_rest.arn | ||
} | ||
#https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudwatch_log_group | ||
resource "aws_cloudwatch_log_group" "engine_log" { | ||
name = "/elasticache/${var.replication_group_id}/engine-log" | ||
name = "/elasticache/${var.name}/engine-log" | ||
retention_in_days = 365 | ||
kms_key_id = aws_kms_key.encryption_rest.arn | ||
} |
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
Oops, something went wrong.