Configuration in this directory creates AWS Lambda Function, Layers, Alias, and so on with the large variety of supported features showing this module in action.
To run this example you need to execute:
$ terraform init
$ terraform plan
$ terraform apply
Note that this example may create resources which cost money. Run terraform destroy
when you don't need these resources.
Name | Version |
---|---|
terraform | >= 1.0 |
aws | >= 5.79 |
random | >= 2.0 |
Name | Version |
---|---|
aws | >= 5.79 |
random | >= 2.0 |
Name | Source | Version |
---|---|---|
disabled_lambda | ../../ | n/a |
lambda_at_edge | ../../ | n/a |
lambda_function | ../../ | n/a |
lambda_function_existing_package_local | ../../ | n/a |
lambda_function_for_each | ../../ | n/a |
lambda_function_no_create_log_group_permission | ../../ | n/a |
lambda_function_with_custom_auto_log_group | ../../ | n/a |
lambda_function_with_custom_log_group | ../../ | n/a |
lambda_function_with_package_deploying_externally | ../../ | n/a |
lambda_layer_local | ../../ | n/a |
lambda_layer_s3 | ../../ | n/a |
lambda_layer_with_package_deploying_externally | ../../ | n/a |
lambda_with_mixed_trusted_entities | ../../ | n/a |
lambda_with_provisioned_concurrency | ../../ | n/a |
s3_bucket | terraform-aws-modules/s3-bucket/aws | ~> 3.0 |
Name | Type |
---|---|
aws_cloudwatch_log_group.custom | resource |
aws_sqs_queue.dlq | resource |
random_pet.this | resource |
aws_caller_identity.current | data source |
aws_organizations_organization.this | data source |
No inputs.
Name | Description |
---|---|
lambda_cloudwatch_log_group_arn | The ARN of the Cloudwatch Log Group |
lambda_function_arn | The ARN of the Lambda Function |
lambda_function_arn_static | The static ARN of the Lambda Function. Use this to avoid cycle errors between resources (e.g., Step Functions) |
lambda_function_invoke_arn | The Invoke ARN of the Lambda Function |
lambda_function_kms_key_arn | The ARN for the KMS encryption key of Lambda Function |
lambda_function_last_modified | The date Lambda Function resource was last modified |
lambda_function_name | The name of the Lambda Function |
lambda_function_qualified_arn | The ARN identifying your Lambda Function Version |
lambda_function_qualified_invoke_arn | The Invoke ARN identifying your Lambda Function Version |
lambda_function_source_code_hash | Base64-encoded representation of raw SHA-256 sum of the zip file |
lambda_function_source_code_size | The size in bytes of the function .zip file |
lambda_function_url | The URL of the Lambda Function URL |
lambda_function_url_id | The Lambda Function URL generated id |
lambda_function_version | Latest published version of Lambda Function |
lambda_layer_arn | The ARN of the Lambda Layer with version |
lambda_layer_created_date | The date Lambda Layer resource was created |
lambda_layer_layer_arn | The ARN of the Lambda Layer without version |
lambda_layer_source_code_size | The size in bytes of the Lambda Layer .zip file |
lambda_layer_version | The Lambda Layer version |
lambda_role_arn | The ARN of the IAM role created for the Lambda Function |
lambda_role_name | The name of the IAM role created for the Lambda Function |
local_filename | The filename of zip archive deployed (if deployment was from local) |
s3_object | The map with S3 object data of zip archive deployed (if deployment was from S3) |