Skip to content

Commit 7dd9a65

Browse files
fix: Pin version to v3 due to number of breaking changes in v4 (#136)
Co-authored-by: Anton Babenko <[email protected]>
1 parent 3ca2f30 commit 7dd9a65

File tree

23 files changed

+120
-42
lines changed

23 files changed

+120
-42
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,5 @@ override.tf.json
2727
# Ignore CLI configuration files
2828
.terraformrc
2929
terraform.rc
30+
31+
*.zip

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/antonbabenko/pre-commit-terraform
3-
rev: v1.62.3
3+
rev: v1.64.0
44
hooks:
55
- id: terraform_fmt
66
- id: terraform_validate

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,13 +108,13 @@ inputs = {
108108
| Name | Version |
109109
|------|---------|
110110
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.13.1 |
111-
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 3.69 |
111+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | ~> 3.69 |
112112

113113
## Providers
114114

115115
| Name | Version |
116116
|------|---------|
117-
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 3.69 |
117+
| <a name="provider_aws"></a> [aws](#provider\_aws) | ~> 3.69 |
118118

119119
## Modules
120120

examples/complete/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ Note that this example may create resources which cost money. Run `terraform des
3030
| Name | Version |
3131
|------|---------|
3232
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.13.1 |
33-
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 3.60 |
33+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | ~> 3.69 |
3434
| <a name="requirement_random"></a> [random](#requirement\_random) | >= 2.0 |
3535

3636
## Providers
3737

3838
| Name | Version |
3939
|------|---------|
40-
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 3.60 |
40+
| <a name="provider_aws"></a> [aws](#provider\_aws) | ~> 3.69 |
4141
| <a name="provider_random"></a> [random](#provider\_random) | >= 2.0 |
4242

4343
## Modules

examples/complete/main.tf

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
1+
provider "aws" {
2+
region = local.region
3+
4+
# Make it faster by skipping something
5+
skip_get_ec2_platforms = true
6+
skip_metadata_api_check = true
7+
skip_region_validation = true
8+
skip_credentials_validation = true
9+
skip_requesting_account_id = true
10+
}
11+
112
locals {
213
bucket_name = "s3-bucket-${random_pet.this.id}"
14+
region = "eu-west-1"
315
}
416

517
data "aws_canonical_user_id" "current" {}

examples/complete/versions.tf

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,13 @@ terraform {
22
required_version = ">= 0.13.1"
33

44
required_providers {
5-
aws = ">= 3.60"
6-
random = ">= 2.0"
5+
aws = {
6+
source = "hashicorp/aws"
7+
version = "~> 3.69"
8+
}
9+
random = {
10+
source = "hashicorp/random"
11+
version = ">= 2.0"
12+
}
713
}
814
}

examples/notification/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

examples/notification/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ Note that this example may create resources which cost money. Run `terraform des
2020
| Name | Version |
2121
|------|---------|
2222
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.13.1 |
23-
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 3.50 |
23+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | ~> 3.69 |
2424
| <a name="requirement_null"></a> [null](#requirement\_null) | >= 2.0 |
2525
| <a name="requirement_random"></a> [random](#requirement\_random) | >= 2.0 |
2626

2727
## Providers
2828

2929
| Name | Version |
3030
|------|---------|
31-
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 3.50 |
31+
| <a name="provider_aws"></a> [aws](#provider\_aws) | ~> 3.69 |
3232
| <a name="provider_null"></a> [null](#provider\_null) | >= 2.0 |
3333
| <a name="provider_random"></a> [random](#provider\_random) | >= 2.0 |
3434

examples/notification/main.tf

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
1+
provider "aws" {
2+
region = local.region
3+
4+
# Make it faster by skipping something
5+
skip_get_ec2_platforms = true
6+
skip_metadata_api_check = true
7+
skip_region_validation = true
8+
skip_credentials_validation = true
9+
skip_requesting_account_id = true
10+
}
11+
112
locals {
213
bucket_name = "s3-bucket-${random_pet.this.id}"
14+
region = "eu-west-1"
315
}
416

517
resource "random_pet" "this" {

examples/notification/versions.tf

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,17 @@ terraform {
22
required_version = ">= 0.13.1"
33

44
required_providers {
5-
aws = ">= 3.50"
6-
random = ">= 2.0"
7-
null = ">= 2.0"
5+
aws = {
6+
source = "hashicorp/aws"
7+
version = "~> 3.69"
8+
}
9+
random = {
10+
source = "hashicorp/random"
11+
version = ">= 2.0"
12+
}
13+
null = {
14+
source = "hashicorp/null"
15+
version = ">= 2.0"
16+
}
817
}
918
}

0 commit comments

Comments
 (0)