[英]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.