Lambda
Bases: DuploResourceV2
Manage Duplo Lambdas
Duplo Lambdas are serverless functions that run in response to events.
Commands
apply
Apply a service.
Parameters:
--file, -f, --cli-input
A file to read the input from
--wait, -w
Wait for the operation to complete
create
Create a new tenant.
CLI Usage
Contents of thelambda.yaml file
Returns:
| Name | Type | Description |
|---|---|---|
message |
dict
|
A success message. |
Parameters:
--file, -f, --cli-input
A file to read the input from
delete
find
list
List Lambdas.
List all of the tenants in the current tenant.
Returns:
| Name | Type | Description |
|---|---|---|
list |
list
|
A list of all lambdas in the current subscription. |
update_env
Update the environment variables of a lambda. If lambda has no environment variables set, use -strat replace to set new values.
Basic CLI Use
Parameters:
name
positional
The resource name
--setvar, -V
repeatable
a key and value to set as an environment variable
--strategy, -strat
The merge strategy to use. Valid options are "merge" or "replace". Default is merge.
merge
replace
--deletevar, -D
repeatable
a key to delete from the environment variables