Skip to content

Do not send response to CloudFormation when testing with sam local #54

@ycourtois

Description

@ycourtois

When testing my custom resource with sam local, the resource helper tries to send a response to CloudFormation.

It generates an error since I am using fake information in my request payload.

Example:

{
  "RequestType": "Create",
  "ResponseURL": "http://pre-signed-S3-url-for-response",
  "StackId": "arn:aws:cloudformation:us-east-1:123456789012:stack/MyStack/guid",
  "RequestId": "unique id for this create request",
  "ResourceType": "Custom::TestResource",
  "LogicalResourceId": "MyTestResource",
...

It would be nice to disable response sending to cfn when testing with sam local.

crhelper version: 2.0.10

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