https://pulumi.com logo
Title
b

brainy-engineer-50929

12/06/2022, 11:50 AM
Hi everyone, I have an apigateway v1 using @pulumi/awsx and need to create BasePathMapping like '/api/v1' , however AWS throws an error:
"Error creating Gateway base path mapping: BadRequestException: API Gateway V1 doesn't support the slash character (/) in base path mappings. To create a multi-level base path mapping, use API Gateway V2"
Can I use aws.apigatewayv2.ApiMapping with apigateway v1 ? Or is there another way to go about solving this??
v

victorious-church-57397

12/06/2022, 1:09 PM
Have you tried using the v2 mapping with the v1 apigw? i wouldnt have thought you could, so it might be worth moving to apigwv2 whilst youre looking at it