Skip to content
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

BUG: Failure during creation results in Invalid PhysicalResourceId #675

Open
cheruvian opened this issue May 29, 2024 · 1 comment
Open

Comments

@cheruvian
Copy link

The deployment is written in such a way that it will return an undefined PhysicalResourceId which is invalid and results in that error being surfaced to CloudFormation obscuring the actual underlying issue.

It should be defaulted to a non-empty string on error (or always?)

FWIW, the correct underlying error is properly logged and does work if the CustomResource is being updated rather than created/replaced

e.g. error

2024/05/29 15:28:56 sending status failed: copy image failed: creating an updated image manifest: preparing updated manifest, layer "sha256:0fda6f180a9e87ea218f7415ac4a32316291a0f6a2e359367190781bf3642968": unsupported MIME type for compression: application/vnd.in-toto+json
--

Reported CF Error

Invalid PhysicalResourceId

Error location: https://github.com/cdklabs/cdk-ecr-deployment/blob/main/lambda/main.go#L114
PhsyicalResourceId definition: https://github.com/cdklabs/cdk-ecr-deployment/blob/main/lambda/main.go#L39

@bschulz87
Copy link

bschulz87 commented Jun 5, 2024

Adding the repository as a dependency to an image fixes the issue.

#283 (comment)

Update: Sorry, wrote too early. Having the repository as dependency still results in Invalid PhysicalResourceId error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants