Terraform AWS sample code to demonstrate AWS Lambda Function URL as explained at https://hedrange.com/ . Link to come soon.
See examples/main.tf.
Name | Version |
---|---|
aws | >= 5.47.0 |
Name | Version |
---|---|
aws | >= 5.47.0 |
aws.us-east-1 | >= 5.47.0 |
Name | Type |
---|---|
aws_cloudfront_distribution.lambda_function_url_demo | resource |
aws_cloudfront_origin_access_control.cloudfront_oac_lambda_url | resource |
aws_cloudwatch_log_group.waf_cloudwatch_logs | resource |
aws_cloudwatch_log_resource_policy.waf_cloudwatch_logs_resource_policy | resource |
aws_lambda_permission.allow_cloudfront | resource |
aws_wafv2_web_acl.lambda_function_url_demo | resource |
aws_wafv2_web_acl_logging_configuration.waf_cloudwatch_logs_config | resource |
aws_caller_identity.current | data source |
aws_canonical_user_id.current | data source |
aws_cloudfront_log_delivery_canonical_user_id.cloudfront | data source |
aws_iam_policy_document.waf_logging | data source |
aws_region.current | data source |
Name | Description | Type | Default | Required |
---|---|---|---|---|
provision_cloudfront | Toggle for provisioning Cloudfront resources as a second module call, to avoid issues with circular dependencies for Lambda permissions. | bool |
false |
no |
Name | Description |
---|---|
lambda_function_url_demo_arn | Lambda Function URL Demo ARN |
lambda_function_url_demo_url | Lambda Function URL Demo URL |
Note: The inputs and outputs sections are automatically generated by terraform-docs in a git pre-commit hook. This requires setup of pre-commit-terraform . Follow the install instructions to use, including the dependencies setup. pre-commit ensures correct formatting, linting and generation of documentation. It also check's for trailing whitespace, merge conflics and mixed line endings. See .pre-commit-config.yaml for more information. A full guide to the pre-commit framework can be found here.
See contributors.
MIT licensed. See LICENSE. Feel free to fork and make use of what you want.