Skip to content

Commit c54bd1f

Browse files
Merge commit '9060ee1c8c16dc6d5746152a3f737d69762da99e' into release
2 parents 45a609b + 9060ee1 commit c54bd1f

File tree

6 files changed

+56
-3
lines changed

6 files changed

+56
-3
lines changed

CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
## [Unreleased]
44

5+
## [0.11.5] - 2022-04-02
6+
7+
- Adds support for route-manifest v4 ([#292](https://github.com/milliHQ/terraform-aws-next-js/pull/292))
8+
This ensures the builder works with Next.js versions `>= v12.1.3`.
9+
- Restrict [image optimizer](https://github.com/milliHQ/terraform-aws-next-js-image-optimization) submodule version to `<= v12.0.10` ([#293](https://github.com/milliHQ/terraform-aws-next-js/pull/293))
10+
Since the `v12.0.10` release is the last version with support for [Terraform AWS Provider](https://registry.terraform.io/providers/hashicorp/aws/) `v3.x` this update ensures existing setups will not break in the future.
11+
- Bump @vercel/build-utils from `2.10.1` to `2.12.1` ([#287](https://github.com/milliHQ/terraform-aws-next-js/pull/287))
12+
513
## [0.11.4] - 2022-02-01
614

715
### Fixed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,8 @@ So issues that exist on Vercel are likely to occur on this project too.
282282

283283
You should be able to run`terraform apply` again and the stack creation would progreed without this error.
284284

285+
- [Function decreases account's UnreservedConcurrentExecution below its minimum value](https://github.com/milliHQ/terraform-aws-next-js/tree/main/docs/known-issues/0001_reserved-concurrent-executions.md)
286+
285287
## Contributing
286288

287289
Contributions are welcome!
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Function decreases account's UnreservedConcurrentExecution below its minimum value
2+
3+
<table>
4+
<tr>
5+
<th>Status</th>
6+
<td>workaround available</td>
7+
</tr>
8+
<tr>
9+
<th>x-ref</th>
10+
<td>
11+
<a href="https://github.com/milliHQ/terraform-aws-next-js/issues/251">#251</a>
12+
</td>
13+
</tr>
14+
</table>
15+
16+
## Error message
17+
18+
After running the initial `terraform apply`, the command fails with the following error message:
19+
20+
> Specified ReservedConcurrentExecutions for function decreases account's UnreservedConcurrentExecution below its minimum value of [50].
21+
22+
## Problem
23+
24+
The module requests a reserved concurrent execution of 1 for the deploy-trigger component.
25+
This is a Lambda function that runs after every apply and is responsible for updating files in the associated S3 bucket.
26+
27+
To ensure that concurrent deployments do not override each other, we limit the maximal number of concurrent instances of this function to 1.
28+
29+
While this produces no extra costs, it counts towards the account's concurrent executions quota.
30+
31+
For newer AWS accounts this quota has been lowered from 1000 to 50.
32+
33+
Since 50 is the account's required minimum for concurrent executions, no new lambda with a reserved concurrent execution can be created.
34+
35+
## Workaround
36+
37+
You can simply request an increase of the "Concurrent executions quota" (L-B99A9384) through the AWS console at no extra costs.
38+
39+
The quota increase can be requested here: https://console.aws.amazon.com/servicequotas/home/services/lambda/quotas/L-B99A9384
40+
41+
Any value greater than 50 should work, the [default quota is 1000](https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html#compute-and-storage).
42+
43+
It usually takes 2-3 business days until the increase is granted.

main.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ module "next_image" {
148148
count = var.create_image_optimization ? 1 : 0
149149

150150
source = "milliHQ/next-js-image-optimization/aws"
151-
version = ">= 11.0.0"
151+
version = "~> 12.0.10"
152152

153153
cloudfront_create_distribution = false
154154

modules/proxy/variables.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
variable "proxy_module_version" {
66
type = string
7-
default = "0.11.4"
7+
default = "0.11.5"
88
}
99

1010
variable "lambda_default_runtime" {

modules/statics-deploy/variables.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ variable "static_files_archive" {
44

55
variable "deploy_trigger_module_version" {
66
type = string
7-
default = "0.11.4"
7+
default = "0.11.5"
88
}
99

1010
variable "expire_static_assets" {

0 commit comments

Comments
 (0)