plain-parrot-21984
07/14/2023, 3:04 PMcheckPingIntegration, err := apigatewayv2.NewIntegration(ctx, resName+stack+"-check-ping-integration", &apigatewayv2.IntegrationArgs{
ApiId: gateway.ControllerApi.ID(),
CredentialsArn: roles.ApiGwRole.Arn,
IntegrationType: pulumi.String("AWS_PROXY"),
IntegrationSubtype: pulumi.String("StepFunctions-StartExecution"),
PassthroughBehavior: pulumi.String("WHEN_NO_TEMPLATES"),
RequestParameters: pulumi.StringMap{
"StateMachineArn": checkPingStateMachine.Arn,
},
})
if err != nil {
fmt.Println(err)
}
As you can see, both the passthrough behaviour and the state machine ARN are defined.pulumi up
commands ...