我遵循Amazon的教程,在悉尼地區創建HelloWorld lambda函數。它在AWS控制檯上工作。無法在命令行上啓動Amazon Lambda(HelloWorld示例)
然後我試圖做到這一點的命令行:
aws lambda invoke --invocation-type RequestResponse --function-name HelloWorld --region Sydney --payload '{"key1":"value1", "key2":"value2", "key3":"value3"}' outputfile.txt
錯誤:
Could not connect to the endpoint URL: " https://lambda.Sydney.amazonaws.com/2015-03-31/functions/HelloWorld/invocations "
我覺得我的安全密鑰是工作,因爲上市的以下命令我的S3桶工作:
aws s3api list-buckets # Worked, so the security keys should work