Skip to content

Commit f757c6a

Browse files
authored
Merge pull request #68 from minamijoyo/tf-1.9
Add support for Terraform 1.9
2 parents 8c76050 + 2b69f73 commit f757c6a

File tree

19 files changed

+74
-38
lines changed

19 files changed

+74
-38
lines changed

.github/workflows/test.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ jobs:
3434
strategy:
3535
matrix:
3636
terraform:
37-
- 1.3.6
38-
- 1.2.9
37+
- 1.9.0
38+
- 1.8.5
3939
env:
4040
TERRAFORM_VERSION: ${{ matrix.terraform }}
4141
steps:

filter/awsv4upgrade/provider_aws_test.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ provider "aws" {
4141
4242
# mock endpoints with localstack
4343
endpoints {
44-
s3 = "http://localstack:4566"
44+
s3 = "http://localstack:4566"
45+
iam = "http://localstack:4566"
4546
}
4647
4748
s3_force_path_style = true
@@ -61,7 +62,8 @@ provider "aws" {
6162
6263
# mock endpoints with localstack
6364
endpoints {
64-
s3 = "http://localstack:4566"
65+
s3 = "http://localstack:4566"
66+
iam = "http://localstack:4566"
6567
}
6668
6769
s3_use_path_style = true

test-fixtures/awsv4upgrade/aws_s3_bucket/acceleration_status/config.tf

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ terraform {
55
bucket = "tfstate-test"
66
key = "test/terraform.tfstate"
77

8-
# mock s3 endpoint with localstack
8+
# mock s3/iam endpoint with localstack
99
endpoint = "http://localstack:4566"
10+
iam_endpoint = "http://localstack:4566"
1011
access_key = "dummy"
1112
secret_key = "dummy"
1213
skip_credentials_validation = true
@@ -36,7 +37,8 @@ provider "aws" {
3637

3738
# mock endpoints with localstack
3839
endpoints {
39-
s3 = "http://localstack:4566"
40+
s3 = "http://localstack:4566"
41+
iam = "http://localstack:4566"
4042
}
4143

4244
s3_force_path_style = true

test-fixtures/awsv4upgrade/aws_s3_bucket/acl/config.tf

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ terraform {
55
bucket = "tfstate-test"
66
key = "test/terraform.tfstate"
77

8-
# mock s3 endpoint with localstack
8+
# mock s3/iam endpoint with localstack
99
endpoint = "http://localstack:4566"
10+
iam_endpoint = "http://localstack:4566"
1011
access_key = "dummy"
1112
secret_key = "dummy"
1213
skip_credentials_validation = true
@@ -36,7 +37,8 @@ provider "aws" {
3637

3738
# mock endpoints with localstack
3839
endpoints {
39-
s3 = "http://localstack:4566"
40+
s3 = "http://localstack:4566"
41+
iam = "http://localstack:4566"
4042
}
4143

4244
s3_force_path_style = true

test-fixtures/awsv4upgrade/aws_s3_bucket/cors_rule/config.tf

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ terraform {
55
bucket = "tfstate-test"
66
key = "test/terraform.tfstate"
77

8-
# mock s3 endpoint with localstack
8+
# mock s3/iam endpoint with localstack
99
endpoint = "http://localstack:4566"
10+
iam_endpoint = "http://localstack:4566"
1011
access_key = "dummy"
1112
secret_key = "dummy"
1213
skip_credentials_validation = true
@@ -36,7 +37,8 @@ provider "aws" {
3637

3738
# mock endpoints with localstack
3839
endpoints {
39-
s3 = "http://localstack:4566"
40+
s3 = "http://localstack:4566"
41+
iam = "http://localstack:4566"
4042
}
4143

4244
s3_force_path_style = true

test-fixtures/awsv4upgrade/aws_s3_bucket/count/config.tf

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ terraform {
55
bucket = "tfstate-test"
66
key = "test/terraform.tfstate"
77

8-
# mock s3 endpoint with localstack
8+
# mock s3/iam endpoint with localstack
99
endpoint = "http://localstack:4566"
10+
iam_endpoint = "http://localstack:4566"
1011
access_key = "dummy"
1112
secret_key = "dummy"
1213
skip_credentials_validation = true
@@ -36,7 +37,8 @@ provider "aws" {
3637

3738
# mock endpoints with localstack
3839
endpoints {
39-
s3 = "http://localstack:4566"
40+
s3 = "http://localstack:4566"
41+
iam = "http://localstack:4566"
4042
}
4143

4244
s3_force_path_style = true

test-fixtures/awsv4upgrade/aws_s3_bucket/for_each/config.tf

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ terraform {
55
bucket = "tfstate-test"
66
key = "test/terraform.tfstate"
77

8-
# mock s3 endpoint with localstack
8+
# mock s3/iam endpoint with localstack
99
endpoint = "http://localstack:4566"
10+
iam_endpoint = "http://localstack:4566"
1011
access_key = "dummy"
1112
secret_key = "dummy"
1213
skip_credentials_validation = true
@@ -36,7 +37,8 @@ provider "aws" {
3637

3738
# mock endpoints with localstack
3839
endpoints {
39-
s3 = "http://localstack:4566"
40+
s3 = "http://localstack:4566"
41+
iam = "http://localstack:4566"
4042
}
4143

4244
s3_force_path_style = true

test-fixtures/awsv4upgrade/aws_s3_bucket/full/config.tf

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ terraform {
55
bucket = "tfstate-test"
66
key = "test/terraform.tfstate"
77

8-
# mock s3 endpoint with localstack
8+
# mock s3/iam endpoint with localstack
99
endpoint = "http://localstack:4566"
10+
iam_endpoint = "http://localstack:4566"
1011
access_key = "dummy"
1112
secret_key = "dummy"
1213
skip_credentials_validation = true
@@ -36,7 +37,8 @@ provider "aws" {
3637

3738
# mock endpoints with localstack
3839
endpoints {
39-
s3 = "http://localstack:4566"
40+
s3 = "http://localstack:4566"
41+
iam = "http://localstack:4566"
4042
}
4143

4244
s3_force_path_style = true

test-fixtures/awsv4upgrade/aws_s3_bucket/grant/config.tf

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ terraform {
55
bucket = "tfstate-test"
66
key = "test/terraform.tfstate"
77

8-
# mock s3 endpoint with localstack
8+
# mock s3/iam endpoint with localstack
99
endpoint = "http://localstack:4566"
10+
iam_endpoint = "http://localstack:4566"
1011
access_key = "dummy"
1112
secret_key = "dummy"
1213
skip_credentials_validation = true
@@ -36,7 +37,8 @@ provider "aws" {
3637

3738
# mock endpoints with localstack
3839
endpoints {
39-
s3 = "http://localstack:4566"
40+
s3 = "http://localstack:4566"
41+
iam = "http://localstack:4566"
4042
}
4143

4244
s3_force_path_style = true

test-fixtures/awsv4upgrade/aws_s3_bucket/lifecycle_rule/config.tf

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ terraform {
55
bucket = "tfstate-test"
66
key = "test/terraform.tfstate"
77

8-
# mock s3 endpoint with localstack
8+
# mock s3/iam endpoint with localstack
99
endpoint = "http://localstack:4566"
10+
iam_endpoint = "http://localstack:4566"
1011
access_key = "dummy"
1112
secret_key = "dummy"
1213
skip_credentials_validation = true
@@ -36,7 +37,8 @@ provider "aws" {
3637

3738
# mock endpoints with localstack
3839
endpoints {
39-
s3 = "http://localstack:4566"
40+
s3 = "http://localstack:4566"
41+
iam = "http://localstack:4566"
4042
}
4143

4244
s3_force_path_style = true

0 commit comments

Comments
 (0)