Skip to content

Commit da9b781

Browse files
authored
chore: Updated readme to reflect the new name of the sam cli hook-package-id option (#375)
1 parent f1512a5 commit da9b781

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -561,11 +561,11 @@ SAM CLI provides two ways of testing: local testing and testing on-cloud (Accele
561561

562562
### Local Testing
563563
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)
564-
command, providing the function terraform address, or function name, and to set the `hook-package-id` to `terraform` to tell SAM CLI that the underlying project is a terraform application.
564+
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.
565565

566566
You can execute the `sam local invoke` command from your terraform application root directory as following:
567567
```
568-
sam local invoke --hook-package-id terraform module.hello_world_function.aws_lambda_function.this[0]
568+
sam local invoke --hook-name terraform module.hello_world_function.aws_lambda_function.this[0]
569569
```
570570
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.
571571

@@ -578,7 +578,7 @@ you can quickly update the code, and SAM CLI will take care of pushing it to the
578578

579579
You can execute the `sam sync` command from your terraform application root directory as following:
580580
```
581-
sam sync --hook-package-id terraform --watch
581+
sam sync --hook-name terraform --watch
582582
```
583583

584584
## <a name="deployment"></a> How to deploy and manage Lambda Functions?

0 commit comments

Comments
 (0)