Skip to content

[BUG]: Fail to deploy on Github Actions #6014

@coding-velociraptor

Description

@coding-velociraptor

Description:

Starting on Monday 23th February, we are unable to use Copilot v1.34.0 in our Github Actions. When ever we run any copilot svc deploy... command, it fails with the following error:

execute deployment 1 of 1 in group 1: deploy service backend to environment staging: deploy service: generate template: override template: unmarsal CDK transformed YAML template: yaml: line 1041: could not find expected ':'

The same output happens when using copilot svc package.... We haven't change any dependency or infrastructure. Dependencies are pinned to be:

{
    "aws-cdk-lib": "2.141.0",
    "aws-cdk": "2.141.0",
}

A later cdk version doesn't work either.

Any advice or hint is highly appreciated.

Update:

It works without the CDK overrides.

Details:

Linux + Mac
Copilot v1.34.0

Observed result:

execute deployment 1 of 1 in group 1: deploy service backend to environment staging: deploy service: generate template: override template: unmarsal CDK transformed YAML template: yaml: line 1041: could not find expected ':'

Expected result:

No errors.

Debugging:

Different Github infra, later cdk version

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/bugIssues that are bugs.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions