-
-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ResourceConflictException: … An update is in progress for resource #46
Comments
We experience the same.
2021/11/23 09:00:17 ResourceConflictException: The operation cannot be performed at this time. An update is in progress for resource: arn:aws:lambda:eu-west-1:xxxxxxxxxxxxx:function:lambdafunction
|
This is obviously due to the change described here: https://aws.amazon.com/blogs/compute/coming-soon-expansion-of-aws-lambda-states-to-all-functions/ If you specify multiple properties (like |
Yes, Understand that, on my YML, I have multiple updates (description,
handler, environments, etc) all of thems was updated without error, but the
process fail updating the zip with code.
I Understand the article, but can see how can Solve the error.
El mar., 23 de noviembre de 2021 4:34 a. m., Marc R. Hoffmann <
***@***.***> escribió:
… This is obviously due to the change described here:
https://aws.amazon.com/blogs/compute/coming-soon-expansion-of-aws-lambda-states-to-all-functions/
If you specify multiple properties (like image_uri and memory_size) the
tool probably internally issues multiple subsequent requests which fail due
to the new InProgress status.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#46 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AM534HJPMFMR2UQXXD6CCVTUNNN3RANCNFSM5ISDBU6A>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Sorry, I try Say:
I can't see how solve the error
El mar., 23 de noviembre de 2021 7:34 a. m., Antonio León <
***@***.***> escribió:
… Yes, Understand that, on my YML, I have multiple updates (description,
handler, environments, etc) all of thems was updated without error, but the
process fail updating the zip with code.
I Understand the article, but can see how can Solve the error.
El mar., 23 de noviembre de 2021 4:34 a. m., Marc R. Hoffmann <
***@***.***> escribió:
> This is obviously due to the change described here:
> https://aws.amazon.com/blogs/compute/coming-soon-expansion-of-aws-lambda-states-to-all-functions/
>
> If you specify multiple properties (like image_uri and memory_size) the
> tool probably internally issues multiple subsequent requests which fail due
> to the new InProgress status.
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <#46 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AM534HJPMFMR2UQXXD6CCVTUNNN3RANCNFSM5ISDBU6A>
> .
> Triage notifications on the go with GitHub Mobile for iOS
> <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
> or Android
> <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
>
>
|
I've been talking with AWS tech support and this is what they have to say: "I dug into the CloudTrail events for the Lambda service and found that each ‘UpdateFunctionCode’ call that failed with an ‘update in progress’ message was accompanied by a successful ‘UpdateFunctionConfiguration’ call at the same timestamp [1]. Both of these API calls can create the ‘inProgress’ Lambda State [2]. Please verify if the automated update system calls both of these APIs in quick succession. In this case, a loop to check for the ‘inProgress’ state would need to be implemented for the ‘UpdateFunctionCode’ call to allow a delay for the ‘UpdateFunctionConfiguration’ action to complete." Is that maybe what's causing the issue? If properties being set in the YML are causing the issue it seems like this is a good place to look to resolve it. |
Have the same issue, watching cloud trail it's trying to create the function besides being already created, and update the code at the same time. |
I have the same issue , cloud trail shows |
same thing here, hopefully this repo is still properly managed. @appleboy @szunami @filipebarros @DmytroSH |
The only way to work around this issue currently is to remove all the properties that cause an UpdateFunctionConfiguration API call to AWS. https://docs.aws.amazon.com/lambda/latest/dg/API_UpdateFunctionConfiguration.html In my case, I had to comment out the description field and it went through. |
I noticed there is an open PR on the upstream repo that contains the logic: appleboy/drone-lambda#12, I think if that was merged and this repo pointed to the new version it would be fixed. |
Can we get some feedback on if this is being handled or if this has been abandoned? Just want to know if I need to just build my own service. |
I was able fix this from comment claudiajs/claudia#226 (comment) i.e update description: "aws:states:opt-out" example:
|
According to this post |
Right, but is working |
Again you are right, maybe this explain downtime on services |
Maybe the update was done on services, but the problem persists. I was doing a test right now, performing a deploy with an existent lambda (previously deployed with aws:states:opt-out label), deleting label and redeploy, and failed the deploy. Restoring the label the deployment finish successfully. I don't understand the AWS logic, but using the label aws:states:opt-out on lambdas can complete deploy. |
Starting today, the problem appears again. Before I was solved adding on description of lambda aws:states:opt-out, but now this is not working. |
I have the same problem even using "aws:states:opt-out" I have got problems. |
Same problem here, would really appreciate a fix soon. We had same error in powershell scripts when calling Publich-LMVersion straight after a call to Update-LMFunctionCode. We fixed it by adding a waiting loop (not shown) in between those calls, with a timeout (not shown), something like:
|
I have the same issue but only on node lambda's.. My go lambda's are deploying fine.. |
… Attempting to fix by removing params
Anyone solved this issue? Adding |
FYI; Since then we've migrated to AWS CLI (i.e. |
I'm facing this problem in deploy step: 2023/02/10 14:40:33 ResourceConflictException: The operation cannot be performed at this time. An update is in progress for resource: arn:aws:lambda:***:****:function:account-transfers-lambda
{
RespMetadata: {
StatusCode: 409,
RequestID: "11040c97-d69c-43d3-a19a-b"
},
Message_: "The operation cannot be performed at this time. An update is in progress for resource: arn:aws:lambda:***:***",
Type: "User"
} This is my config: - name: default deploy
uses: appleboy/lambda-action@master
with:
aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws_region: ${{ secrets.AWS_REGION }}
function_name: account-transfers-lambda
zip_file: package/function.zip
handler: lambda_function.lambda_handler
runtime: python3.8 |
I wouldn't recommend using this package as it doesn't seem to be maintained anymore. I was able to deploy my go function with the |
I will take it. |
How can I apply this action? I could use same yml or need other configuration? |
Hello @appleboy , it's still not working on my end. |
@jjlabajo Please provide detailed information. |
I'm still getting this error:
|
@jjlabajo @johnwmccallum Please help to try the following commit sha: appleboy/lambda-action@390dab2546e6c97ca3b94fc5f3863d0e15bec0ee You will see the following log:
|
Hi All, Please help to try the following config: - name: check max attempts flag
uses: appleboy/lambda-action@390dab2546e6c97ca3b94fc5f3863d0e15bec0ee
with:
aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws_region: ${{ secrets.AWS_REGION }}
function_name: gorush
zip_file: example/deployment.zip
debug: true
publish: false How to resolve the problem
See the reference: https://docs.aws.amazon.com/lambda/latest/dg/functions-states.html |
@erikcc02 @94929 @samdelong @exalted @sefasenturk95 @thierrysuzanne-cl @marcos-pricefy @tiwarisuraj9 @merzikain @jaypeedevlin @kevouellet @ogohogo @Ankit05012019 @gurugutten Please help to try the test version I will bump the new version later. Thanks. |
Hey there, I stopped using this action a while ago. Sorry. 🙁 |
@exalted OK. Thanks. Please accept my apologies for the delay in handling the situation. |
No worries. I appreciate your humbleness! |
Hello
|
@nex84 Thanks for your help in testing. I will bump the new version later. |
Hi All, please use the v0.1.9 version. - name: default deploy
uses: appleboy/[email protected]
with:
aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws_region: eu-west-1
function_name: api-demo
source: lambda-api-server.py |
Hello @appleboy , thanks for the update. It's working now, I am using the master. |
@jjlabajo I recommend not using the |
@appleboy works like a charm, thank you! |
Came here to say resolved this issue for me update checking permissions (was missing one or two)
|
We have received for all deploys (new and old lambdas) this error, maybe related to this:
https://forums.aws.amazon.com/thread.jspa?threadID=346005
The text was updated successfully, but these errors were encountered: