Skip to content

Commit

Permalink
Fixed spelling mistakes
Browse files Browse the repository at this point in the history
  • Loading branch information
antonbabenko committed Nov 4, 2019
1 parent da72112 commit 8873c4a
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 8 deletions.
5 changes: 5 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@ repos:
- repo: git://github.com/pre-commit/pre-commit-hooks
rev: v2.4.0
hooks:
- id: check-ast
- id: check-merge-conflict
- id: requirements-txt-fixer
- id: end-of-file-fixer
- id: flake8
#- repo: git://github.com/codespell-project/codespell
# rev: v1.16.0
# hooks:
# - id: codespell
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,13 @@ $ serverless deploy function --function generate-cloudcraft --stage prod

* Serverless framework version shouldn't be newer than 1.51.0 unless [this](https://github.com/serverless/serverless/issues/6752) and [this](https://github.com/UnitedIncome/serverless-python-requirements/issues/414) bugs are fixed

## Spellchecker

```
$ brew install codespell
$ pre-commit try-repo git://github.com/codespell-project/codespell codespell --all-files
```

## Authors

This project is created and maintained by [Anton Babenko](https://github.com/antonbabenko) with the help from [different contributors](https://github.com/antonbabenko/modules.tf-lambda/graphs/contributors).
Expand Down
4 changes: 2 additions & 2 deletions modules-metadata/vpc.json
Original file line number Diff line number Diff line change
Expand Up @@ -813,12 +813,12 @@
},
"enable_transfer_endpoint": {
"default": false,
"description": "Should be true if you want to provision a Transfer endpoint tothe VPC",
"description": "Should be true if you want to provision a Transfer endpoint to the VPC",
"type": "bool"
},
"enable_transferserver_endpoint": {
"default": false,
"description": "Should be true if you want to provision a Transer Server endpoint to the VPC",
"description": "Should be true if you want to provision a Transfer Server endpoint to the VPC",
"type": "bool"
},
"enable_vpn_gateway": {
Expand Down
4 changes: 2 additions & 2 deletions modules-metadata/vpc_variables.json
Original file line number Diff line number Diff line change
Expand Up @@ -813,12 +813,12 @@
},
"enable_transfer_endpoint": {
"default": false,
"description": "Should be true if you want to provision a Transfer endpoint tothe VPC",
"description": "Should be true if you want to provision a Transfer endpoint to the VPC",
"type": "bool"
},
"enable_transferserver_endpoint": {
"default": false,
"description": "Should be true if you want to provision a Transer Server endpoint to the VPC",
"description": "Should be true if you want to provision a Transfer Server endpoint to the VPC",
"type": "bool"
},
"enable_vpn_gateway": {
Expand Down
2 changes: 1 addition & 1 deletion modulestf/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ def convert_graph_to_modulestf_config(graph): # noqa: C901

resources.append(r.content())

# Add aws-data if there was a node with dependant type
# Add aws-data if there was a node with dependent type
if list({"vpc", "ec2"} & node_types):
r = Resource("aws-data", "aws-data", None)
resources.append(r.content())
Expand Down
2 changes: 1 addition & 1 deletion modulestf/modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def update_template_variables(var):
"variables": update_template_variables(load_local_json("../modules-metadata/security-group.json")),
},
"vpc": {
"source": "git::[email protected]:terraform-aws-modules/terraform-aws-vpc.git?ref=v2.17.0",
"source": "git::[email protected]:terraform-aws-modules/terraform-aws-vpc.git?ref=v2.18.0",
"variables": update_template_variables(load_local_json("../modules-metadata/vpc.json")),
},
"s3-bucket": {
Expand Down
7 changes: 6 additions & 1 deletion templates/root/template/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Infrastructure code for "{{ cookiecutter.source_name }}"

This directory contains automatically generated Terraform infrastructure code from blueprint created using [cloudcraft.co](https://cloudcraft.co/app).
This repository contains Terraform infrastructure as Terraform code which was automatically generated from blueprint created using [cloudcraft.co](https://cloudcraft.co/app).

Infrastructure consists of multiple layers (
{%- for value in cookiecutter.dirs.values() -%}
Expand Down Expand Up @@ -34,6 +34,11 @@ Alternatively, you can edit `common/main_providers.tf` and use another authentic

## How to use it?

1. Configure access to AWS account
1. Create infrastructure
1. Update infrastructure


First, you should run `chmod +x common/scripts/update_dynamic_values_in_tfvars.sh`, review and specify all required arguments for each layer. Run this to see all errors:

$ terragrunt validate-all --terragrunt-ignore-dependency-errors |& grep -C 3 "Error: "
Expand Down
2 changes: 1 addition & 1 deletion templates/terragrunt-single-layer/terragrunt.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ inputs = {
{%- endif -%}


{# printing only required variables (required = no default value) and those which were set explicitely #}
{# printing only required variables (required = no default value) and those which were set explicitly #}
{%- if value.default is not defined or tmp_value != None -%}
# {{ value.description|default() }}
# type: {{ value.value_type }}
Expand Down

0 comments on commit 8873c4a

Please sign in to comment.