-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Amazon API Gateway HTTP APIs #11148
Comments
This is an apigatewayv2 resource just like the websockets API |
here is the line of code which designates the api type: seems like a big job to build this, but users (self included) would appreciate websockets and cheaper/faster/simpler api I am interested to contribute but not sure where to start ... how do you decide what counts as a data source, resource, etc? |
HTTP APIs are now GA. Requires AWS SDK v1.29.23: |
@ewbankkit looking at this it seems that your other PRs with the constituent resources to build on top of the gateway are still pending. Is there any help that you need on those? I haven't contributed here yet but definitely willing to. Thanks for the great PR and getting this out there day 1 of GA. Many people are looking forward to leveraging HTTP APIs and your work helps make this possible 🎉 |
Preview functionality:
GA functionality:
|
Hi, any idea on providing a body attribute for the aws_api_gateway_v2_api resource. It has similar behaviour to the body attribute in Is there any plan for that, it will help the developers like me who want to migrate the RestAPIGateway based infra to the new version. (I haven't developed GoLang for a long while, I will try to create an MR for that too) |
@vincenting My initial thinking around this was to recommend using the instructions in the developer guide to import the API using the AWS CLI and then use |
Sorry for the comment, but i am trying to understanding some things, |
@AleksandarTokarev The ability to manage the base HTTP API resource was released in v2.53.0. |
@AleksandarTokarev There are no required resources from this comment in Terraform yet. AWS is working on it, but WebSockets are higher on the priority list(as they said in the comment linked in above comment). I wouldn't expect HTTP API to be available in the next few months. |
Hi there, I'm currently having an issue with the |
@LaurenceGA amazing - thanks so much! |
@podrezo @LaurenceGA Please upvote the linked issue if you haven't already. |
I am also having issues with aws_apigatewayv2_integration, when creating it is ok, but when updating it is always trying to set passthrough_behavior = WHEN_NO_MATCH when doing integration with VPC_LINK |
To bypass the aws_apigatewayv2_stage error I had to add:
And to also stop receiving changes to passthrough_behavior in aws_apigatewayv2_integration had to add:
|
@luneo7 same thing for us with the passthrough_behavior on each update. |
Created #13062 to address the passthrough_behavior issue 😄 |
I have to use an ignore_changes block on my aws_apigatewayv2_stage resource with AWS provider 2.70.0 -- this has no other fix currently?
|
@warrenstephens The issue with perpetual diffs on |
@ewbankkit Thank you. I have my first stabilized aws_apigatewayv2_api with WEBSOCKET protocol -- after a few days of ramping up on AWS gateway. I was happy to learn that I can get JSON responses from both my $default route and named route despite the AWS docs that seemed to hint otherwise. |
@ewbankkit I have been fighting for a week since my post above to get my aws_apigatewayv2_api with WEBSOCKET protocol working with Cognito (OAuth "client_credentials") having no luck, only 403 errors -- is there some sample code having that integration available somewhere? I am willing to clean gutters, chop firewood, etc, to get it working! |
I found the fix. The "Action" part of the policy that is returned by the authorizer lambda must be an array of string, not a single string. Like this:
|
With the merge of #12567, scheduled for release with v3.3.0 of the Terraform AWS Provider, I am going to close this original API Gateway HTTP APIs issue. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Community Note
Description
The API Gateway HTTP API is in preview.
New or Affected Resource(s)
aws_api_gateway_v2_api
Potential Terraform Configuration
References
Announcement.
Blog post.
Developer guide.
Requires AWS SDK v1.25.48:
Related:
The text was updated successfully, but these errors were encountered: