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

preguntada hace 2 años586 visualizaciones
1 Respuesta
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
respondido hace 2 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas