Commit 7ffbe78
authored
fix: bug with lambda function updates (#1)
## Resolves the ResourceConflictException error when updating an existing lambda function
```
Bundling: 'service.py'
Bundling: '.envrc'
Bundling: 'requirements.txt'
Bundling: 'Makefile'
Bundling: 'event.json'
Bundling: 'README.md'
Bundling: 'requirements-dev.txt'
Bundling: '.gitignore'
Updating your Lambda function
Traceback (most recent call last):
File "/Users/tonyejack/.virtualenvs/sync_waf_ips-srms/bin/lambda", line 213, in <module>
cli()
File "/Users/tonyejack/.virtualenvs/sync_waf_ips-srms/lib/python3.11/site-packages/click/core.py", line 716, in __call__
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/tonyejack/.virtualenvs/sync_waf_ips-srms/lib/python3.11/site-packages/click/core.py", line 696, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/Users/tonyejack/.virtualenvs/sync_waf_ips-srms/lib/python3.11/site-packages/click/core.py", line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/tonyejack/.virtualenvs/sync_waf_ips-srms/lib/python3.11/site-packages/click/core.py", line 889, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/tonyejack/.virtualenvs/sync_waf_ips-srms/lib/python3.11/site-packages/click/core.py", line 534, in invoke
return callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/tonyejack/.virtualenvs/sync_waf_ips-srms/bin/lambda", line 117, in deploy
aws_lambda.deploy(
File "/Users/tonyejack/.virtualenvs/sync_waf_ips-srms/lib/python3.11/site-packages/aws_lambda/aws_lambda.py", line 138, in deploy
update_function(
File "/Users/tonyejack/.virtualenvs/sync_waf_ips-srms/lib/python3.11/site-packages/aws_lambda/aws_lambda.py", line 744, in update_function
ret = client.update_function_configuration(**kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/tonyejack/.virtualenvs/sync_waf_ips-srms/lib/python3.11/site-packages/botocore/client.py", line 570, in _api_call
return self._make_api_call(operation_name, kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/tonyejack/.virtualenvs/sync_waf_ips-srms/lib/python3.11/site-packages/botocore/context.py", line 124, in wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/Users/tonyejack/.virtualenvs/sync_waf_ips-srms/lib/python3.11/site-packages/botocore/client.py", line 1031, in _make_api_call
raise error_class(parsed_response, operation_name)
botocore.errorfactory.ResourceConflictException: An error occurred (ResourceConflictException) when calling the UpdateFunctionConfiguration operation: The operation cannot be performed at this time. An update is in progress for resource: arn:aws:lambda:us-east-2:659424869662:function:sync_waf_ips
make: *** [deploy] Error 1
```1 parent 2f9f17a commit 7ffbe78
1 file changed
+20
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
704 | 704 | | |
705 | 705 | | |
706 | 706 | | |
707 | | - | |
| 707 | + | |
708 | 708 | | |
| 709 | + | |
709 | 710 | | |
710 | 711 | | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
711 | 715 | | |
712 | 716 | | |
713 | 717 | | |
| |||
745 | 749 | | |
746 | 750 | | |
747 | 751 | | |
748 | | - | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
749 | 767 | | |
750 | 768 | | |
751 | 769 | | |
| |||
0 commit comments