Error Creating Lambda Fn
Closed this issue · 0 comments
Deleting existing ECR repository...
Creating ECR repository...
Pushing image to ECR repository...
INFO[0001] pushing as a reduced-platform image (application/vnd.docker.distribution.manifest.v2+json, sha256:1a187dade6c4c4f88448176082c93b7a0428cd02080b64ca32a8b9fac8d5d24d)
manifest-sha256:1a187dade6c4c4f88448176082c93b7a0428cd02080b64ca32a8b9fac8d5d24d: waiting |---------------------
manifest-sha256:1a187dade6c4c4f88448176082c93b7a0428cd02080b64ca32a8b9fac8d5d24d: waiting |---------------------
manifest-sha256:1a187dade6c4c4f88448176082c93b7a0428cd02080b64ca32a8b9fac8d5d24d: waiting |---------------------
manifest-sha256:1a187dade6c4c4f88448176082c93b7a0428cd02080b64ca32a8b9fac8d5d24d: waiting |---------------------
manifest-sha256:1a187dade6c4c4f88448176082c93b7a0428cd02080b64ca32a8b9fac8d5d24d: waiting |---------------------
manifest-sha256:1a187dade6c4c4f88448176082c93b7a0428cd02080b64ca32a8b9fac8d5d24d: waiting |---------------------
manifest-sha256:1a187dade6c4c4f88448176082c93b7a0428cd02080b64ca32a8b9fac8d5d24d: waiting |---------------------
manifest-sha256:1a187dade6c4c4f88448176082c93b7a0428cd02080b64ca32a8b9fac8d5d24d: waiting |---------------------
manifest-sha256:1a187dade6c4c4f88448176082c93b7a0428cd02080b64ca32a8b9fac8d5d24d: waiting |---------------------
manifest-sha256:1a187dade6c4c4f88448176082c93b7a0428cd02080b64ca32a8b9fac8d5d24d: waiting |---------------------
manifest-sha256:1a187dade6c4c4f88448176082c93b7a0428cd02080b64ca32a8b9fac8d5d24d: waiting |---------------------
manifest-sha256:1a187dade6c4c4f88448176082c93b7a0428cd02080b64ca32a8b9fac8d5d24d: waiting |--------------------------------------|
config-sha256:9f3508bb0b7c7e8758cdf0f322542b15de48108aff9b37f5a824a5d5f22f877f: done |++++++++++++++++++++++++++++++++++++++|
elapsed: 699.3s total: 4.1 Ki (6.0 B/s)
FATA[0700] failed to copy: failed to do request: Put "https://XXX.dkr.ecr.us-east-1.amazonaws.com/v2/yet-another-chatbot/blobs/uploads/85d144af-c7e0-4eae-ae4d-b1af866a835f?digest=sha256%3A4caf9d2bf8dd5170f8208fc2c9e95c6ef09d27e2bd8fbd9b7216170f93b351c7": write tcp 192.168.5.15:57426->52.207.187.83:443: write: connection reset by peer
FATA[0700] exit status 1
Writing image URI to file...
./deploy_lambda_function.sh: line 41: ./Config/image_uri.txt: No such file or directory
Image URI: XXX.dkr.ecr.us-east-1.amazonaws.com/yet-another-chatbot:latest
Creating IAM role...
An error occurred (EntityAlreadyExists) when calling the CreateRole operation: Role with name yet-another-chatbot-role already exists.
Waiting for IAM role to exist...
Role ARN: arn:aws:iam::XXX:role/yet-another-chatbot-role
Waiting for 10 seconds...
Creating or updating Lambda function...
An error occurred (InvalidParameterValueException) when calling the CreateFunction operation: Source image XXX.dkr.ecr.us-east-1.amazonaws.com/yet-another-chatbot:latest does not exist. Provide a valid source image.
Function ARN:
Waiting for Lambda function to be active...
Waiter FunctionActiveV2 failed: An error occurred (ResourceNotFoundException): Function not found: arn:aws:lambda:us-east-1:XXX:function:yet-another-chatbot-function
Waiting for Lambda function to be ready for an update...
Waiter FunctionUpdatedV2 failed: An error occurred (ResourceNotFoundException): Function not found: arn:aws:lambda:us-east-1:XXX:function:yet-another-chatbot-function
Updating Lambda function code...
An error occurred (ResourceNotFoundException) when calling the UpdateFunctionCode operation: Function not found: arn:aws:lambda:us-east-1:XXX:function:yet-another-chatbot-function