2 個答案
- 最新
- 最多得票
- 最多評論
0
The reason was that Cloud Control API apparently has write-only properties. All write-only properties need to be included in every update. For some reason, I can't find any documentation about this. But you can find out what properties are write-only by fetching the resource after creation and diffing the properties that aren't present.
已回答 1 個月前
0
The errors indicate that Lambda is unable to find the code referenced in the function configuration.
- The code may have been removed from the S3 location or code repository referenced in the function configuration. Lambda needs the code to be present at the specified location in order to update it.
- The IAM role used by the function may not have the necessary permissions to access the code source. This could happen if the role policy was changed.
- There may be a mismatch between the code location referenced in the function versus what is configured in the deployment package.
Try the following:
- Check that the code is still present in S3 or the code repository
- Verify the IAM role policy grants access to the code source
- Use the Lambda console code editor to update the code directly instead of a separate deployment process
- Delete and recreate the function if the code location cannot be corrected
- When updating the description, Lambda still requires the
Code
property to be set even if not changing code. This is expected behavior.
相關內容
- AWS 官方已更新 1 年前
- AWS 官方已更新 3 年前