Skip to content

Pull-Request-Example fails on creating ApprovalRuleTemplate #198

@mleziva

Description

@mleziva

When running CDK deploy from master with on the Pull-Request-Example, the cloud formation times out and rollsback on creation of the Approval Rule Template custom resource.

Repro steps:

  • Clone master branch
  • Copy pull-request-example folder to new folder
  • run npm install
  • Install cdkdx and run cdk build
  • Run cdk deploy and approve changes

Error in the custom function:

2023-03-17T17:00:14.796Z	undefined	ERROR	Uncaught Exception 	
{
    "errorType": "Runtime.UserCodeSyntaxError",
    "errorMessage": "SyntaxError: Unexpected token '?'",
    "stack": [
        "Runtime.UserCodeSyntaxError: SyntaxError: Unexpected token '?'",
        "    at _loadUserApp (/var/runtime/UserFunction.js:98:13)",
        "    at Object.module.exports.load (/var/runtime/UserFunction.js:140:17)",
        "    at Object.<anonymous> (/var/runtime/index.js:43:30)",
        "    at Module._compile (internal/modules/cjs/loader.js:999:30)",
        "    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)",
        "    at Module.load (internal/modules/cjs/loader.js:863:32)",
        "    at Function.Module._load (internal/modules/cjs/loader.js:708:14)",
        "    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12)",
        "    at internal/main/run_main_module.js:17:47"
    ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions