Skip to content

Commit

Permalink
chore: update documentation based on latest terraform-docs which in…
Browse files Browse the repository at this point in the history
…cludes module and resource sections (#108)
  • Loading branch information
bryantbiggs authored Feb 18, 2021
1 parent 2f89c5d commit 89337b2
Show file tree
Hide file tree
Showing 15 changed files with 248 additions and 19 deletions.
34 changes: 29 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,34 @@
.terraform
*.tfstate.backup
# Local .terraform directories
**/.terraform/*

# Terraform lockfile
.terraform.lock.hcl

# .tfstate files
*.tfstate
*.tfvars
*.tfstate.*
*.tfplan
.terraform.lock.hcl

builds/
# Crash log files
crash.log

# Exclude all .tfvars files, which are likely to contain sentitive data, such as
# password, private keys, and other secrets. These should not be part of version
# control as they are data points which are potentially sensitive and subject
# to change depending on the environment.
*.tfvars

# Ignore override files as they are usually used to override resources locally and so
# are not checked in
override.tf
override.tf.json
*_override.tf
*_override.tf.json

# Ignore CLI configuration files
.terraformrc
terraform.rc

# Lambda directories
builds/
__pycache__/
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ repos:
- '--args=--only=terraform_standard_module_structure'
- '--args=--only=terraform_workspace_remote'
- repo: git://github.com/pre-commit/pre-commit-hooks
rev: v3.3.0
rev: v3.4.0
hooks:
- id: check-merge-conflict
29 changes: 28 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -587,6 +587,34 @@ Q4: What does this error mean - `"We currently do not support adding policies fo
| local | >= 1 |
| null | >= 2 |

## Modules

No Modules.

## Resources

| Name |
|------|
| [aws_arn](https://registry.terraform.io/providers/hashicorp/aws/3.19/docs/data-sources/arn) |
| [aws_cloudwatch_log_group](https://registry.terraform.io/providers/hashicorp/aws/3.19/docs/data-sources/cloudwatch_log_group) |
| [aws_cloudwatch_log_group](https://registry.terraform.io/providers/hashicorp/aws/3.19/docs/resources/cloudwatch_log_group) |
| [aws_iam_policy](https://registry.terraform.io/providers/hashicorp/aws/3.19/docs/resources/iam_policy) |
| [aws_iam_policy](https://registry.terraform.io/providers/hashicorp/aws/3.19/docs/data-sources/iam_policy) |
| [aws_iam_policy_attachment](https://registry.terraform.io/providers/hashicorp/aws/3.19/docs/resources/iam_policy_attachment) |
| [aws_iam_policy_document](https://registry.terraform.io/providers/hashicorp/aws/3.19/docs/data-sources/iam_policy_document) |
| [aws_iam_role](https://registry.terraform.io/providers/hashicorp/aws/3.19/docs/resources/iam_role) |
| [aws_iam_role_policy_attachment](https://registry.terraform.io/providers/hashicorp/aws/3.19/docs/resources/iam_role_policy_attachment) |
| [aws_lambda_event_source_mapping](https://registry.terraform.io/providers/hashicorp/aws/3.19/docs/resources/lambda_event_source_mapping) |
| [aws_lambda_function](https://registry.terraform.io/providers/hashicorp/aws/3.19/docs/resources/lambda_function) |
| [aws_lambda_function_event_invoke_config](https://registry.terraform.io/providers/hashicorp/aws/3.19/docs/resources/lambda_function_event_invoke_config) |
| [aws_lambda_layer_version](https://registry.terraform.io/providers/hashicorp/aws/3.19/docs/resources/lambda_layer_version) |
| [aws_lambda_permission](https://registry.terraform.io/providers/hashicorp/aws/3.19/docs/resources/lambda_permission) |
| [aws_lambda_provisioned_concurrency_config](https://registry.terraform.io/providers/hashicorp/aws/3.19/docs/resources/lambda_provisioned_concurrency_config) |
| [aws_s3_bucket_object](https://registry.terraform.io/providers/hashicorp/aws/3.19/docs/resources/s3_bucket_object) |
| [external_external](https://registry.terraform.io/providers/hashicorp/external/1/docs/data-sources/external) |
| [local_file](https://registry.terraform.io/providers/hashicorp/local/1/docs/resources/file) |
| [null_resource](https://registry.terraform.io/providers/hashicorp/null/2/docs/resources/resource) |

## Inputs

| Name | Description | Type | Default | Required |
Expand Down Expand Up @@ -707,7 +735,6 @@ Q4: What does this error mean - `"We currently do not support adding policies fo
| this\_lambda\_layer\_layer\_arn | The ARN of the Lambda Layer without version |
| this\_lambda\_layer\_source\_code\_size | The size in bytes of the Lambda Layer .zip file |
| this\_lambda\_layer\_version | The Lambda Layer version |

<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->

## Authors
Expand Down
16 changes: 15 additions & 1 deletion examples/alias/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,21 @@ Note that this example may create resources which cost money. Run `terraform des
|------|---------|
| random | >= 2 |

## Modules

| Name | Source | Version |
|------|--------|---------|
| alias_existing | ../../modules/alias | |
| alias_no_refresh | ../../modules/alias | |
| alias_refresh | ../../modules/alias | |
| lambda_function | ../../ | |

## Resources

| Name |
|------|
| [random_pet](https://registry.terraform.io/providers/hashicorp/random/2/docs/resources/pet) |

## Inputs

No input.
Expand Down Expand Up @@ -60,5 +75,4 @@ No input.
| this\_lambda\_layer\_layer\_arn | The ARN of the Lambda Layer without version |
| this\_lambda\_layer\_source\_code\_size | The size in bytes of the Lambda Layer .zip file |
| this\_lambda\_layer\_version | The Lambda Layer version |

<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
15 changes: 14 additions & 1 deletion examples/async/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,20 @@ Note that this example may create resources which cost money. Run `terraform des
| aws | >= 3.19 |
| random | >= 2 |

## Modules

| Name | Source | Version |
|------|--------|---------|
| lambda_function | ../../ | |

## Resources

| Name |
|------|
| [aws_sns_topic](https://registry.terraform.io/providers/hashicorp/aws/3.19/docs/resources/sns_topic) |
| [aws_sqs_queue](https://registry.terraform.io/providers/hashicorp/aws/3.19/docs/resources/sqs_queue) |
| [random_pet](https://registry.terraform.io/providers/hashicorp/random/2/docs/resources/pet) |

## Inputs

No input.
Expand Down Expand Up @@ -57,5 +71,4 @@ No input.
| this\_lambda\_layer\_layer\_arn | The ARN of the Lambda Layer without version |
| this\_lambda\_layer\_source\_code\_size | The size in bytes of the Lambda Layer .zip file |
| this\_lambda\_layer\_version | The Lambda Layer version |

<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
22 changes: 21 additions & 1 deletion examples/build-package/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,32 @@ Note that this example may create resources which cost money. Run `terraform des
|------|---------|
| random | >= 2 |

## Modules

| Name | Source | Version |
|------|--------|---------|
| lambda_function_from_package | ../../ | |
| lambda_layer | ../../ | |
| package_dir | ../../ | |
| package_dir_without_pip_install | ../../ | |
| package_file | ../../ | |
| package_file_with_pip_requirements | ../../ | |
| package_with_commands_and_patterns | ../../ | |
| package_with_docker | ../../ | |
| package_with_patterns | ../../ | |
| package_with_pip_requirements_in_docker | ../../ | |

## Resources

| Name |
|------|
| [random_pet](https://registry.terraform.io/providers/hashicorp/random/2/docs/resources/pet) |

## Inputs

No input.

## Outputs

No output.

<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
21 changes: 20 additions & 1 deletion examples/complete/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,26 @@ Note that this example may create resources which cost money. Run `terraform des
| aws | >= 2.67 |
| random | >= 2 |

## Modules

| Name | Source | Version |
|------|--------|---------|
| disabled_lambda | ../../ | |
| lambda_at_edge | ../../ | |
| lambda_function | ../../ | |
| lambda_function_existing_package_local | ../../ | |
| lambda_layer_local | ../../ | |
| lambda_layer_s3 | ../../ | |
| lambda_with_provisioned_concurrency | ../../ | |
| s3_bucket | terraform-aws-modules/s3-bucket/aws | |

## Resources

| Name |
|------|
| [aws_sqs_queue](https://registry.terraform.io/providers/hashicorp/aws/2.67/docs/resources/sqs_queue) |
| [random_pet](https://registry.terraform.io/providers/hashicorp/random/2/docs/resources/pet) |

## Inputs

No input.
Expand Down Expand Up @@ -58,5 +78,4 @@ No input.
| this\_lambda\_layer\_layer\_arn | The ARN of the Lambda Layer without version |
| this\_lambda\_layer\_source\_code\_size | The size in bytes of the Lambda Layer .zip file |
| this\_lambda\_layer\_version | The Lambda Layer version |

<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
18 changes: 17 additions & 1 deletion examples/container-image/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,23 @@ Note that this example may create resources which cost money. Run `terraform des
| docker | >= 2.8.0 |
| random | >= 2 |

## Modules

| Name | Source | Version |
|------|--------|---------|
| lambda_function_from_container_image | ../../ | |

## Resources

| Name |
|------|
| [aws_caller_identity](https://registry.terraform.io/providers/hashicorp/aws/3.19/docs/data-sources/caller_identity) |
| [aws_ecr_authorization_token](https://registry.terraform.io/providers/hashicorp/aws/3.19/docs/data-sources/ecr_authorization_token) |
| [aws_ecr_repository](https://registry.terraform.io/providers/hashicorp/aws/3.19/docs/resources/ecr_repository) |
| [aws_region](https://registry.terraform.io/providers/hashicorp/aws/3.19/docs/data-sources/region) |
| [docker_registry_image](https://registry.terraform.io/providers/kreuzwerker/docker/2.8.0/docs/resources/registry_image) |
| [random_pet](https://registry.terraform.io/providers/hashicorp/random/2/docs/resources/pet) |

## Inputs

No input.
Expand All @@ -57,5 +74,4 @@ No input.
| this\_lambda\_layer\_layer\_arn | The ARN of the Lambda Layer without version |
| this\_lambda\_layer\_source\_code\_size | The size in bytes of the Lambda Layer .zip file |
| this\_lambda\_layer\_version | The Lambda Layer version |

<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
16 changes: 15 additions & 1 deletion examples/deploy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,21 @@ Note that this example may create resources which cost money. Run `terraform des
| aws | >= 3.19 |
| random | >= 2 |

## Modules

| Name | Source | Version |
|------|--------|---------|
| alias_refresh | ../../modules/alias | |
| deploy | ../../modules/deploy | |
| lambda_function | ../../ | |

## Resources

| Name |
|------|
| [aws_sns_topic](https://registry.terraform.io/providers/hashicorp/aws/3.19/docs/resources/sns_topic) |
| [random_pet](https://registry.terraform.io/providers/hashicorp/random/2/docs/resources/pet) |

## Inputs

No input.
Expand All @@ -47,5 +62,4 @@ No input.
| codedeploy\_iam\_role\_name | Name of IAM role used by CodeDeploy |
| deploy\_script | Path to a deployment script |
| script | Deployment script |

<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
15 changes: 14 additions & 1 deletion examples/multiple-regions/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,20 @@ Note that this example may create resources which cost money. Run `terraform des
| aws.us-east-1 | >= 3.19 |
| random | >= 2 |

## Modules

| Name | Source | Version |
|------|--------|---------|
| lambda_function | ../../ | |
| lambda_function_another_region | ../../ | |

## Resources

| Name |
|------|
| [aws_sqs_queue](https://registry.terraform.io/providers/hashicorp/aws/3.19/docs/resources/sqs_queue) |
| [random_pet](https://registry.terraform.io/providers/hashicorp/random/2/docs/resources/pet) |

## Inputs

No input.
Expand Down Expand Up @@ -59,5 +73,4 @@ No input.
| this\_lambda\_layer\_layer\_arn | The ARN of the Lambda Layer without version |
| this\_lambda\_layer\_source\_code\_size | The size in bytes of the Lambda Layer .zip file |
| this\_lambda\_layer\_version | The Lambda Layer version |

<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
13 changes: 12 additions & 1 deletion examples/simple/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,18 @@ Note that this example may create resources which cost money. Run `terraform des
|------|---------|
| random | >= 2 |

## Modules

| Name | Source | Version |
|------|--------|---------|
| lambda_function | ../../ | |

## Resources

| Name |
|------|
| [random_pet](https://registry.terraform.io/providers/hashicorp/random/2/docs/resources/pet) |

## Inputs

No input.
Expand Down Expand Up @@ -56,5 +68,4 @@ No input.
| this\_lambda\_layer\_layer\_arn | The ARN of the Lambda Layer without version |
| this\_lambda\_layer\_source\_code\_size | The size in bytes of the Lambda Layer .zip file |
| this\_lambda\_layer\_version | The Lambda Layer version |

<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
17 changes: 16 additions & 1 deletion examples/with-efs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,22 @@ Note that this example may create resources which cost money. Run `terraform des
| aws | >= 3.19 |
| random | >= 2 |

## Modules

| Name | Source | Version |
|------|--------|---------|
| lambda_function_with_efs | ../../ | |
| vpc | terraform-aws-modules/vpc/aws | |

## Resources

| Name |
|------|
| [aws_efs_access_point](https://registry.terraform.io/providers/hashicorp/aws/3.19/docs/resources/efs_access_point) |
| [aws_efs_file_system](https://registry.terraform.io/providers/hashicorp/aws/3.19/docs/resources/efs_file_system) |
| [aws_efs_mount_target](https://registry.terraform.io/providers/hashicorp/aws/3.19/docs/resources/efs_mount_target) |
| [random_pet](https://registry.terraform.io/providers/hashicorp/random/2/docs/resources/pet) |

## Inputs

No input.
Expand Down Expand Up @@ -58,5 +74,4 @@ No input.
| this\_lambda\_layer\_layer\_arn | The ARN of the Lambda Layer without version |
| this\_lambda\_layer\_source\_code\_size | The size in bytes of the Lambda Layer .zip file |
| this\_lambda\_layer\_version | The Lambda Layer version |

<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
14 changes: 13 additions & 1 deletion examples/with-vpc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,19 @@ Note that this example may create resources which cost money. Run `terraform des
|------|---------|
| random | >= 2 |

## Modules

| Name | Source | Version |
|------|--------|---------|
| lambda_function_in_vpc | ../../ | |
| vpc | terraform-aws-modules/vpc/aws | |

## Resources

| Name |
|------|
| [random_pet](https://registry.terraform.io/providers/hashicorp/random/2/docs/resources/pet) |

## Inputs

No input.
Expand Down Expand Up @@ -58,5 +71,4 @@ No input.
| this\_lambda\_layer\_layer\_arn | The ARN of the Lambda Layer without version |
| this\_lambda\_layer\_source\_code\_size | The size in bytes of the Lambda Layer .zip file |
| this\_lambda\_layer\_version | The Lambda Layer version |

<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
Loading

0 comments on commit 89337b2

Please sign in to comment.