pulumi / pulumi-aws-apigateway

Apache License 2.0
13 stars 5 forks source link

awsx.apigateway always creating {proxy+} routes #24

Closed bombillazo closed 1 year ago

bombillazo commented 2 years ago

What happened?

Currently any type of route created via teh apigateway function is attaching an additional resource /{proxy+} to the created path, regardless of integration type.

Steps to reproduce

Create an api gateway endpoint:

this.api = new awsx.apigateway.API(
      `${this.id}-gateway`,
      {
        routes: [
          {
            path: '/',
            target: {
              type: 'http',
              uri: 'https://www.test.com',
            },
          },
...
}

Deploy the specified resource.

Expected Behavior

A single route / is created with teh specified integration type.

Actual Behavior

Both / and /{proxy+} are created.

Versions used

"@pulumi/aws": "^4.38.1", "@pulumi/awsx": "^0.40.0", "@pulumi/pulumi": "^3.26.1", "@pulumi/random": "^4.4.2",

Additional context

No response

Contributing

Vote on this issue by adding a πŸ‘ reaction. To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

guineveresaenger commented 2 years ago

@bombillazo thank you for reporting this behavior! stay tuned for future releases.