-
-
Notifications
You must be signed in to change notification settings - Fork 205
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
Set disable_execute_api_endpoint to False doesn't Work #128
Comments
we need a minimal reproduction that is deployable in order to troubleshoot |
What's confusing? Is it not setup correctly per the API Gateway documentation? |
I just copied the example from readme and add the disable_execute_api_endpoint = false settings which doesn't work. I have to look into the source code to find out the reason. |
Why do you need to look into the source code - do you understand how API Gateway works, do you understand what should happen when using a custom domain on an HTTP API Gateway? |
Yes I know it. I know I made a mistake of those settings in my file. But the two default beheviors of variables usage are conflicting without any restriction or explanation and it can be applied successfully against user's expectation. It's just a suggestion to make it more friendly for user. You can forget it if you do not want to. Thanks. |
I can't make something more user friendly if users don't understand how the underlying service works. We set up modules to try to prevent footguns and ensure things are configured correctly (where possible), but we can't detail all of those things because we would be repeating the service documentation. If you read the API Gateway service documentation and understand the behavior of the service - you'll understand why you can't set this value to false when using a custom domain |
Just curious how do you konw I don't understand how the underlying service works?
Actually I can set the value and apply successfully even the configuration is totally wrong(sorry for my bad as I don't understand how the underlying service works). Is that what you mean something friendly? :) |
For our use case, we'd like to leave the default endpoint available when we have a domain configured. We have an externally-facing API that clients request jobs through. Their requests get forwarded onto a Step Function to perform the work. To allow the clients to view the progress of their work, the Step Functions send updates to the API with status messages (stored in DynamoDB) that the clients can then retrieve. We use We're happy to leave the default endpoint enabled: even though it would allow clients to directly invoke the API Gateway, we don't publish it for them to use & restrict access to the routes with IAM authentication. We prefer clients to use the domain name, in case we replace the API Gateway in the future & its ID changes. If I guess we could configure two APIs: one for clients to use & another for our Step Functions to call. Though we would have to configure the Step Functions to look up the appropriate API Gateway to use, instead of passing it through from the API Gateway's context. |
Description
Even though I explicitly set the variable disable_execute_api_endpoint to false in the *.tf file, the result of terraform plan still is true.
Versions
5.2.1
v1.6.6
hashicorp/aws v5.79.0
Reproduction Code [Required]
Steps to reproduce the behavior:
create aws api gateway resource via the terraform-aws-modules/apigateway-v2/aws module with settings of disable_execute_api_endpoint = false
excute terraform plan to see the result
Expected behavior
the disable_execute_api_endpoint is false in the plan result
Actual behavior
the disable_execute_api_endpoint is still true in the plan result
Terminal Output Screenshot(s)
Additional context
the source code as below
The text was updated successfully, but these errors were encountered: