-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add login banner and protocol details * add support for choosing sftp server storage type * switch to latest security policy * add precommit, update readme and workflows * update readme * add checkov skip statement * add support for json logging * remove commented variable * update aws provider version
- Loading branch information
1 parent
4d19f39
commit bfc2650
Showing
14 changed files
with
296 additions
and
85 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
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,35 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.4.0 | ||
hooks: | ||
- id: trailing-whitespace | ||
- id: end-of-file-fixer | ||
- id: check-yaml | ||
- id: check-json | ||
- id: check-symlinks | ||
- id: detect-private-key | ||
- id: no-commit-to-branch | ||
- repo: https://github.com/gitleaks/gitleaks | ||
rev: v8.16.1 | ||
hooks: | ||
- id: gitleaks | ||
- repo: https://github.com/antonbabenko/pre-commit-terraform | ||
rev: v1.81.0 | ||
hooks: | ||
- id: terraform_fmt | ||
- id: terraform_validate | ||
exclude: examples/ | ||
- id: terraform_tflint | ||
exclude: examples/ | ||
args: | ||
- --args=--config=__GIT_WORKING_DIR__/.tflint.hcl --fix | ||
- repo: https://github.com/bridgecrewio/checkov.git | ||
rev: "2.3.314" | ||
hooks: | ||
- id: checkov | ||
args: ["--quiet", "--compact", "--framework", "terraform", "--download-external-modules", "false", "--skip-path", "examples"] | ||
- repo: https://github.com/terraform-docs/terraform-docs | ||
rev: v0.16.0 | ||
hooks: | ||
- id: terraform-docs-go | ||
args: ["."] |
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,63 @@ | ||
formatter: "markdown table" # this is required | ||
|
||
header-from: .tf-header.md | ||
footer-from: .tf-footer.md | ||
|
||
recursive: | ||
enabled: false | ||
path: modules | ||
|
||
sections: | ||
hide: | ||
- resources | ||
- data-sources | ||
- modules | ||
- providers | ||
|
||
content: |- | ||
{{ .Header }} | ||
# Usage Instructions | ||
## Example | ||
```hcl | ||
{{ include "examples/default.tf" }} | ||
``` | ||
{{ .Requirements }} | ||
{{ .Inputs }} | ||
{{ .Outputs }} | ||
{{ .Footer }} | ||
output: | ||
file: README.md | ||
mode: inject | ||
template: |- | ||
<!-- BEGIN_TF_DOCS --> | ||
{{ .Content }} | ||
<!-- END_TF_DOCS --> | ||
output-values: | ||
enabled: false | ||
from: "" | ||
|
||
sort: | ||
enabled: true | ||
by: name | ||
|
||
settings: | ||
anchor: false | ||
color: true | ||
default: true | ||
description: false | ||
escape: false | ||
hide-empty: false | ||
html: false | ||
indent: 2 | ||
lockfile: false # because .terraform.lock.hcl is not checked in the repository | ||
read-comments: true | ||
required: true | ||
sensitive: false | ||
type: true |
Empty file.
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 @@ | ||
# Create a managed public or internal facing SFTP server using AWS Transfer service | ||
|
||
![License](https://img.shields.io/github/license/terrablocks/aws-sftp-server?style=for-the-badge) ![Tests](https://img.shields.io/github/actions/workflow/status/terrablocks/aws-sftp-server/tests.yml?branch=main&label=Test&style=for-the-badge) ![Checkov](https://img.shields.io/github/actions/workflow/status/terrablocks/aws-sftp-server/checkov.yml?branch=main&label=Checkov&style=for-the-badge) ![Commit](https://img.shields.io/github/last-commit/terrablocks/aws-sftp-server?style=for-the-badge) ![Release](https://img.shields.io/github/v/release/terrablocks/aws-sftp-server?style=for-the-badge) | ||
|
||
This terraform module will deploy the following services: | ||
- IAM | ||
- Role | ||
- Role Policy | ||
- Route53 | ||
- DNS Record | ||
- Transfer | ||
- Server | ||
- User | ||
- SSH Key |
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,10 @@ | ||
plugin "aws" { | ||
enabled = true | ||
version = "0.24.3" | ||
source = "github.com/terraform-linters/tflint-ruleset-aws" | ||
} | ||
|
||
plugin "terraform" { | ||
enabled = true | ||
preset = "all" | ||
} |
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,3 @@ | ||
module "sftp" { | ||
source = "github.com/terrablocks/aws-sftp-server.git" # Always use `ref` to point module to a specific version or hash | ||
} |
Oops, something went wrong.