Skip to content

BUG: Failure during creation results in Invalid PhysicalResourceId #675

Open
@cheruvian

Description

@cheruvian

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions