Skip to content

Commit a563f61

Browse files
authored
Merge pull request #58 from byu-oit/node16
Update to Node.js 16
2 parents 007da59 + 7fe969b commit a563f61

File tree

8 files changed

+5748
-304
lines changed

8 files changed

+5748
-304
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ on:
44
pull_request:
55
branches: [master]
66
env:
7-
tf_version: "0.12.26" # must match value in examples/ci/advanced-example.tf
7+
tf_version: "1.2.0" # Must be within range specified in main.tf
8+
node_version: "16.x"
89
TF_IN_AUTOMATION: true
910

1011
jobs:
@@ -40,10 +41,10 @@ jobs:
4041
name: Terraform Format
4142
runs-on: ubuntu-latest
4243
steps:
43-
- uses: actions/checkout@v2
44+
- uses: actions/checkout@v3
4445

4546
- name: Terraform Setup
46-
uses: hashicorp/setup-terraform@v1
47+
uses: hashicorp/setup-terraform@v2
4748
with:
4849
terraform_version: ${{ env.tf_version }}
4950

@@ -58,7 +59,7 @@ jobs:
5859
strategy:
5960
matrix: ${{ fromJson(needs.env.outputs.matrix) }}
6061
steps:
61-
- uses: actions/checkout@v2
62+
- uses: actions/checkout@v3
6263

6364
- name: Configure AWS credentials
6465
uses: aws-actions/configure-aws-credentials@v1
@@ -68,7 +69,7 @@ jobs:
6869
aws-region: us-west-2
6970

7071
- name: Terraform Setup
71-
uses: hashicorp/setup-terraform@v1
72+
uses: hashicorp/setup-terraform@v2
7273
with:
7374
terraform_version: ${{ env.tf_version }}
7475

@@ -92,9 +93,9 @@ jobs:
9293
name: Build
9394
runs-on: ubuntu-latest
9495
steps:
95-
- uses: actions/checkout@v1
96+
- uses: actions/checkout@v3
9697
- name: Set up Node.js
97-
uses: actions/setup-node@v1
98+
uses: actions/setup-node@v2
9899
with:
99100
node-version: ${{ env.node_version }}
100101

@@ -106,10 +107,10 @@ jobs:
106107
name: Audit
107108
runs-on: ubuntu-latest
108109
steps:
109-
- uses: actions/checkout@v2
110+
- uses: actions/checkout@v3
110111

111112
- name: Set up Node.js
112-
uses: actions/setup-node@v1
113+
uses: actions/setup-node@v2
113114
with:
114115
node-version: ${{ env.node_version }}
115116

@@ -121,10 +122,10 @@ jobs:
121122
name: Lint
122123
runs-on: ubuntu-latest
123124
steps:
124-
- uses: actions/checkout@v2
125+
- uses: actions/checkout@v3
125126

126127
- name: Set up Node.js
127-
uses: actions/setup-node@v1
128+
uses: actions/setup-node@v2
128129
with:
129130
node-version: ${{ env.node_version }}
130131

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ This lambda function will tell CodeDeploy if the tests pass or fail.
1414

1515
```hcl
1616
module "postman_test_lambda" {
17-
source = "github.com/byu-oit/terraform-aws-postman-test-lambda?ref=v3.2.4"
17+
source = "github.com/byu-oit/terraform-aws-postman-test-lambda?ref=v4.0.0"
1818
app_name = "simple-example"
1919
postman_collections = [
2020
{
@@ -85,7 +85,7 @@ selecting your collection/environment and clicking on the info icon.
8585

8686
```hcl
8787
module "postman_test_lambda" {
88-
source = "github.com/byu-oit/terraform-aws-postman-test-lambda?ref=v3.2.4"
88+
source = "github.com/byu-oit/terraform-aws-postman-test-lambda?ref=v4.0.0"
8989
app_name = "from-postman-api-example"
9090
postman_collections = [
9191
{
@@ -100,7 +100,8 @@ module "postman_test_lambda" {
100100

101101
## Requirements
102102

103-
* Terraform version 0.12.16 or greater
103+
* Terraform version 1.0.0 or greater
104+
* Terraform AWS Provider version 3.75.2 or greater
104105
* _Postman JSON collections/environments files (optional)_ if you want export them to JSON files and include them in your project repo
105106
* _Postman API (optional)_ if you want to download Postman collections/environments from Postman instead of providing the json files in your repo
106107

examples/advanced/advanced-example.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
provider "aws" {
2-
version = "~> 3.0"
2+
version = "~> 3.75.2"
33
region = "us-west-2"
44
}
55

examples/simple/simple-example.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
provider "aws" {
2-
version = "~> 3.0"
2+
version = "~> 3.75.2"
33
region = "us-west-2"
44
}
55

lambda/dist/function.zip

198 KB
Binary file not shown.

0 commit comments

Comments
 (0)