# lambdaDeploy

Deploy an AWS Lambda function. It is presently a wrapper around a [python deployment script.](https://github.com/theorchard/python-deployment-utils/blob/master/lambda/update_containerized_lambda.py)

## Parameters

| Name                         | Description                                                                                                                  | Type           | Default                         | Required |
|------------------------------|------------------------------------------------------------------------------------------------------------------------------|----------------|---------------------------------|----------|
| aliasName                    | The alias to point to the new Lambda version if publishing a new version.                                                    | `String`       | n/a                             | no       |
| awsDeploymentRoleName        | The name of the role to use to deploy the Lambda function. Must be specified if `awsDeploymentTargetAccountId` is specified. | `String`       | n/a                             | no       |
| awsDeploymentTargetAccountId | The ID of the account to deploy to.                                                                                          | `String`       | n/a                             | no       |                                                                                          
| awsRegions                   | A list of AWS regions containing Lambda functions.                                                                           | `List<String>` | n/a                             | yes      |
| ecrRegistryAccountId         | The ID of the account containing the ECR repository.                                                                         | `String`       | n/a                             | no       |
| ecrRegistryRegion            | The AWS region of the ECR repository.                                                                                        | `String`       | n/a                             | no       |
| environment                  | The name of the environment to deploy to.                                                                                    | `String`       | n/a                             | no       |
| functionName                 | The name of the function to deploy.                                                                                          | `String`       | `"${environment}-${imageName}"` | no       |
| imageName                    | The name of the ECR repository / image to deploy.                                                                            | `String`       | n/a                             | yes      |
| imageTag                     | The image tag to deploy.                                                                                                     | `String`       | n/a                             | yes      |
| publishVersion               | Whether or not to publish a new Lambda version.                                                                              | `boolean`      | `false`                         | no       |
