Skip to content

Commit 8990247

Browse files
authored
Expose APIGW stage ARN (#29)
1 parent 1e91315 commit 8990247

File tree

4 files changed

+12
-3
lines changed

4 files changed

+12
-3
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ API gateway module for REST API. There is no community module available for REST
1414

1515
| Name | Version |
1616
|------|---------|
17-
| <a name="provider_aws"></a> [aws](#provider\_aws) | 4.67.0 |
17+
| <a name="provider_aws"></a> [aws](#provider\_aws) | 5.31.0 |
1818

1919
## Modules
2020

@@ -74,6 +74,7 @@ API gateway module for REST API. There is no community module available for REST
7474
| <a name="output_aws_api_gateway_execution_arn"></a> [aws\_api\_gateway\_execution\_arn](#output\_aws\_api\_gateway\_execution\_arn) | The execution ARN part to be used in lambda\_permission source\_arn when allowing API Gateway to invoke a Lambda function |
7575
| <a name="output_aws_api_gateway_rest_api_id"></a> [aws\_api\_gateway\_rest\_api\_id](#output\_aws\_api\_gateway\_rest\_api\_id) | REST API id of the created api |
7676
| <a name="output_aws_api_gateway_rest_api_root_resource_id"></a> [aws\_api\_gateway\_rest\_api\_root\_resource\_id](#output\_aws\_api\_gateway\_rest\_api\_root\_resource\_id) | Root resource ID of the API Gateway REST API |
77+
| <a name="output_aws_api_gateway_stage_arn"></a> [aws\_api\_gateway\_stage\_arn](#output\_aws\_api\_gateway\_stage\_arn) | ARN (for management) of apigw stage, use this when attaching Web ACL |
7778
| <a name="output_aws_api_gateway_stage_execution_arn"></a> [aws\_api\_gateway\_stage\_execution\_arn](#output\_aws\_api\_gateway\_stage\_execution\_arn) | The execution ARN part to be used in lambda\_permission source\_arn when allowing API Gateway to invoke a Lambda function |
7879
| <a name="output_aws_api_gateway_stage_invoke_url"></a> [aws\_api\_gateway\_stage\_invoke\_url](#output\_aws\_api\_gateway\_stage\_invoke\_url) | The URL to invoke the API pointing to the stage |
7980
| <a name="output_aws_api_gateway_stage_name"></a> [aws\_api\_gateway\_stage\_name](#output\_aws\_api\_gateway\_stage\_name) | Stage name of the deployed api gateway stage |

modules/custom_domain/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Provisions option to create ACM certifcation. Cert validation needs to be done o
1818

1919
| Name | Version |
2020
|------|---------|
21-
| <a name="provider_aws"></a> [aws](#provider\_aws) | 4.67.0 |
21+
| <a name="provider_aws"></a> [aws](#provider\_aws) | 4.63.0 |
2222

2323
## Modules
2424

modules/usage_plan/README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Create Usage Plan and assign it to the API
1414

1515
| Name | Version |
1616
|------|---------|
17-
| <a name="provider_aws"></a> [aws](#provider\_aws) | 4.67.0 |
17+
| <a name="provider_aws"></a> [aws](#provider\_aws) | 4.63.0 |
1818

1919
## Modules
2020

@@ -33,12 +33,15 @@ No modules.
3333
| Name | Description | Type | Default | Required |
3434
|------|-------------|------|---------|:--------:|
3535
| <a name="input_api_keys"></a> [api\_keys](#input\_api\_keys) | List of api keys created and assigned to the usage plan | <pre>map(<br> object({<br> key_name = string<br> enabled = bool<br> })<br> )</pre> | `{}` | no |
36+
| <a name="input_burst_limit"></a> [burst\_limit](#input\_burst\_limit) | The maximum number of requests that API Gateway allows to be bursted across the entire API at the same moment. | `number` | `5000` | no |
3637
| <a name="input_default_tags"></a> [default\_tags](#input\_default\_tags) | Default Tags for Auto Scaling Group | `map(string)` | `{}` | no |
38+
| <a name="input_enable_throttling"></a> [enable\_throttling](#input\_enable\_throttling) | whether to enable throttling | `bool` | `false` | no |
3739
| <a name="input_limit"></a> [limit](#input\_limit) | The maximum number of requests that can be made in a given time period. | `number` | `5000` | no |
3840
| <a name="input_name"></a> [name](#input\_name) | Usage plan name | `string` | n/a | yes |
3941
| <a name="input_offset"></a> [offset](#input\_offset) | The number of requests subtracted from the given limit in the initial time period. | `number` | `2` | no |
4042
| <a name="input_period"></a> [period](#input\_period) | The time period in which the limit applies. Valid values are DAY, WEEK or MONTH. | `string` | `"MONTH"` | no |
4143
| <a name="input_quota_settings_unlimited"></a> [quota\_settings\_unlimited](#input\_quota\_settings\_unlimited) | Specifies whether there is a unlimited quota limit . | `bool` | `false` | no |
44+
| <a name="input_rate_limit"></a> [rate\_limit](#input\_rate\_limit) | The rate limit, as a number of requests per second, to apply to this usage plan. | `number` | `100` | no |
4245
| <a name="input_stages"></a> [stages](#input\_stages) | List of stages the usage plan can be used | <pre>map(<br> object({<br> api_id = string<br> stage = string<br> })<br> )</pre> | n/a | yes |
4346

4447
## Outputs

outputs.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,8 @@ output "aws_api_gateway_rest_api_root_resource_id" {
3232
value = aws_api_gateway_rest_api.api.root_resource_id
3333
description = "Root resource ID of the API Gateway REST API"
3434
}
35+
36+
output "aws_api_gateway_stage_arn" {
37+
value = aws_api_gateway_stage.stage.arn
38+
description = "ARN (for management) of apigw stage, use this when attaching Web ACL"
39+
}

0 commit comments

Comments
 (0)