Package: lgw
Lambda GatewayConfigure an AWS Gateway in front of a Lambda function.UsageLambda Gateway.

Usage:
  lgw gw-deploy [--verbose] [--config-file=<cfg>]
  lgw gw-undeploy [--verbose] [--config-file=<cfg>]
  lgw domain-add [--verbose] [--config-file=<cfg>]
  lgw domain-remove [--verbose] [--config-file=<cfg>]
  lgw lambda-deploy [--verbose] [--config-file=<cfg>] [--lambda-file=<zip>]
  lgw lambda-invoke [--verbose] --lambda-name=<name> [--payload=<json>]
  lgw lambda-delete [--verbose] --lambda-name=<name>
  lgw lambda-archive [--verbose] [--config-file=<cfg>]

Options:
  -h --help             Show this screen.
  --version             Show version.
  --verbose             Enable DEBUG-level logging.
  --config-file=<cfg>   Override defaults with these settings.
  --lambda-file=<zip>   Path to zip file with executable lambda code.
  --lambda-name=<name>  Name of the lambda to invoke or delete.
  --payload=<json>      Path to a file of type json with data to send with the lambda invocation.Configuration ParametersConfiguration params are read in the following order, with the first read of it overriding subsequent configs:Read from environment.Read from.envfile in current folder.Read from flat file named via--config-fileCLI param.Read fromlgw.settings.defaults()Defaults are configured inlgw.settings.Related Task(s)KeyDescriptionDefaultAllAWS_REGIONAWS region.us-east-1gw-deploygw-undeploydomain-adddomain-removeAWS_API_NAMEName for the created API gateway.N/Agw-deployAWS_API_DESCRIPTIONDescription of the created API gateway.N/Agw-deployAWS_API_RESOURCE_PATHResource path for the API. By default it's a greedy path to proxy all requests.{proxy+}gw-deployAWS_API_DEPLOY_STAGEName for the stage that the API gets deployed to. E.g. "production"N/Agw-deployAWS_API_BINARY_TYPESListing of binary media types to configure the gateway as handling.  Example:image/jpeg,image/pngN/Agw-deployAWS_API_RESPONSE_MODELSResponse content-type: model mapping of the response body.  Typically used for mapping binary content-types.  For binary types specify:image/*=Emptyapplication/json=Emptygw-deployAWS_API_LAMBDA_INTEGRATION_ROLEARN of a role that grants permission to the API gateway to invoke a lambda.  Should haveAmazonAPIGatewayPushToCloudWatchLogsandAWSLambdaRolemanaged roles as permissions, andapigateway.amazonaws.comas a trusted entity.N/Adomain-addAWS_API_DOMAIN_NAMEA domain name configured in Route 53 that the API gateway can be mapped to.N/Adomain-addAWS_API_BASE_PATHBase path mapping to connect the domain name's CF distribution to the gateway.(none)domain-addAWS_API_DOMAIN_WAIT_UNTIL_AVAILABLEWaits until the custom domain name has been created.true, set to undefined to disable.domain-addAWS_ACM_CERTIFICATE_ARNARN of an HTTPS certificate to use for securing API requests.N/Agw-deploylambda-deployAWS_LAMBDA_NAMEName for the created Lambda.N/Alambda-deployAWS_LAMBDA_DESCRIPTIONDescription for the created LambdaN/Alambda-deployAWS_LAMBDA_HANDLERName of the handler function. e.g. "module.function"N/Alambda-deployAWS_LAMBDA_RUNTIMELambda runtime environment.N/Alambda-deployAWS_LAMBDA_CONNECTION_TIMEOUTConnection timeout in seconds.30lambda-deployAWS_LAMBDA_MEMORY_SIZEAmount of memory to allocate to the Lambda.3000lambda-deployAWS_LAMBDA_ARCHIVE_BUCKETS3 bucket to store lambda if zip file exceeds maximum upload size.N/Alambda-deployAWS_LAMBDA_ARCHIVE_KEYKey of the lambda archive in the configured bucket.N/Alambda-deployAWS_LAMBDA_EXECUTION_ROLE_ARNARN of a role with permissions to execute the Lambda.  Should haveAWSXrayWriteOnlyAccessandAWSLambdaBasicExecutionRolemanaged roles as permissions, andlambda.amazonaws.comas a trusted entity.N/Alambda-deployAWS_LAMBDA_VPC_SUBNETSList of subnets that the Lambda should run in. Format: "subnetA,subnetB,subnetC,...N/Alambda-deployAWS_LAMBDA_VPC_SECURITY_GROUPSList of security groups that control the Lambda's access. Format: "secgrpA,secgrpB,secgrpC,..."N/Alambda-deployAWS_LAMBDA_ENVIRONMENTVariables to inject into the Lambda's environment.  Format: "varA=valA;varB=valB;..."N/Alambda-deployAWS_LAMBDA_TAGSList of tags to categorize this Lambda.  Format: "tagA=valA;tagB=valB;..."N/Alambda-archiveAWS_LAMBDA_ARCHIVE_CONTEXT_DIRRoot directory of the project that will provide files to be copied into the Docker image.  If the directory ends with a trailing slash, then the root of the context will be the contents of the directory; otherwise the leaf directory will be at the root of the context..lambda-archiveAWS_LAMBDA_ARCHIVE_BUNDLE_DIRDestination directory to write Lambda archive zipfile../buildlambda-archiveAWS_LAMBDA_ARCHIVE_BUNDLE_NAMEFilename of Lambda archive zipfile.lambda-bundle.ziplambda-archiveAWS_LAMBDA_ARCHIVE_ADDL_FILESList of 2-tuples of files to copy into the context directory from the local computer. Format: "srcA,desA;srcB,desB;srcC,desC;..."N/Alambda-archiveAWS_LAMBDA_ARCHIVE_ADDL_PACKAGESList ofyumpackages to install in the Docker image.  Format: "packageA,packageB,packageC,..."Default installed by this script:gccopenssl-develbzip2-devellibffi-develpython37-pipReleasinggit flow release start x.y.z
# bump version
vi pyproject.toml lgw/version.py
git add pyproject.toml lgw/version.py
git commit -m 'bump version'
dephell deps convert
poetry publish --build
git flow release finish x.y.z