resource "null_resource" "add_my_lib" { provisioner "local-exec" { command = "zip -ur ./archive.zip /path/to/the/lib" } } 然后,不要忘记使用归档文件向资源添加depends_on属性。 代码语言:javascript 运行 AI代码解释 resource "aws_s3_bucket_object" "my_lambda_layer" { ... depends_on =...
lambda/aws" function_name = "lambda-with-layer" description = "My awesome lambda function" handler = "index.lambda_handler" runtime = "python3.8" publish = true source_path = "../src/lambda-function1" store_on_s3 = true s3_bucket = "my-bucket-id-with-lambda-builds" layers = [ ...
resource/aws_instance: Add amd_sev_snp argument (#31035) resource/aws_instance: Add cpu_options argument (#31035) resource/aws_lambda_function: Add support for java17 runtime value (#31027) resource/aws_lambda_layer_version: Add support for java17 compatible_runtimes value (#31028) resourc...
module"cron"{source="git@github.com:uridium/terraform-aws-lambda-scheduler.git"function_name="plower"handler="lambda.handler"runtime="python3.9"layer_enabled=truecode_directory="/opt/lambda"input="{\"firstName\":\"John\",\"lastName\":\"Doe\"}"vars={ foo="bar"}tags={ Env="Stage"}cro...
代码编写 Code writing 编写lambda函数 Write lambda functions 主要功能是查询数据库,在本地生成test.csv...
lambda_action_group_executor ARN of Lambda. string null no level_configurations_list Token settings for each layer. list(object({ max_tokens = number })) null no managed_word_lists_config A config for the list of managed words. list(map(string)) null no max_length The maximum number of...
aws_lambda_function_event_invoke_config aws_lambda_layer_version logs aws_cloudwatch_log_group media_package aws_media_package_channel media_store aws_media_store_container msk aws_msk_cluster nat aws_nat_gateway nacl aws_network_acl organization aws_organizations_account aws_orga...
allow_ssl_requests_onlySet to true to require requests to use Secure Socket Layer (HTTPS/SSL) on the access logs S3 bucket. This will explicitly deny access to HTTP requestsboolfalseno attributesID element. Additional attributes (e.g.workersorcluster) to add toid, ...
resource aws_lambda_function resource aws_lambda_permission resource aws_route53_record aws/aws_lambda_cronjob resource aws_cloudwatch_event_rule resource aws_cloudwatch_event_target resource aws_iam_policy resource aws_iam_role resource aws_iam_role_policy_attachment resource aws_lambda_function resou...
By default, this terraform module creates a deployment package and uses it to create or update the Lambda Function or Layer in the delegated administrator account. The source code for this blog can be downloaded from thisGitHub repository. ...