403 creating java lambda function

0

Hi, I am trying to create a Java lambda function. when I select create function I get a network error and looking in the console I can see it is getting a 403 response trying to access a java11.zip from a cloudfromt URL. I'm assuming my account has a permission missing somewhere, I've tried all sorts that look like they may be relevant but all have failed. can anyone pinpoint exactly what policy I needs for this please.

for relevance I can create functions in python etc

已提问 2 年前586 查看次数
1 回答
0

Hello,

Cloufront URL are not valid to deploy your Java based AWS Lambda functions. You can upload your zip artifact with the java function in two ways:

  1. Upload the zip artifact from your local computer with the console or CLI.
  2. Use a S3 bucket location (where you have access) with your artifact in the console or CLI:
aws s3 cp my-function.zip s3://my-bucket

And later:

aws lambda update-function-code --function-name my-function \
 --s3-bucket my-bucket --s3-key my-function.zip

Hope it helps.

Joan_B
已回答 2 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则