Skip to content

Commit 33ae64c

Browse files
Merge commit '4b3dfff74ab403dae909026f726db7151aa4be8f' into release-v0.x
2 parents 69f04c6 + 4b3dfff commit 33ae64c

File tree

14 files changed

+46
-32
lines changed

14 files changed

+46
-32
lines changed

.github/workflows/CI.yml

+14-5
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
push:
55
branches:
66
- main
7-
- v[0-9]+.[0-9x]+.x
7+
- v[0-9]+.[0-9x]
88
pull_request:
99

1010
env:
@@ -13,9 +13,12 @@ env:
1313
jobs:
1414
build:
1515
runs-on: ubuntu-latest
16-
container: registry.gitlab.com/dealmore/dealmore-build-images/lambda:nodejs14.x
16+
container: public.ecr.aws/sam/build-nodejs16.x:latest
1717

1818
steps:
19+
- name: Install yarn
20+
run: npm install --global [email protected]
21+
1922
- uses: actions/checkout@v2
2023

2124
- name: Cache
@@ -48,7 +51,7 @@ jobs:
4851
test-integration:
4952
needs: build
5053
runs-on: ubuntu-latest
51-
container: registry.gitlab.com/dealmore/dealmore-build-images/lambda:nodejs14.x
54+
container: public.ecr.aws/sam/build-nodejs16.x:latest
5255
services:
5356
s3:
5457
image: registry.gitlab.com/dealmore/dealmore-build-images:s3-emulator
@@ -62,6 +65,9 @@ jobs:
6265
S3_ENDPOINT: s3:9000
6366

6467
steps:
68+
- name: Install yarn
69+
run: npm install --global [email protected]
70+
6571
- uses: actions/checkout@v2
6672

6773
- name: Cache
@@ -87,8 +93,11 @@ jobs:
8793
test-e2e-prepare:
8894
needs: build
8995
runs-on: ubuntu-latest
90-
container: registry.gitlab.com/dealmore/dealmore-build-images/lambda:nodejs14.x
96+
container: public.ecr.aws/sam/build-nodejs16.x:latest
9197
steps:
98+
- name: Install yarn
99+
run: npm install --global [email protected]
100+
92101
- uses: actions/checkout@v2
93102

94103
- name: Cache
@@ -183,7 +192,7 @@ jobs:
183192
name: Potentially publish release
184193
runs-on: ubuntu-latest
185194
needs: [build, test-integration, test-e2e]
186-
if: github.ref == 'refs/heads/main'
195+
if: ${{ (github.ref == 'refs/heads/main') || (github.ref == 'refs/heads/v0.x') }}
187196
env:
188197
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
189198

.github/workflows/lint.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
push:
55
branches:
66
- main
7-
- v[0-9]+.[0-9x]+.x
7+
- v[0-9]+.[0-9x]
88
pull_request:
99

1010
jobs:

.github/workflows/tf-docs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
push:
88
branches:
99
- main
10-
- v[0-9]+.[0-9x]+.x
10+
- v[0-9]+.[0-9x]
1111

1212
jobs:
1313
update-docs:

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
## [Unreleased]
44

5+
## [0.13.0] - 2022-05-28
6+
7+
- Adds support for nodejs16.x runtime ([#318](https://github.com/milliHQ/terraform-aws-next-js/pull/318), [#316](https://github.com/milliHQ/terraform-aws-next-js/issues/316), [#315](https://github.com/milliHQ/terraform-aws-next-js/issues/315))
8+
- Increases minimum required Terraform AWS provider version from `4.8` to `4.15.0`
9+
510
## [0.12.2] - 2022-04-16
611

712
- Append querystring to redirects ([#296](https://github.com/milliHQ/terraform-aws-next-js/issues/296), [#304](https://github.com/milliHQ/terraform-aws-next-js/pull/304))

README.md

+11-11
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Some features are still under development, here is a list of features that are c
2020

2121
The Next.js Terraform module is designed as a full stack AWS app. It relies on multiple AWS services and connects them to work as a single application:
2222

23-
![Architecture overview diagram](https://github.com/milliHQ/terraform-aws-next-js/blob/main/docs/assets/architecture.png?raw=true)
23+
![Architecture overview diagram](https://github.com/milliHQ/terraform-aws-next-js/blob/v0.x/docs/assets/architecture.png?raw=true)
2424

2525
- **`I.` CloudFront**
2626

@@ -181,15 +181,15 @@ You can create a `.terraformignore` in the root of your project and add the foll
181181

182182
## Examples
183183

184-
- [Complete](https://github.com/milliHQ/terraform-aws-next-js/tree/main/examples/complete)
184+
- [Complete](https://github.com/milliHQ/terraform-aws-next-js/tree/v0.x/examples/complete)
185185
Complete example with SSR, API and static pages.
186-
- [Static](https://github.com/milliHQ/terraform-aws-next-js/tree/main/examples/static)
186+
- [Static](https://github.com/milliHQ/terraform-aws-next-js/tree/v0.x/examples/static)
187187
Example that uses static pages only (No SSR).
188-
- [Next Image](https://github.com/milliHQ/terraform-aws-next-js/tree/main/examples/next-image)
188+
- [Next Image](https://github.com/milliHQ/terraform-aws-next-js/tree/v0.x/examples/next-image)
189189
Images are optimized on the fly by AWS Lambda.
190-
- [Existing CloudFront](https://github.com/milliHQ/terraform-aws-next-js/tree/main/examples/with-existing-cloudfront)
190+
- [Existing CloudFront](https://github.com/milliHQ/terraform-aws-next-js/tree/v0.x/examples/with-existing-cloudfront)
191191
Use the module together with an existing CloudFront distribution that can be fully customized.
192-
- [Custom Domain](https://github.com/milliHQ/terraform-aws-next-js/tree/main/examples/with-custom-domain)
192+
- [Custom Domain](https://github.com/milliHQ/terraform-aws-next-js/tree/v0.x/examples/with-custom-domain)
193193
Use the module with your own domain from Route 53.
194194

195195
<!-- prettier-ignore-start -->
@@ -199,13 +199,13 @@ You can create a `.terraformignore` in the root of your project and add the foll
199199
| Name | Version |
200200
|------|---------|
201201
| terraform | >= 0.15 |
202-
| aws | >= 4.8 |
202+
| aws | >= 4.15.0 |
203203

204204
## Providers
205205

206206
| Name | Version |
207207
|------|---------|
208-
| aws | >= 4.8 |
208+
| aws | >= 4.15.0 |
209209

210210
## Inputs
211211

@@ -233,7 +233,7 @@ You can create a `.terraformignore` in the root of your project and add the foll
233233
| lambda\_memory\_size | Amount of memory in MB a Lambda Function can use at runtime. Valid value between 128 MB to 10,240 MB, in 1 MB increments. | `number` | `1024` | no |
234234
| lambda\_policy\_json | Additional policy document as JSON to attach to the Lambda Function role | `string` | `null` | no |
235235
| lambda\_role\_permissions\_boundary | ARN of IAM policy that scopes aws\_iam\_role access for the lambda | `string` | `null` | no |
236-
| lambda\_runtime | Lambda Function runtime | `string` | `"nodejs14.x"` | no |
236+
| lambda\_runtime | Lambda Function runtime | `string` | `"nodejs16.x"` | no |
237237
| lambda\_timeout | Max amount of time a Lambda Function has to return a response in seconds. Should not be more than 30 (Limited by API Gateway). | `number` | `10` | no |
238238
| next\_tf\_dir | Relative path to the .next-tf dir. | `string` | `"./.next-tf"` | no |
239239
| tags | Tag metadata to label AWS resources that support tags. | `map(string)` | `{}` | no |
@@ -281,9 +281,9 @@ So issues that exist on Vercel are likely to occur on this project too.
281281

282282
**Workaround:**
283283

284-
You should be able to run`terraform apply` again and the stack creation would progreed without this error.
284+
You should be able to run`terraform apply` again and the stack creation would proceed without this error.
285285

286-
- [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+
- [Function decreases account's UnreservedConcurrentExecution below its minimum value](https://github.com/milliHQ/terraform-aws-next-js/tree/v0.x/docs/known-issues/0001_reserved-concurrent-executions.md)
287287

288288
## Contributing
289289

examples/complete/README.md

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

33
This example contains a fully featured Next.js app (Static files, API-Routes, SSR) that can be deployed using the [Terraform Next.js for AWS](https://registry.terraform.io/modules/milliHQ/next-js/aws) module.
44

5-
You can find the full example code on [GitHub](https://github.com/milliHQ/terraform-aws-next-js/tree/main/examples/complete).
5+
You can find the full example code on [GitHub](https://github.com/milliHQ/terraform-aws-next-js/tree/v0.x/examples/complete).
66

77
## Setup
88

99
Download the files from the example app:
1010

1111
```sh
12-
yarn create next-app --example https://github.com/milliHQ/terraform-aws-next-js/tree/main/examples/complete my-app
12+
yarn create next-app --example https://github.com/milliHQ/terraform-aws-next-js/tree/v0.x/examples/complete my-app
1313

1414
cd my-app
1515
```

examples/next-image/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Terraform Next.js Image component example
22

33
This example shows the usage of Next.js together with the `next/image` component.
4-
You can find the full example code on [GitHub](https://github.com/milliHQ/terraform-aws-next-js/tree/main/examples/next-image).
4+
You can find the full example code on [GitHub](https://github.com/milliHQ/terraform-aws-next-js/tree/v0.x/examples/next-image).
55

66
> **Note:** Support for `next/image` component is enabled in the Terraform Next.js module by default and requires no extra config other than the standard setup!
77
@@ -10,7 +10,7 @@ You can find the full example code on [GitHub](https://github.com/milliHQ/terraf
1010
Download the files from the example app:
1111

1212
```sh
13-
yarn create next-app --example https://github.com/milliHQ/terraform-aws-next-js/tree/main/examples/next-image my-app
13+
yarn create next-app --example https://github.com/milliHQ/terraform-aws-next-js/tree/v0.x/examples/next-image my-app
1414

1515
cd my-app
1616
```

examples/static/README.md

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

33
This example shows a simple static Next.js app that is deployed to S3 without lambdas using the [Terraform Next.js for AWS](https://registry.terraform.io/modules/milliHQ/next-js/aws) module.
44

5-
You can find the full example code on [GitHub](https://github.com/milliHQ/terraform-aws-next-js/tree/main/examples/static).
5+
You can find the full example code on [GitHub](https://github.com/milliHQ/terraform-aws-next-js/tree/v0.x/examples/static).
66

77
## Setup
88

99
Download the files from the example app:
1010

1111
```sh
12-
yarn create next-app --example https://github.com/milliHQ/terraform-aws-next-js/tree/main/examples/static my-app
12+
yarn create next-app --example https://github.com/milliHQ/terraform-aws-next-js/tree/v0.x/examples/static my-app
1313

1414
cd my-app
1515
```

examples/with-custom-domain/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ This example shows how to use a custom domain with the [Next.js Terraform module
88
- Provisions a free SSL certificate from the AWS Certificate Manager for the domain
99
- Assigns the domain and the SSL certificate to the CloudFront distribution
1010

11-
> **Note:** You can find the full example code on [GitHub](https://github.com/milliHQ/terraform-aws-next-js/tree/main/examples/with-custom-domain).
11+
> **Note:** You can find the full example code on [GitHub](https://github.com/milliHQ/terraform-aws-next-js/tree/v0.x/examples/with-custom-domain).
1212
1313
## Setup
1414

1515
Download the files from the example app:
1616

1717
```sh
18-
yarn create next-app --example https://github.com/milliHQ/terraform-aws-next-js/tree/main/examples/with-custom-domain my-app
18+
yarn create next-app --example https://github.com/milliHQ/terraform-aws-next-js/tree/v0.x/examples/with-custom-domain my-app
1919

2020
cd my-app
2121
```

examples/with-existing-cloudfront/README.md

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

33
This example shows how to integrate the Terraform Next.js module for AWS into an existing CloudFront distribution (Without creating a new one).
44

5-
> **Note:** The full example code is available on [GitHub](https://github.com/milliHQ/terraform-aws-next-js/tree/main/examples/with-existing-cloudfront)
5+
> **Note:** The full example code is available on [GitHub](https://github.com/milliHQ/terraform-aws-next-js/tree/v0.x/examples/with-existing-cloudfront)
66
77
## Setup
88

99
Download the files from the example app:
1010

1111
```sh
12-
yarn create next-app --example https://github.com/milliHQ/terraform-aws-next-js/tree/main/examples/with-existing-cloudfront my-app
12+
yarn create next-app --example https://github.com/milliHQ/terraform-aws-next-js/tree/v0.x/examples/with-existing-cloudfront my-app
1313

1414
cd my-app
1515
```

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.12.2"
7+
default = "0.13.0"
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.12.2"
7+
default = "0.13.0"
88
}
99

1010
variable "expire_static_assets" {

variables.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ variable "lambda_environment_variables" {
4343
variable "lambda_runtime" {
4444
description = "Lambda Function runtime"
4545
type = string
46-
default = "nodejs14.x"
46+
default = "nodejs16.x"
4747
}
4848

4949
variable "lambda_memory_size" {

versions.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ terraform {
44
required_providers {
55
aws = {
66
source = "hashicorp/aws"
7-
version = ">= 4.8"
7+
version = ">= 4.15.0"
88
configuration_aliases = [aws.global_region]
99
}
1010
}

0 commit comments

Comments
 (0)