Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,18 @@ module "lambda-datadog" {

### Lambda Function

Arguments available in the [aws_lambda_function](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/lambda_function) resource are available in this Terraform module. Lambda functions created from container images are not supported by this module.

Arguments defined as blocks in the `aws_lambda_function` resource are redefined as variables with their nested arguments.
- Arguments available in the [aws_lambda_function](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/lambda_function) resource are available in this Terraform module. Lambda functions created from container images are not supported by this module.
- To prevent Terraform from re-creating the resource, add a `moved` block as shown below:

```tf
moved {
from = aws_lambda_function.{your_lambda_function}
to = module.{your_lambda_function}.aws_lambda_function.this
}
```

For example, in `aws_lambda_function`, `environment` is defined as a block with a `variables` argument. In this Terraform module, the value for the `environment_variables` is passed to the `environment.variables` argument in `aws_lambda_function`. See [variables.tf](variables.tf) for a complete list of variables in this module.
- Arguments defined as blocks in the `aws_lambda_function` resource are redefined as variables with their nested arguments.
* For example, in `aws_lambda_function`, `environment` is defined as a block with a `variables` argument. In this Terraform module, the value for the `environment_variables` is passed to the `environment.variables` argument in `aws_lambda_function`. See [variables.tf](variables.tf) for a complete list of variables in this module.

#### aws_lambda_function resource
```
Expand Down