diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml
index a19ff831..06f8c6dc 100644
--- a/.github/workflows/pre-commit.yml
+++ b/.github/workflows/pre-commit.yml
@@ -7,8 +7,8 @@ on:
- master
env:
- TERRAFORM_DOCS_VERSION: v0.19.0
- TFLINT_VERSION: v0.53.0
+ TERRAFORM_DOCS_VERSION: v0.20.0
+ TFLINT_VERSION: v0.59.1
jobs:
collectInputs:
@@ -22,7 +22,7 @@ jobs:
- name: Get root directories
id: dirs
- uses: clowdhaus/terraform-composite-actions/directories@v1.9.0
+ uses: clowdhaus/terraform-composite-actions/directories@v1.13.0
preCommitMinVersions:
name: Min TF pre-commit
@@ -45,14 +45,14 @@ jobs:
- name: Terraform min/max versions
id: minMax
- uses: clowdhaus/terraform-min-max@v1.3.1
+ uses: clowdhaus/terraform-min-max@v2.1.0
with:
directory: ${{ matrix.directory }}
- name: Pre-commit Terraform ${{ steps.minMax.outputs.minVersion }}
# Run only validate pre-commit check on min version supported
if: ${{ matrix.directory != '.' }}
- uses: clowdhaus/terraform-composite-actions/pre-commit@v1.11.1
+ uses: clowdhaus/terraform-composite-actions/pre-commit@v1.13.0
with:
terraform-version: ${{ steps.minMax.outputs.minVersion }}
tflint-version: ${{ env.TFLINT_VERSION }}
@@ -61,7 +61,7 @@ jobs:
- name: Pre-commit Terraform ${{ steps.minMax.outputs.minVersion }}
# Run only validate pre-commit check on min version supported
if: ${{ matrix.directory == '.' }}
- uses: clowdhaus/terraform-composite-actions/pre-commit@v1.11.1
+ uses: clowdhaus/terraform-composite-actions/pre-commit@v1.13.0
with:
terraform-version: ${{ steps.minMax.outputs.minVersion }}
tflint-version: ${{ env.TFLINT_VERSION }}
@@ -88,10 +88,10 @@ jobs:
- name: Terraform min/max versions
id: minMax
- uses: clowdhaus/terraform-min-max@v1.3.1
+ uses: clowdhaus/terraform-min-max@v2.1.0
- name: Pre-commit Terraform ${{ steps.minMax.outputs.maxVersion }}
- uses: clowdhaus/terraform-composite-actions/pre-commit@v1.11.1
+ uses: clowdhaus/terraform-composite-actions/pre-commit@v1.13.0
with:
terraform-version: ${{ steps.minMax.outputs.maxVersion }}
tflint-version: ${{ env.TFLINT_VERSION }}
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 2fb09edb..53061c42 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -5,6 +5,10 @@ repos:
- id: terraform_fmt
- id: terraform_wrapper_module_for_each
- id: terraform_docs
+ exclude: |
+ (?x)^(
+ examples/.*
+ )$
args:
- "--args=--lockfile=false"
- id: terraform_tflint
@@ -23,6 +27,10 @@ repos:
- "--args=--only=terraform_standard_module_structure"
- "--args=--only=terraform_workspace_remote"
- id: terraform_validate
+ exclude: |
+ (?x)^(
+ examples/.*
+ )$
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
diff --git a/README.md b/README.md
index 3cc6f87d..80742506 100644
--- a/README.md
+++ b/README.md
@@ -434,7 +434,7 @@ source_path = [
]
```
-*Few notes:*
+_Few notes:_
- If you specify a source path as a string that references a folder and the runtime begins with `python` or `nodejs`, the build process will automatically build python and nodejs dependencies if `requirements.txt` or `package.json` file will be found in the source folder. If you want to customize this behavior, please use the object notation as explained below.
- All arguments except `path` are optional.
@@ -560,29 +560,35 @@ module "lambda_function_existing_package_from_remote_url" {
```
## How to use AWS SAM CLI to test Lambda Function?
+
[AWS SAM CLI](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-cli-command-reference.html) is an open source tool that help the developers to initiate, build, test, and deploy serverless
applications. SAM CLI tool [supports Terraform applications](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/what-is-terraform-support.html).
SAM CLI provides two ways of testing: local testing and testing on-cloud (Accelerate).
### Local Testing
+
Using SAM CLI, you can invoke the lambda functions defined in the terraform application locally using the [sam local invoke](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/sam-cli-command-reference-sam-local-invoke.html)
command, providing the function terraform address, or function name, and to set the `hook-name` to `terraform` to tell SAM CLI that the underlying project is a terraform application.
You can execute the `sam local invoke` command from your terraform application root directory as following:
+
```
sam local invoke --hook-name terraform module.hello_world_function.aws_lambda_function.this[0]
```
+
You can also pass an event to your lambda function, or overwrite its environment variables. Check [here](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-cli-using-invoke.html) for more information.
You can also invoke your lambda function in debugging mode, and step-through your lambda function source code locally in your preferred editor. Check [here](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-cli-using-debugging.html) for more information.
### Testing on-cloud (Accelerate)
+
You can use AWS SAM CLI to quickly test your application on your AWS development account. Using SAM Accelerate, you will be able to develop your lambda functions locally,
and once you save your updates, SAM CLI will update your development account with the updated Lambda functions. So, you can test it on cloud, and if there is any bug,
you can quickly update the code, and SAM CLI will take care of pushing it to the cloud. Check [here](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/accelerate.html) for more information about SAM Accelerate.
You can execute the `sam sync` command from your terraform application root directory as following:
+
```
sam sync --hook-name terraform --watch
```
@@ -660,13 +666,12 @@ Q4: What does this error mean - `"We currently do not support adding policies fo
- [1Mill/serverless-tf-examples](https://github.com/1Mill/serverless-tf-examples/tree/main/src)
-
## Requirements
| Name | Version |
|------|---------|
-| [terraform](#requirement\_terraform) | >= 1.0 |
+| [terraform](#requirement\_terraform) | >= 1.3 |
| [aws](#requirement\_aws) | >= 5.79 |
## Providers
@@ -870,6 +875,7 @@ tox -e py
```
You can also pass additional positional arguments to pytest which is used to run test, e.g. to make it verbose:
+
```
tox -e py -- -vvv
```
@@ -886,6 +892,6 @@ Apache 2 Licensed. See [LICENSE](https://github.com/terraform-aws-modules/terraf
## Additional information for users from Russia and Belarus
-* Russia has [illegally annexed Crimea in 2014](https://en.wikipedia.org/wiki/Annexation_of_Crimea_by_the_Russian_Federation) and [brought the war in Donbas](https://en.wikipedia.org/wiki/War_in_Donbas) followed by [full-scale invasion of Ukraine in 2022](https://en.wikipedia.org/wiki/2022_Russian_invasion_of_Ukraine).
-* Russia has brought sorrow and devastations to millions of Ukrainians, killed hundreds of innocent people, damaged thousands of buildings, and forced several million people to flee.
-* [Putin khuylo!](https://en.wikipedia.org/wiki/Putin_khuylo!)
+- Russia has [illegally annexed Crimea in 2014](https://en.wikipedia.org/wiki/Annexation_of_Crimea_by_the_Russian_Federation) and [brought the war in Donbas](https://en.wikipedia.org/wiki/War_in_Donbas) followed by [full-scale invasion of Ukraine in 2022](https://en.wikipedia.org/wiki/2022_Russian_invasion_of_Ukraine).
+- Russia has brought sorrow and devastations to millions of Ukrainians, killed hundreds of innocent people, damaged thousands of buildings, and forced several million people to flee.
+- [Putin khuylo!](https://en.wikipedia.org/wiki/Putin_khuylo!)
diff --git a/examples/alias/README.md b/examples/alias/README.md
index 90a74ad6..fa02dafa 100644
--- a/examples/alias/README.md
+++ b/examples/alias/README.md
@@ -15,13 +15,14 @@ $ terraform apply
Note that this example may create resources which cost money. Run `terraform destroy` when you don't need these resources.
+
## Requirements
-| Name | Version |
-|------|---------|
-| [terraform](#requirement\_terraform) | >= 1.0 |
-| [aws](#requirement\_aws) | >= 5.79 |
-| [random](#requirement\_random) | >= 2.0 |
+| Name | Version |
+| ------------------------------------------------------------------------ | ------- |
+| [terraform](#requirement_terraform) | >= 1.3 |
+| [aws](#requirement_aws) | >= 5.79 |
+| [random](#requirement_random) | >= 2.0 |
## Providers
@@ -42,4 +43,5 @@ No inputs.
## Outputs
No outputs.
+
diff --git a/examples/alias/versions.tf b/examples/alias/versions.tf
index 5cf868aa..683b643c 100644
--- a/examples/alias/versions.tf
+++ b/examples/alias/versions.tf
@@ -1,5 +1,5 @@
terraform {
- required_version = ">= 1.0"
+ required_version = ">= 1.3"
required_providers {
aws = {
diff --git a/examples/async/README.md b/examples/async/README.md
index 1ba10577..35ba2ae0 100644
--- a/examples/async/README.md
+++ b/examples/async/README.md
@@ -19,7 +19,7 @@ Note that this example may create resources which cost money. Run `terraform des
| Name | Version |
|------|---------|
-| [terraform](#requirement\_terraform) | >= 1.0 |
+| [terraform](#requirement\_terraform) | >= 1.3 |
| [aws](#requirement\_aws) | >= 5.79 |
| [random](#requirement\_random) | >= 2.0 |
diff --git a/examples/async/versions.tf b/examples/async/versions.tf
index 5cf868aa..683b643c 100644
--- a/examples/async/versions.tf
+++ b/examples/async/versions.tf
@@ -1,5 +1,5 @@
terraform {
- required_version = ">= 1.0"
+ required_version = ">= 1.3"
required_providers {
aws = {
diff --git a/examples/build-package/README.md b/examples/build-package/README.md
index f32d518a..5068123e 100644
--- a/examples/build-package/README.md
+++ b/examples/build-package/README.md
@@ -21,7 +21,7 @@ Note that this example may create resources which cost money. Run `terraform des
| Name | Version |
|------|---------|
-| [terraform](#requirement\_terraform) | >= 1.0 |
+| [terraform](#requirement\_terraform) | >= 1.3 |
| [aws](#requirement\_aws) | >= 5.79 |
| [random](#requirement\_random) | >= 2.0 |
diff --git a/examples/build-package/versions.tf b/examples/build-package/versions.tf
index 5cf868aa..683b643c 100644
--- a/examples/build-package/versions.tf
+++ b/examples/build-package/versions.tf
@@ -1,5 +1,5 @@
terraform {
- required_version = ">= 1.0"
+ required_version = ">= 1.3"
required_providers {
aws = {
diff --git a/examples/code-signing/README.md b/examples/code-signing/README.md
index fe3f51f4..ec8c0543 100644
--- a/examples/code-signing/README.md
+++ b/examples/code-signing/README.md
@@ -19,7 +19,7 @@ Note that this example may create resources which cost money. Run `terraform des
| Name | Version |
|------|---------|
-| [terraform](#requirement\_terraform) | >= 1.0 |
+| [terraform](#requirement\_terraform) | >= 1.3 |
| [aws](#requirement\_aws) | >= 5.79 |
| [random](#requirement\_random) | >= 2.0 |
diff --git a/examples/code-signing/versions.tf b/examples/code-signing/versions.tf
index 5cf868aa..683b643c 100644
--- a/examples/code-signing/versions.tf
+++ b/examples/code-signing/versions.tf
@@ -1,5 +1,5 @@
terraform {
- required_version = ">= 1.0"
+ required_version = ">= 1.3"
required_providers {
aws = {
diff --git a/examples/complete/README.md b/examples/complete/README.md
index 9acd1826..341bf073 100644
--- a/examples/complete/README.md
+++ b/examples/complete/README.md
@@ -2,7 +2,6 @@
Configuration in this directory creates AWS Lambda Function, Layers, Alias, and so on with the large variety of supported features showing this module in action.
-
## Usage
To run this example you need to execute:
@@ -20,7 +19,7 @@ Note that this example may create resources which cost money. Run `terraform des
| Name | Version |
|------|---------|
-| [terraform](#requirement\_terraform) | >= 1.0 |
+| [terraform](#requirement\_terraform) | >= 1.3 |
| [aws](#requirement\_aws) | >= 5.79 |
| [random](#requirement\_random) | >= 2.0 |
diff --git a/examples/complete/versions.tf b/examples/complete/versions.tf
index 5cf868aa..683b643c 100644
--- a/examples/complete/versions.tf
+++ b/examples/complete/versions.tf
@@ -1,5 +1,5 @@
terraform {
- required_version = ">= 1.0"
+ required_version = ">= 1.3"
required_providers {
aws = {
diff --git a/examples/container-image/README.md b/examples/container-image/README.md
index 77294b52..8659061a 100644
--- a/examples/container-image/README.md
+++ b/examples/container-image/README.md
@@ -19,7 +19,7 @@ Note that this example may create resources which cost money. Run `terraform des
| Name | Version |
|------|---------|
-| [terraform](#requirement\_terraform) | >= 1.0 |
+| [terraform](#requirement\_terraform) | >= 1.3 |
| [aws](#requirement\_aws) | >= 5.79 |
| [docker](#requirement\_docker) | >= 3.0 |
| [random](#requirement\_random) | >= 2.0 |
diff --git a/examples/container-image/versions.tf b/examples/container-image/versions.tf
index 5b04c7cd..d2d52e82 100644
--- a/examples/container-image/versions.tf
+++ b/examples/container-image/versions.tf
@@ -1,5 +1,5 @@
terraform {
- required_version = ">= 1.0"
+ required_version = ">= 1.3"
required_providers {
aws = {
diff --git a/examples/deploy/README.md b/examples/deploy/README.md
index d59bf7e4..2578ddaa 100644
--- a/examples/deploy/README.md
+++ b/examples/deploy/README.md
@@ -19,7 +19,7 @@ Note that this example may create resources which cost money. Run `terraform des
| Name | Version |
|------|---------|
-| [terraform](#requirement\_terraform) | >= 1.0 |
+| [terraform](#requirement\_terraform) | >= 1.3 |
| [aws](#requirement\_aws) | >= 5.79 |
| [random](#requirement\_random) | >= 2.0 |
diff --git a/examples/deploy/versions.tf b/examples/deploy/versions.tf
index 5cf868aa..683b643c 100644
--- a/examples/deploy/versions.tf
+++ b/examples/deploy/versions.tf
@@ -1,5 +1,5 @@
terraform {
- required_version = ">= 1.0"
+ required_version = ">= 1.3"
required_providers {
aws = {
diff --git a/examples/event-source-mapping/README.md b/examples/event-source-mapping/README.md
index 680831d9..e74fee87 100644
--- a/examples/event-source-mapping/README.md
+++ b/examples/event-source-mapping/README.md
@@ -19,7 +19,7 @@ Note that this example may create resources which cost money. Run `terraform des
| Name | Version |
|------|---------|
-| [terraform](#requirement\_terraform) | >= 1.0 |
+| [terraform](#requirement\_terraform) | >= 1.3 |
| [aws](#requirement\_aws) | >= 5.79 |
| [random](#requirement\_random) | >= 2.0 |
diff --git a/examples/event-source-mapping/versions.tf b/examples/event-source-mapping/versions.tf
index 5cf868aa..683b643c 100644
--- a/examples/event-source-mapping/versions.tf
+++ b/examples/event-source-mapping/versions.tf
@@ -1,5 +1,5 @@
terraform {
- required_version = ">= 1.0"
+ required_version = ">= 1.3"
required_providers {
aws = {
diff --git a/examples/multiple-regions/README.md b/examples/multiple-regions/README.md
index f712da63..a6a9cd34 100644
--- a/examples/multiple-regions/README.md
+++ b/examples/multiple-regions/README.md
@@ -2,7 +2,6 @@
Configuration in this directory creates AWS Lambda Functions in several regions with non-conflicting IAM roles and policies.
-
## Usage
To run this example you need to execute:
@@ -20,7 +19,7 @@ Note that this example may create resources which cost money. Run `terraform des
| Name | Version |
|------|---------|
-| [terraform](#requirement\_terraform) | >= 1.0 |
+| [terraform](#requirement\_terraform) | >= 1.3 |
| [aws](#requirement\_aws) | >= 5.79 |
| [random](#requirement\_random) | >= 2.0 |
diff --git a/examples/multiple-regions/versions.tf b/examples/multiple-regions/versions.tf
index 5cf868aa..683b643c 100644
--- a/examples/multiple-regions/versions.tf
+++ b/examples/multiple-regions/versions.tf
@@ -1,5 +1,5 @@
terraform {
- required_version = ">= 1.0"
+ required_version = ">= 1.3"
required_providers {
aws = {
diff --git a/examples/simple-cicd/README.md b/examples/simple-cicd/README.md
index 46c5d19a..e75febb1 100644
--- a/examples/simple-cicd/README.md
+++ b/examples/simple-cicd/README.md
@@ -21,7 +21,7 @@ Note that this example may create resources which cost money. Run `terraform des
| Name | Version |
|------|---------|
-| [terraform](#requirement\_terraform) | >= 1.0 |
+| [terraform](#requirement\_terraform) | >= 1.3 |
| [aws](#requirement\_aws) | >= 5.79 |
| [random](#requirement\_random) | >= 2.0 |
diff --git a/examples/simple-cicd/versions.tf b/examples/simple-cicd/versions.tf
index 5cf868aa..683b643c 100644
--- a/examples/simple-cicd/versions.tf
+++ b/examples/simple-cicd/versions.tf
@@ -1,5 +1,5 @@
terraform {
- required_version = ">= 1.0"
+ required_version = ">= 1.3"
required_providers {
aws = {
diff --git a/examples/simple/README.md b/examples/simple/README.md
index c70d3be0..319c629c 100644
--- a/examples/simple/README.md
+++ b/examples/simple/README.md
@@ -19,7 +19,7 @@ Note that this example may create resources which cost money. Run `terraform des
| Name | Version |
|------|---------|
-| [terraform](#requirement\_terraform) | >= 1.0 |
+| [terraform](#requirement\_terraform) | >= 1.3 |
| [aws](#requirement\_aws) | >= 5.79 |
| [random](#requirement\_random) | >= 2.0 |
diff --git a/examples/simple/versions.tf b/examples/simple/versions.tf
index 5cf868aa..683b643c 100644
--- a/examples/simple/versions.tf
+++ b/examples/simple/versions.tf
@@ -1,5 +1,5 @@
terraform {
- required_version = ">= 1.0"
+ required_version = ">= 1.3"
required_providers {
aws = {
diff --git a/examples/triggers/README.md b/examples/triggers/README.md
index 48021c95..4848c267 100644
--- a/examples/triggers/README.md
+++ b/examples/triggers/README.md
@@ -2,7 +2,6 @@
Configuration in this directory creates AWS Lambda Function with some triggers (eg. CloudWatch Events).
-
## Usage
To run this example you need to execute:
@@ -20,7 +19,7 @@ Note that this example may create resources which cost money. Run `terraform des
| Name | Version |
|------|---------|
-| [terraform](#requirement\_terraform) | >= 1.0 |
+| [terraform](#requirement\_terraform) | >= 1.3 |
| [aws](#requirement\_aws) | >= 5.79 |
| [random](#requirement\_random) | >= 2.0 |
diff --git a/examples/triggers/versions.tf b/examples/triggers/versions.tf
index 5cf868aa..683b643c 100644
--- a/examples/triggers/versions.tf
+++ b/examples/triggers/versions.tf
@@ -1,5 +1,5 @@
terraform {
- required_version = ">= 1.0"
+ required_version = ">= 1.3"
required_providers {
aws = {
diff --git a/examples/with-efs/README.md b/examples/with-efs/README.md
index c9e1c675..9b9f351a 100644
--- a/examples/with-efs/README.md
+++ b/examples/with-efs/README.md
@@ -2,7 +2,6 @@
Configuration in this directory creates AWS Lambda Function deployed with Elastic File System (EFS) attached.
-
## Usage
To run this example you need to execute:
@@ -20,7 +19,7 @@ Note that this example may create resources which cost money. Run `terraform des
| Name | Version |
|------|---------|
-| [terraform](#requirement\_terraform) | >= 1.0 |
+| [terraform](#requirement\_terraform) | >= 1.3 |
| [aws](#requirement\_aws) | >= 5.79 |
| [random](#requirement\_random) | >= 2.0 |
diff --git a/examples/with-efs/versions.tf b/examples/with-efs/versions.tf
index 5cf868aa..683b643c 100644
--- a/examples/with-efs/versions.tf
+++ b/examples/with-efs/versions.tf
@@ -1,5 +1,5 @@
terraform {
- required_version = ">= 1.0"
+ required_version = ">= 1.3"
required_providers {
aws = {
diff --git a/examples/with-vpc-s3-endpoint/README.md b/examples/with-vpc-s3-endpoint/README.md
index 773c418d..2a1dc3a3 100644
--- a/examples/with-vpc-s3-endpoint/README.md
+++ b/examples/with-vpc-s3-endpoint/README.md
@@ -21,7 +21,7 @@ Note that this example may create resources which cost money. Run `terraform des
| Name | Version |
|------|---------|
-| [terraform](#requirement\_terraform) | >= 1.0 |
+| [terraform](#requirement\_terraform) | >= 1.3 |
| [aws](#requirement\_aws) | >= 5.79 |
| [random](#requirement\_random) | >= 3.4 |
diff --git a/examples/with-vpc-s3-endpoint/versions.tf b/examples/with-vpc-s3-endpoint/versions.tf
index 7a4d860b..d5e4be7f 100644
--- a/examples/with-vpc-s3-endpoint/versions.tf
+++ b/examples/with-vpc-s3-endpoint/versions.tf
@@ -1,5 +1,5 @@
terraform {
- required_version = ">= 1.0"
+ required_version = ">= 1.3"
required_providers {
aws = {
diff --git a/examples/with-vpc/README.md b/examples/with-vpc/README.md
index cc1724bd..246bc9f3 100644
--- a/examples/with-vpc/README.md
+++ b/examples/with-vpc/README.md
@@ -21,7 +21,7 @@ Note that this example may create resources which cost money. Run `terraform des
| Name | Version |
|------|---------|
-| [terraform](#requirement\_terraform) | >= 1.0 |
+| [terraform](#requirement\_terraform) | >= 1.3 |
| [aws](#requirement\_aws) | >= 5.79 |
| [random](#requirement\_random) | >= 2.0 |
diff --git a/examples/with-vpc/versions.tf b/examples/with-vpc/versions.tf
index 5cf868aa..683b643c 100644
--- a/examples/with-vpc/versions.tf
+++ b/examples/with-vpc/versions.tf
@@ -1,5 +1,5 @@
terraform {
- required_version = ">= 1.0"
+ required_version = ">= 1.3"
required_providers {
aws = {
diff --git a/main.tf b/main.tf
index 4d6ab356..6fd0f005 100644
--- a/main.tf
+++ b/main.tf
@@ -143,6 +143,10 @@ resource "aws_lambda_function" "this" {
var.function_tags
)
+ lifecycle {
+ ignore_changes = [image_uri]
+ }
+
depends_on = [
# null_resource.archive,
# aws_s3_object.lambda_package,
diff --git a/modules/alias/README.md b/modules/alias/README.md
index 4d1871d3..ab63643c 100644
--- a/modules/alias/README.md
+++ b/modules/alias/README.md
@@ -6,7 +6,6 @@ Lambda Alias is required to do complex Lambda deployments, eg. using external to
This Terraform module is the part of [serverless.tf framework](https://github.com/antonbabenko/serverless.tf), which aims to simplify all operations when working with the serverless in Terraform.
-
## Usage
### Lambda Function and statically configured alias with the version of Lambda Function
@@ -83,7 +82,6 @@ module "alias_existing" {
}
```
-
## Conditional creation
Sometimes you need to have a way to create resources conditionally but Terraform does not allow usage of `count` inside `module` block, so the solution is to specify `create` arguments.
@@ -107,15 +105,14 @@ module "lambda" {
## Examples
-* [Alias](https://github.com/terraform-aws-modules/terraform-aws-lambda/tree/master/examples/alias) - Create Lambda function and aliases in various combinations with all supported features.
-
+- [Alias](https://github.com/terraform-aws-modules/terraform-aws-lambda/tree/master/examples/alias) - Create Lambda function and aliases in various combinations with all supported features.
## Requirements
| Name | Version |
|------|---------|
-| [terraform](#requirement\_terraform) | >= 1.0 |
+| [terraform](#requirement\_terraform) | >= 1.3 |
| [aws](#requirement\_aws) | >= 4.9 |
## Providers
@@ -185,7 +182,6 @@ Module managed by [Anton Babenko](https://github.com/antonbabenko). Check out [s
Please reach out to [Betajob](https://www.betajob.com/) if you are looking for commercial support for your Terraform, AWS, or serverless project.
-
## License
Apache 2 Licensed. See LICENSE for full details.
diff --git a/modules/alias/versions.tf b/modules/alias/versions.tf
index dbc484ad..2ab1e86d 100644
--- a/modules/alias/versions.tf
+++ b/modules/alias/versions.tf
@@ -1,5 +1,5 @@
terraform {
- required_version = ">= 1.0"
+ required_version = ">= 1.3"
required_providers {
aws = {
diff --git a/modules/deploy/README.md b/modules/deploy/README.md
index 6da1f6e8..b143cc3d 100644
--- a/modules/deploy/README.md
+++ b/modules/deploy/README.md
@@ -1,17 +1,17 @@
# Lambda Function Deployment via AWS CodeDeploy
-Terraform module, which creates Lambda alias as well as AWS CodeDeploy resources required to deploy.
+Terraform module, which creates Lambda alias as well as AWS CodeDeploy resources required to deploy.
This Terraform module is the part of [serverless.tf framework](https://github.com/antonbabenko/serverless.tf), which aims to simplify all operations when working with the serverless in Terraform.
This module can create AWS CodeDeploy application and deployment group, if necessary. If you have several functions, you probably want to create those resources externally, and then set `use_existing_deployment_group = true`.
During deployment this module does the following:
+
1. Create JSON object with required AppSpec configuration. Optionally, you can store deploy script for debug purposes by setting `save_deploy_script = true`.
1. Run [`aws deploy create-deployment` command](https://docs.aws.amazon.com/cli/latest/reference/deploy/create-deployment.html) if `create_deployment = true` and `run_deployment = true` was set.
1. After deployment is created, it can wait for the completion if `wait_deployment_completion = true`. Be aware, that Terraform will lock the execution and it can fail if it runs for a long period of time. Set this flag for fast deployments (eg, `deployment_config_name = "CodeDeployDefault.LambdaAllAtOnce"`).
-
## Usage
### Complete example of Lambda Function deployment via AWS CodeDeploy
@@ -92,15 +92,14 @@ module "lambda" {
## Examples
-* [Deploy](https://github.com/terraform-aws-modules/terraform-aws-lambda/tree/master/examples/deploy) - Creates Lambda Function, Alias, and all resources required to create deployments using AWS CodeDeploy.
-
+- [Deploy](https://github.com/terraform-aws-modules/terraform-aws-lambda/tree/master/examples/deploy) - Creates Lambda Function, Alias, and all resources required to create deployments using AWS CodeDeploy.
## Requirements
| Name | Version |
|------|---------|
-| [terraform](#requirement\_terraform) | >= 1.0 |
+| [terraform](#requirement\_terraform) | >= 1.3 |
| [aws](#requirement\_aws) | >= 3.35 |
| [local](#requirement\_local) | >= 1.0 |
| [null](#requirement\_null) | >= 2.0 |
@@ -199,7 +198,6 @@ Module managed by [Anton Babenko](https://github.com/antonbabenko). Check out [s
Please reach out to [Betajob](https://www.betajob.com/) if you are looking for commercial support for your Terraform, AWS, or serverless project.
-
## License
Apache 2 Licensed. See LICENSE for full details.
diff --git a/modules/deploy/versions.tf b/modules/deploy/versions.tf
index 5a82f93b..ce8278d8 100644
--- a/modules/deploy/versions.tf
+++ b/modules/deploy/versions.tf
@@ -1,5 +1,5 @@
terraform {
- required_version = ">= 1.0"
+ required_version = ">= 1.3"
required_providers {
aws = {
diff --git a/modules/docker-build/README.md b/modules/docker-build/README.md
index 0bfb506c..7ca52312 100644
--- a/modules/docker-build/README.md
+++ b/modules/docker-build/README.md
@@ -49,15 +49,14 @@ module "docker_image" {
## Examples
-* [Container Image](https://github.com/terraform-aws-modules/terraform-aws-lambda/tree/master/examples/container-image) - Creates Docker Image, ECR resository and deploys it Lambda Function.
-
+- [Container Image](https://github.com/terraform-aws-modules/terraform-aws-lambda/tree/master/examples/container-image) - Creates Docker Image, ECR resository and deploys it Lambda Function.
## Requirements
| Name | Version |
|------|---------|
-| [terraform](#requirement\_terraform) | >= 1.0 |
+| [terraform](#requirement\_terraform) | >= 1.3 |
| [aws](#requirement\_aws) | >= 4.22 |
| [docker](#requirement\_docker) | >= 3.0 |
| [null](#requirement\_null) | >= 2.0 |
@@ -125,7 +124,6 @@ Module managed by [Anton Babenko](https://github.com/antonbabenko). Check out [s
Please reach out to [Betajob](https://www.betajob.com/) if you are looking for commercial support for your Terraform, AWS, or serverless project.
-
## License
Apache 2 Licensed. See LICENSE for full details.
diff --git a/modules/docker-build/versions.tf b/modules/docker-build/versions.tf
index 93aadf1a..1b75252e 100644
--- a/modules/docker-build/versions.tf
+++ b/modules/docker-build/versions.tf
@@ -1,5 +1,5 @@
terraform {
- required_version = ">= 1.0"
+ required_version = ">= 1.3"
required_providers {
aws = {
diff --git a/versions.tf b/versions.tf
index 92cc6b76..345b82da 100644
--- a/versions.tf
+++ b/versions.tf
@@ -1,5 +1,5 @@
terraform {
- required_version = ">= 1.0"
+ required_version = ">= 1.3"
required_providers {
aws = {
diff --git a/wrappers/alias/versions.tf b/wrappers/alias/versions.tf
index dbc484ad..2ab1e86d 100644
--- a/wrappers/alias/versions.tf
+++ b/wrappers/alias/versions.tf
@@ -1,5 +1,5 @@
terraform {
- required_version = ">= 1.0"
+ required_version = ">= 1.3"
required_providers {
aws = {
diff --git a/wrappers/deploy/versions.tf b/wrappers/deploy/versions.tf
index 5a82f93b..ce8278d8 100644
--- a/wrappers/deploy/versions.tf
+++ b/wrappers/deploy/versions.tf
@@ -1,5 +1,5 @@
terraform {
- required_version = ">= 1.0"
+ required_version = ">= 1.3"
required_providers {
aws = {
diff --git a/wrappers/docker-build/versions.tf b/wrappers/docker-build/versions.tf
index 93aadf1a..1b75252e 100644
--- a/wrappers/docker-build/versions.tf
+++ b/wrappers/docker-build/versions.tf
@@ -1,5 +1,5 @@
terraform {
- required_version = ">= 1.0"
+ required_version = ">= 1.3"
required_providers {
aws = {
diff --git a/wrappers/versions.tf b/wrappers/versions.tf
index 92cc6b76..345b82da 100644
--- a/wrappers/versions.tf
+++ b/wrappers/versions.tf
@@ -1,5 +1,5 @@
terraform {
- required_version = ">= 1.0"
+ required_version = ">= 1.3"
required_providers {
aws = {