Skip to content

(@aws-cdk/aws-stepfunction-tasks): CallApiGatewayHttpApiEndpoint didn't include "Stage" during rend the object #14242

@linguohan

Description

@linguohan

CallApiGatewayHttpApiEndpoint didn't include "Stage" during rend the object after set stageName.

Reproduction Steps

new sfn_tasks.CallApiGatewayHttpApiEndpoint(this, "call ApiGateway HttpApi Endpoint", {
    api: HttpApi.fromHttpApiAttributes(this, "call ApiGateway HttpApi Endpoint ", { httpApiId: http_api_id}),
    stageName: "Alpha",
    apiPath: "/apitPath",
    heartbeat: cdk.Duration.seconds(10),
    integrationPattern: sfn.IntegrationPattern.REQUEST_RESPONSE,
    method: sfn_tasks.HttpMethod.POST,
    timeout: cdk.Duration.minutes(2),
    authType: sfn_tasks.AuthType.IAM_ROLE,
});

What did you expect to happen?

Should include the Stage in the Step function State machines.

What actually happened?

Didn't include the Stage in the Step function State machines.

Environment

  • CDK CLI Version : mono CDK 1.97.0
  • Framework Version:
  • Node.js Version: v12.5.0
  • OS :
  • Language (Version): TypeScript

Other

May need to use the

Stage: this.baseProps.stageName

in https://github.com/aws/aws-cdk/blob/master/packages/%40aws-cdk/aws-stepfunctions-tasks/lib/apigateway/base.ts#L48
As we didn't set the stage like we did in CallApiGatewayRestApiEndpoint.

See
https://github.com/aws/aws-cdk/blob/master/packages/%40aws-cdk/aws-stepfunctions-tasks/lib/apigateway/call-rest-api.ts#L42

and

https://github.com/aws/aws-cdk/blob/master/packages/%40aws-cdk/aws-stepfunctions-tasks/lib/apigateway/call-http-api.ts#L36-L45


This is 🐛 Bug Report

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions