简体   繁体   English

无法通过AWS命令创建Lambda函数

[英]Not able to create a lambda function through AWS command

I am trying to create a lambda function through the AWS command.When I'm executing the below command Its gives me the Unknown option error. 我正在尝试通过AWS命令创建一个lambda函数。当我执行以下命令时,它给了我Unknown option错误。

AWS Command: AWS命令:

aws lambda create-function --function-name function_name ukmon-appd-disabled- 
health-rules --runtime python3.7 --zip-file 
fileb://bin/disabled_health_rules.zip --handler index.handler --timeout 10 - 
-memory-size 1024 --role arn:aws:iam::99999999999:role/crossaccount

Error: 错误:

Unknown options: ukmon-appd-disabled-health-rules

I've tried with different names.I am not able to understand what does that error mean. 我尝试使用不同的名称。我无法理解该错误的含义。 Thanks in advance. 提前致谢。

Remove the function_name . 删除function_name It is being recognized as the value to the parameter --function-name instead of the ukmon-appd-disabled-health-rules . 它被识别为参数--function-name的值,而不是ukmon-appd-disabled-health-rules

You have the argument function-name written twice. 您将参数function-name编写了两次。 Just remove one like this 像这样删除一个

aws lambda create-function --function-name ukmon-appd-disabled- 
health-rules --runtime python3.7 --zip-file 
fileb://bin/disabled_health_rules.zip --handler index.handler --timeout 10 - 
-memory-size 1024 --role arn:aws:iam::99999999999:role/crossaccount

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法为 Gitlab 到 Z303E96F80576360D04C7B07AEB752Z 中的 AWS Lambda Fx 创建 Zip 文件 - Not able to create Zip file for AWS Lambda Fx in Gitlab through Terraform 无法通过 Springs 框架在 AWS Lambda 函数内注入依赖项 - Not able to inject dependencies inside the AWS Lambda function through Springs framework CloudFormation - 无法创建 Lambda 函数 - CloudFormation - not able to create Lambda Function AWS CodeDeploy 无法部署 lambda 函数 - AWS CodeDeploy is not able to deploy lambda function AWS Lambda函数停止连接吗? - AWS Lambda function stops being able to connect? 带触发器的 AWS Lambda 创建函数 - AWS Lambda create function with trigger 无法在AWS Lambda函数中获取AmazonDynamoDBClient - Not able to get AmazonDynamoDBClient in AWS lambda function 无法从 Lambda function 访问 AWS DynamoDb - Not able to access AWS DynamoDb from Lambda function 用于创建另一个 AWS lambda 函数的 AWS Lambda 函数 - AWS Lambda function to create another AWS lambda function 无法通过容器命令或 manage.py 在 aws beanstalk 中创建 django 超级用户 - Not able to create django superuser in aws beanstalk either through container command or manage.py
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM