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

demandé il y a 2 ans586 vues
1 réponse
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
répondu il y a 2 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions