Skip to content

Commit 3a08bf0

Browse files
deniseyuRonRicardo
authored andcommitted
Add callout that the lambda function needs to be predefined
1 parent 34a3131 commit 3a08bf0

File tree

1 file changed

+2
-2
lines changed
  • content/terraform/v1.14.x (beta)/docs/language/block

1 file changed

+2
-2
lines changed

content/terraform/v1.14.x (beta)/docs/language/block/action.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ The following examples show how to write configuration for common use cases.
193193

194194
### Define an action
195195

196-
The following example adds an `aws_lambda_invoke` action. You can invoke an action using the CLI or configure Terraform to invoke the action during a resource lifecycle state.
196+
The following example adds an `aws_lambda_invoke` action. You can invoke an action using the CLI or configure Terraform to invoke the action during a resource lifecycle state.
197197

198198
```hcl
199199
action "aws_lambda_invoke" "example" {
@@ -207,7 +207,7 @@ action "aws_lambda_invoke" "example" {
207207
}
208208
```
209209

210-
"my_function" needs to be defined on AWS.
210+
`my_function` needs to be defined elsewhere in configuration, using the AWS Lambda Function resource. Please refer to the [AWS Provider documentation to provision an AWS Lambda Function](https://registry.terraform.io/providers/hashicorp/aws/6.14.0/docs/resources/lambda_function#basic-function-with-nodejs).
211211

212212
### Select an alternate provider configuration
213213

0 commit comments

Comments
 (0)