Skip to content

Commit

Permalink
Merge pull request #8 from trussworks/ren-circleci-to-gha
Browse files Browse the repository at this point in the history
remove circleci config and create validate gha
  • Loading branch information
ralren committed Sep 26, 2022
2 parents 77f976c + f2feac7 commit 1c9268e
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 47 deletions.
29 changes: 0 additions & 29 deletions .circleci/config.yml

This file was deleted.

13 changes: 13 additions & 0 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: validate

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
validate:
uses: trussworks/shared-actions/.github/workflows/validate.yml@main
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
repos:
- repo: git://github.com/pre-commit/pre-commit-hooks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: check-json
Expand All @@ -11,13 +11,13 @@ repos:
- --autofix
- id: trailing-whitespace

- repo: git://github.com/igorshubovych/markdownlint-cli
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.23.2
hooks:
- id: markdownlint

- repo: git://github.com/antonbabenko/pre-commit-terraform
rev: v1.37.0
- repo: https://github.com/antonbabenko/pre-commit-terraform
rev: v1.75.0
hooks:
- id: terraform_docs
- id: terraform_fmt
42 changes: 28 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,31 +37,45 @@ module "sftp_user_alice" {

| Name | Version |
|------|---------|
| terraform | >= 0.12.0 |
| aws | >= 2.70 |
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.12.0 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 2.70 |

## Providers

| Name | Version |
|------|---------|
| aws | >= 2.70 |
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 2.70 |

## Modules

No modules.

## Resources

| Name | Type |
|------|------|
| [aws_iam_role.main](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role) | resource |
| [aws_iam_role_policy.main](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/iam_role_policy) | resource |
| [aws_transfer_ssh_key.main](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/transfer_ssh_key) | resource |
| [aws_transfer_user.main](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/transfer_user) | resource |
| [aws_iam_policy_document.assume_role_policy_doc](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) | data source |
| [aws_iam_policy_document.role_policy_doc](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) | data source |

## Inputs

| Name | Description | Type | Default | Required |
|------|-------------|------|---------|:--------:|
| allowed\_actions | A list of allowed actions for objects in the backend bucket. | `list(string)` | <pre>[<br> "s3:GetObject",<br> "s3:GetObjectACL",<br> "s3:GetObjectVersion",<br> "s3:PutObject",<br> "s3:PutObjectACL",<br> "s3:DeleteObject",<br> "s3:DeleteObjectVersion"<br>]</pre> | no |
| home\_directory\_bucket | The S3 Bucket to use as the home directory | <pre>object({<br> arn = string<br> id = string<br> })</pre> | n/a | yes |
| home\_directory\_key\_prefix | The home directory key prefix | `string` | `""` | no |
| role\_arn | The name of the IAM role for the SFTP user. Either `role_name` or `role_arn` must be provided, not both. | `string` | `""` | no |
| role\_name | The name of the IAM role for the SFTP user. Either `role_name` or `role_arn` must be provided, not both. | `string` | `""` | no |
| sftp\_server\_id | Server ID of the AWS Transfer Server (aka SFTP Server) | `string` | n/a | yes |
| ssh\_public\_keys | Public SSH key for the user. If list is empty, then no SSH Keys are setup to authenticate as the user. | `list(string)` | `[]` | no |
| tags | A mapping of tags to assign to all resources | `map(string)` | `{}` | no |
| user\_name | The name of the user | `string` | n/a | yes |
| <a name="input_allowed_actions"></a> [allowed\_actions](#input\_allowed\_actions) | A list of allowed actions for objects in the backend bucket. | `list(string)` | <pre>[<br> "s3:GetObject",<br> "s3:GetObjectACL",<br> "s3:GetObjectVersion",<br> "s3:PutObject",<br> "s3:PutObjectACL",<br> "s3:DeleteObject",<br> "s3:DeleteObjectVersion"<br>]</pre> | no |
| <a name="input_home_directory_bucket"></a> [home\_directory\_bucket](#input\_home\_directory\_bucket) | The S3 Bucket to use as the home directory | <pre>object({<br> arn = string<br> id = string<br> })</pre> | n/a | yes |
| <a name="input_home_directory_key_prefix"></a> [home\_directory\_key\_prefix](#input\_home\_directory\_key\_prefix) | The home directory key prefix | `string` | `""` | no |
| <a name="input_role_arn"></a> [role\_arn](#input\_role\_arn) | The name of the IAM role for the SFTP user. Either `role_name` or `role_arn` must be provided, not both. | `string` | `""` | no |
| <a name="input_role_name"></a> [role\_name](#input\_role\_name) | The name of the IAM role for the SFTP user. Either `role_name` or `role_arn` must be provided, not both. | `string` | `""` | no |
| <a name="input_sftp_server_id"></a> [sftp\_server\_id](#input\_sftp\_server\_id) | Server ID of the AWS Transfer Server (aka SFTP Server) | `string` | n/a | yes |
| <a name="input_ssh_public_keys"></a> [ssh\_public\_keys](#input\_ssh\_public\_keys) | Public SSH key for the user. If list is empty, then no SSH Keys are setup to authenticate as the user. | `list(string)` | `[]` | no |
| <a name="input_tags"></a> [tags](#input\_tags) | A mapping of tags to assign to all resources | `map(string)` | `{}` | no |
| <a name="input_user_name"></a> [user\_name](#input\_user\_name) | The name of the user | `string` | n/a | yes |

## Outputs

No output.

No outputs.
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->

0 comments on commit 1c9268e

Please sign in to comment.