Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[api_gateway] Unable to specify multi-level routes #26

Open
szilveszter opened this issue Mar 13, 2023 · 1 comment
Open

[api_gateway] Unable to specify multi-level routes #26

szilveszter opened this issue Mar 13, 2023 · 1 comment

Comments

@szilveszter
Copy link
Contributor

The current implementation of the api_gateway module won't allow using /s in the routes:

routes = {
  "/multi-level/path" = {
    lambda_key = "rest_api_handler"
  }
}

This results in the following error during terraform apply:

│ Error: creating API Gateway Resource: BadRequestException: Resource's path part only allow a-zA-Z0-9._-: or a valid greedy path variable and curly braces at the beginning and the end.
│ 
│   with module.main.module.rest_api_gateway.aws_api_gateway_resource.rest_api_route_resource["multi-level/path"],
│   on .terraform/modules/main.rest_api_gateway/modules/api_gateway/main.tf line 146, in resource "aws_api_gateway_resource" "rest_api_route_resource":
│  146: resource "aws_api_gateway_resource" "rest_api_route_resource" {
@explorigin
Copy link
Contributor

Solved up to 5 levels via #29

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants