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

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年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ