Deploy an AWS Lambda using Terraform.
- name: Lambda Deploy
uses: aplaceformom/terraform-lambda-action@master
with:
workspace: dev
project: examples
owner: MyTeam
email: myteam@mydomain.org
public: true
debug: falseTerraform Workspace
- required: true
Project this Service is part of.
- required: true
Project owner/team.
- required: true
Project email address.
- required: true
Lambda function name.
- required: true
AWS region to deploy to.
- required: false
- default: us-west-2
Programming language to use for the lambda. Valid values: https://docs.aws.amazon.com/lambda/latest/dg/API_CreateFunction.html#SSS-CreateFunction-request-Runtime
- required: true
Path to the function's deployment package within the local filesystem.
- required: true
JSON map of environment variables to configure on the lambda
- required: false
Amount of memory in MB your Lambda Function can use at runtime
- required: false
- default: 128
The amount of time your Lambda Function has to run in seconds
- required: false
- default: 3
A comma separated list of IAM policies ARNs to be attached to the auto-created lambda role
- required: false
A comma separated list of subnet IDs associated with the Lambda function. (Required for vpc_config ONLY)
- required: false
A comma separated list of security group IDs associated with the Lambda function. (Required for vpc_config ONLY)
- required: false
Boolean to configure the lambda to fire based on a cloudwatch rule
- required: false
- default: false
Name attribute of the cloudwatch event to fire off of
- required: false
ARN attribute of the cloudwatch event to fire off of
- required: false
| Context | Description |
|---|---|
| lambda_name | Name of the created function |
| lambda_arn | ARN of the created function |
| lambda_invoke_arn | ARN used for invoking function |
| lambda_role | IAM role attached |
- Need to fix providers
- Remove project, owner, email inputs -- these has be set as env variable.
- Tag resources with project, owner, email
- Implement testing workflow to validate action
- Build hello world example