https://pulumi.com logo
Title
g

green-daybreak-91402

04/28/2022, 10:20 AM
Hello again! Using the
@pulumi/awsx
package for API Gateway, how are subroutes setup? Im trying to setup a route like this:
/test/{proxy+}
but get this error:
Unable to create resource at path '/{proxy+}/{proxy+}': Cannot create a child of a resource with a greedy path variable: {proxy+}
I cant find an example of how to setup subroutes, this is how Ive seupt my routes:
{
            path: '/test/{proxy+}',
            apiKeyRequired: false,
            method: 'ANY',
            eventHandler: functions.testFunction,
          },
          {
            path: '/{proxy+}',
            method: 'ANY',
            apiKeyRequired: true,
            target: apiServerTarget,
          },
p

prehistoric-activity-61023

04/28/2022, 10:37 AM
you might want to x-post that to #aws channel
👍 1