You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+15-11Lines changed: 15 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -4,13 +4,6 @@ Terraform module which creates API Gateway v2 resources with HTTP/Websocket capa
4
4
5
5
This Terraform module is part of [serverless.tf framework](https://serverless.tf), which aims to simplify all operations when working with the serverless in Terraform.
|[aws_route53_zone.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/route53_zone)| data source |
139
137
140
138
## Inputs
141
139
@@ -148,7 +146,9 @@ No modules.
148
146
| <aname="input_body"></a> [body](#input\_body)| An OpenAPI specification that defines the set of routes and integrations to create as part of the HTTP APIs. Supported only for HTTP APIs |`string`|`null`| no |
149
147
| <aname="input_cors_configuration"></a> [cors\_configuration](#input\_cors\_configuration)| The cross-origin resource sharing (CORS) configuration. Applicable for HTTP APIs |`any`|`{}`| no |
150
148
| <aname="input_create"></a> [create](#input\_create)| Controls if resources should be created |`bool`|`true`| no |
149
+
| <aname="input_create_certificate"></a> [create\_certificate](#input\_create\_certificate)| Whether to create a certificate for the domain |`bool`|`false`| no |
151
150
| <aname="input_create_domain_name"></a> [create\_domain\_name](#input\_create\_domain\_name)| Whether to create API domain name resource |`bool`|`false`| no |
151
+
| <aname="input_create_domain_records"></a> [create\_domain\_records](#input\_create\_domain\_records)| Whether to create Route53 records for the domain name |`bool`|`false`| no |
152
152
| <aname="input_create_routes_and_integrations"></a> [create\_routes\_and\_integrations](#input\_create\_routes\_and\_integrations)| Whether to create routes and integrations resources |`bool`|`true`| no |
153
153
| <aname="input_create_stage"></a> [create\_stage](#input\_create\_stage)| Whether to create default stage |`bool`|`true`| no |
154
154
| <aname="input_credentials_arn"></a> [credentials\_arn](#input\_credentials\_arn)| Part of quick create. Specifies any credentials required for the integration. Applicable for HTTP APIs |`string`|`null`| no |
@@ -171,6 +171,7 @@ No modules.
171
171
| <aname="input_stage_name"></a> [stage\_name](#input\_stage\_name)| The name of the stage. Must be between 1 and 128 characters in length |`string`|`"$default"`| no |
172
172
| <aname="input_stage_tags"></a> [stage\_tags](#input\_stage\_tags)| A mapping of tags to assign to the stage resource |`map(string)`|`{}`| no |
173
173
| <aname="input_stage_variables"></a> [stage\_variables](#input\_stage\_variables)| A map that defines the stage variables for the stage |`map(string)`|`{}`| no |
174
+
| <aname="input_subdomain"></a> [subdomain](#input\_subdomain)| An optional subdomain to use for API gateway (prepended to the `domain_name` when the records are created) |`string`|`null`| no |
174
175
| <aname="input_tags"></a> [tags](#input\_tags)| A mapping of tags to assign to API gateway resources |`map(string)`|`{}`| no |
175
176
| <aname="input_target"></a> [target](#input\_target)| Part of quick create. Quick create produces an API with an integration, a default catch-all route, and a default stage which is configured to automatically deploy changes. For HTTP integrations, specify a fully qualified URL. For Lambda integrations, specify a function ARN. The type of the integration will be HTTP\_PROXY or AWS\_PROXY, respectively. Applicable for HTTP APIs |`string`|`null`| no |
176
177
| <aname="input_vpc_link_tags"></a> [vpc\_link\_tags](#input\_vpc\_link\_tags)| A map of tags to add to the VPC Links created |`map(string)`|`{}`| no |
@@ -180,6 +181,7 @@ No modules.
180
181
181
182
| Name | Description |
182
183
|------|-------------|
184
+
| <aname="output_acm_certificate_arn"></a> [acm\_certificate\_arn](#output\_acm\_certificate\_arn)| The ARN of the certificate |
183
185
| <aname="output_api_arn"></a> [api\_arn](#output\_api\_arn)| The ARN of the API |
184
186
| <aname="output_api_endpoint"></a> [api\_endpoint](#output\_api\_endpoint)| URI of the API, of the form `https://{api-id}.execute-api.{region}.amazonaws.com` for HTTP APIs and `wss://{api-id}.execute-api.{region}.amazonaws.com` for WebSocket APIs |
185
187
| <aname="output_api_execution_arn"></a> [api\_execution\_arn](#output\_api\_execution\_arn)| The ARN prefix to be used in an `aws_lambda_permission`'s `source_arn` attribute or in an `aws_iam_policy` to authorize access to the `@connections` API |
@@ -193,6 +195,8 @@ No modules.
193
195
| <aname="output_domain_name_target_domain_name"></a> [domain\_name\_target\_domain\_name](#output\_domain\_name\_target\_domain\_name)| The target domain name |
194
196
| <aname="output_integrations"></a> [integrations](#output\_integrations)| Map of the integrations created and their attributes |
195
197
| <aname="output_routes"></a> [routes](#output\_routes)| Map of the routes created and their attributes |
198
+
| <aname="output_stage_access_logs_cloudwatch_log_group_arn"></a> [stage\_access\_logs\_cloudwatch\_log\_group\_arn](#output\_stage\_access\_logs\_cloudwatch\_log\_group\_arn)| Arn of cloudwatch log group created |
199
+
| <aname="output_stage_access_logs_cloudwatch_log_group_name"></a> [stage\_access\_logs\_cloudwatch\_log\_group\_name](#output\_stage\_access\_logs\_cloudwatch\_log\_group\_name)| Name of cloudwatch log group created |
196
200
| <aname="output_stage_arn"></a> [stage\_arn](#output\_stage\_arn)| The stage ARN |
197
201
| <aname="output_stage_execution_arn"></a> [stage\_execution\_arn](#output\_stage\_execution\_arn)| The ARN prefix to be used in an aws\_lambda\_permission's source\_arn attribute or in an aws\_iam\_policy to authorize access to the @connections API |
198
202
| <aname="output_stage_id"></a> [stage\_id](#output\_stage\_id)| The stage identifier |
|[aws_route53_zone.this](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/route53_zone)| data source |
57
50
58
51
## Inputs
59
52
@@ -65,6 +58,7 @@ Note that this example may create resources which cost money. Run `terraform des
65
58
66
59
| Name | Description |
67
60
|------|-------------|
61
+
| <aname="output_acm_certificate_arn"></a> [acm\_certificate\_arn](#output\_acm\_certificate\_arn)| The ARN of the certificate |
68
62
| <aname="output_api_arn"></a> [api\_arn](#output\_api\_arn)| The ARN of the API |
69
63
| <aname="output_api_endpoint"></a> [api\_endpoint](#output\_api\_endpoint)| URI of the API, of the form `https://{api-id}.execute-api.{region}.amazonaws.com` for HTTP APIs and `wss://{api-id}.execute-api.{region}.amazonaws.com` for WebSocket APIs |
70
64
| <aname="output_api_execution_arn"></a> [api\_execution\_arn](#output\_api\_execution\_arn)| The ARN prefix to be used in an `aws_lambda_permission`'s `source_arn` attribute or in an `aws_iam_policy` to authorize access to the `@connections` API |
@@ -78,6 +72,8 @@ Note that this example may create resources which cost money. Run `terraform des
78
72
| <aname="output_domain_name_target_domain_name"></a> [domain\_name\_target\_domain\_name](#output\_domain\_name\_target\_domain\_name)| The target domain name |
79
73
| <aname="output_integrations"></a> [integrations](#output\_integrations)| Map of the integrations created and their attributes |
80
74
| <aname="output_routes"></a> [routes](#output\_routes)| Map of the routes created and their attributes |
75
+
| <aname="output_stage_access_logs_cloudwatch_log_group_arn"></a> [stage\_access\_logs\_cloudwatch\_log\_group\_arn](#output\_stage\_access\_logs\_cloudwatch\_log\_group\_arn)| Arn of cloudwatch log group created |
76
+
| <aname="output_stage_access_logs_cloudwatch_log_group_name"></a> [stage\_access\_logs\_cloudwatch\_log\_group\_name](#output\_stage\_access\_logs\_cloudwatch\_log\_group\_name)| Name of cloudwatch log group created |
81
77
| <aname="output_stage_arn"></a> [stage\_arn](#output\_stage\_arn)| The stage ARN |
82
78
| <aname="output_stage_execution_arn"></a> [stage\_execution\_arn](#output\_stage\_execution\_arn)| The ARN prefix to be used in an aws\_lambda\_permission's source\_arn attribute or in an aws\_iam\_policy to authorize access to the @connections API |
83
79
| <aname="output_stage_id"></a> [stage\_id](#output\_stage\_id)| The stage identifier |
0 commit comments