Skip to content

Commit 3174fd6

Browse files
authored
Merge pull request #828 from terraform-linters/bump_aws_provider
Bump terraform-provider-aws to v2.68.0 from v2.65.0
2 parents 93f0910 + 072a9e7 commit 3174fd6

24 files changed

+168
-191
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ lint:
2020
clean:
2121
rm -rf dist/
2222

23-
code: prepare
23+
code:
2424
go generate ./...
2525

2626
.PHONY: prepare test build install lint clean code

docs/guides/compatibility.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Some inspections implicitly assume the behavior of a specific version of provider plugins or Terraform. This always assumes the latest version and is as follows:
44

55
- Terraform v0.12.28
6-
- AWS Provider v2.65.0
6+
- AWS Provider v2.68.0
77

88
Of course, TFLint may work correctly if you run it on other versions. But, false positives/negatives can occur based on this assumption.
99

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ require (
2222
github.com/sourcegraph/jsonrpc2 v0.0.0-20190106185902-35a74f039c6a
2323
github.com/spf13/afero v1.3.0
2424
github.com/terraform-linters/tflint-plugin-sdk v0.2.0
25-
github.com/terraform-providers/terraform-provider-aws v2.65.0+incompatible
25+
github.com/terraform-providers/terraform-provider-aws v2.68.0+incompatible
2626
github.com/zclconf/go-cty v1.5.1
2727
golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f
2828
)
2929

30-
replace github.com/terraform-providers/terraform-provider-aws v2.65.0+incompatible => github.com/terraform-providers/terraform-provider-aws v1.60.1-0.20200604234259-3853d337c01a
30+
replace github.com/terraform-providers/terraform-provider-aws v2.68.0+incompatible => github.com/terraform-providers/terraform-provider-aws v1.60.1-0.20200625234409-8688f3adfb43

go.sum

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,8 @@ github.com/armon/go-radix v1.0.0/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgI
7575
github.com/aws/aws-sdk-go v1.15.78/go.mod h1:E3/ieXAlvM0XWO57iftYVDLLvQ824smPP3ATZkfNZeM=
7676
github.com/aws/aws-sdk-go v1.25.3/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN924inxo=
7777
github.com/aws/aws-sdk-go v1.30.12/go.mod h1:5zCpMtNQVjRREroY7sYe8lOMRSxkhG6MZveU8YkpAk0=
78-
github.com/aws/aws-sdk-go v1.31.2/go.mod h1:5zCpMtNQVjRREroY7sYe8lOMRSxkhG6MZveU8YkpAk0=
7978
github.com/aws/aws-sdk-go v1.31.9/go.mod h1:5zCpMtNQVjRREroY7sYe8lOMRSxkhG6MZveU8YkpAk0=
80-
github.com/aws/aws-sdk-go v1.32.7 h1:H4VgdCSF1cHw0VD8zGc98T1bGdACoLkh/vK2L6wgOUU=
81-
github.com/aws/aws-sdk-go v1.32.7/go.mod h1:5zCpMtNQVjRREroY7sYe8lOMRSxkhG6MZveU8YkpAk0=
79+
github.com/aws/aws-sdk-go v1.32.3/go.mod h1:5zCpMtNQVjRREroY7sYe8lOMRSxkhG6MZveU8YkpAk0=
8280
github.com/aws/aws-sdk-go v1.32.11 h1:1nYF+Tfccn/hnAZsuwPPMSCVUVnx3j6LKOpx/WhgH0A=
8381
github.com/aws/aws-sdk-go v1.32.11/go.mod h1:5zCpMtNQVjRREroY7sYe8lOMRSxkhG6MZveU8YkpAk0=
8482
github.com/baiyubin/aliyun-sts-go-sdk v0.0.0-20180326062324-cfa1a18b161f/go.mod h1:AuiFmCCPBSrqvVMvuqFuk0qogytodnVFVSN5CeJB8Gc=
@@ -280,6 +278,8 @@ github.com/hashicorp/go-immutable-radix v0.0.0-20180129170900-7f3cd4390caa/go.mo
280278
github.com/hashicorp/go-msgpack v0.5.4/go.mod h1:ahLV/dePpqEmjfWmKiqvPkv/twdG7iPBM1vqhUKIvfM=
281279
github.com/hashicorp/go-multierror v1.0.0 h1:iVjPR7a6H0tWELX5NxNe7bYopibicUzc7uPribsnS6o=
282280
github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk=
281+
github.com/hashicorp/go-multierror v1.1.0 h1:B9UzwGQJehnUY1yNrnwREHc3fGbC2xefo8g4TbElacI=
282+
github.com/hashicorp/go-multierror v1.1.0/go.mod h1:spPvp8C1qA32ftKqdAHm4hHTbPw+vmowP0z+KUhOZdA=
283283
github.com/hashicorp/go-plugin v1.0.1/go.mod h1:++UyYGoz3o5w9ZzAdZxtQKrWWP+iqPBn3cQptSMzBuY=
284284
github.com/hashicorp/go-plugin v1.2.0/go.mod h1:F9eH4LrE/ZsRdbwhfjs9k9HoDUwAHnYtXdgmf1AVNs0=
285285
github.com/hashicorp/go-plugin v1.3.0 h1:4d/wJojzvHV1I4i/rrjVaeuyxWrLzDE1mDCyDy8fXS8=
@@ -330,7 +330,6 @@ github.com/hashicorp/terraform-json v0.4.0/go.mod h1:eAbqb4w0pSlRmdvl8fOyHAi/+8j
330330
github.com/hashicorp/terraform-json v0.5.0 h1:7TV3/F3y7QVSuN4r9BEXqnWqrAyeOtON8f0wvREtyzs=
331331
github.com/hashicorp/terraform-json v0.5.0/go.mod h1:eAbqb4w0pSlRmdvl8fOyHAi/+8jnkVYN28gJkSJrLhU=
332332
github.com/hashicorp/terraform-plugin-sdk v1.7.0/go.mod h1:OjgQmey5VxnPej/buEhe+YqKm0KNvV3QqU4hkqHqPCY=
333-
github.com/hashicorp/terraform-plugin-sdk v1.13.1/go.mod h1:HiWIPD/T9HixIhQUwaSoDQxo4BLFdmiBi/Qz5gjB8Q0=
334333
github.com/hashicorp/terraform-plugin-sdk v1.14.0 h1:sUKcw7OHqDXhBarlHjv+/yMCr8eEb1lO8CGQ3pEEFiE=
335334
github.com/hashicorp/terraform-plugin-sdk v1.14.0/go.mod h1:t62Xy+m7Zjq5tA2vrs8Wuo/TQ0sc9Mx9MjXL3+7MHBQ=
336335
github.com/hashicorp/terraform-plugin-test v1.2.0/go.mod h1:QIJHYz8j+xJtdtLrFTlzQVC0ocr3rf/OjIpgZLK56Hs=
@@ -423,8 +422,6 @@ github.com/mattn/go-colorable v0.1.1 h1:G1f5SKeVxmagw/IyvzvtZE4Gybcc4Tr1tf7I8z0X
423422
github.com/mattn/go-colorable v0.1.1/go.mod h1:FuOcm+DKB9mbwrcAfNl7/TZVBZ6rcnceauSikq3lYCQ=
424423
github.com/mattn/go-colorable v0.1.4 h1:snbPLB8fVfU9iwbbo30TPtbLRzwWu6aJS6Xh4eaaviA=
425424
github.com/mattn/go-colorable v0.1.4/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE=
426-
github.com/mattn/go-colorable v0.1.6 h1:6Su7aK7lXmJ/U79bYtBjLNaha4Fs1Rg9plHpcH+vvnE=
427-
github.com/mattn/go-colorable v0.1.6/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc=
428425
github.com/mattn/go-colorable v0.1.7 h1:bQGKb3vps/j0E9GfJQ03JyhRuxsvdAanXlT9BTw3mdw=
429426
github.com/mattn/go-colorable v0.1.7/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc=
430427
github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4=
@@ -598,8 +595,8 @@ github.com/tencentcloud/tencentcloud-sdk-go v3.0.82+incompatible/go.mod h1:0PfYo
598595
github.com/tencentyun/cos-go-sdk-v5 v0.0.0-20190808065407-f07404cefc8c/go.mod h1:wk2XFUg6egk4tSDNZtXeKfe2G6690UVyt163PuUxBZk=
599596
github.com/terraform-linters/tflint-plugin-sdk v0.2.0 h1:kLNBJatWgylUL1Iieys3DnaCVHChTMEqft5BW7+NVyk=
600597
github.com/terraform-linters/tflint-plugin-sdk v0.2.0/go.mod h1:QoSqSV/8GSOrQy3OStK3EEdsA3yZm13My4BQcnx3Zic=
601-
github.com/terraform-providers/terraform-provider-aws v1.60.1-0.20200604234259-3853d337c01a h1:ujCTSJYKH0UMgO2tNl9PD8imfkf3jQdvgE+4NOjp78k=
602-
github.com/terraform-providers/terraform-provider-aws v1.60.1-0.20200604234259-3853d337c01a/go.mod h1:qu2Yl7WdzjH6gyX9SrG8vuSgqNlNRlP7hmCPXnPvFRc=
598+
github.com/terraform-providers/terraform-provider-aws v1.60.1-0.20200625234409-8688f3adfb43 h1:tt30KJTNH0vBqyvbVhW+QHa2I1ciwh1XmyIl/m5fjJ4=
599+
github.com/terraform-providers/terraform-provider-aws v1.60.1-0.20200625234409-8688f3adfb43/go.mod h1:0U3OgA2uDYSc7gNkdWA92+/BxWXwuYhWqqZ4UhM1RCw=
603600
github.com/terraform-providers/terraform-provider-openstack v1.15.0/go.mod h1:2aQ6n/BtChAl1y2S60vebhyJyZXBsuAI5G4+lHrT1Ew=
604601
github.com/tetafro/godot v0.3.3/go.mod h1:pT6/T8+h6//L/LwQcFc4C0xpfy1euZwzS1sHdrFCms0=
605602
github.com/timakin/bodyclose v0.0.0-20190930140734-f7f2e9bca95e/go.mod h1:Qimiffbc6q9tBWlVV6x0P9sat/ao1xEkREYPPj9hphk=

rules/awsrules/models/aws-sdk-go

Submodule aws-sdk-go updated 224 files

rules/awsrules/models/aws_fsx_lustre_file_system_invalid_export_path.go

Lines changed: 0 additions & 87 deletions
This file was deleted.

rules/awsrules/models/aws_fsx_lustre_file_system_invalid_import_path.go

Lines changed: 0 additions & 87 deletions
This file was deleted.

rules/awsrules/models/aws_instance_invalid_type.go

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,15 @@ func NewAwsInstanceInvalidTypeRule() *AwsInstanceInvalidTypeRule {
108108
"r5ad.12xlarge",
109109
"r5ad.16xlarge",
110110
"r5ad.24xlarge",
111+
"r6g.metal",
112+
"r6g.medium",
113+
"r6g.large",
114+
"r6g.xlarge",
115+
"r6g.2xlarge",
116+
"r6g.4xlarge",
117+
"r6g.8xlarge",
118+
"r6g.12xlarge",
119+
"r6g.16xlarge",
111120
"x1.16xlarge",
112121
"x1.32xlarge",
113122
"x1e.xlarge",
@@ -181,6 +190,15 @@ func NewAwsInstanceInvalidTypeRule() *AwsInstanceInvalidTypeRule {
181190
"c5n.4xlarge",
182191
"c5n.9xlarge",
183192
"c5n.18xlarge",
193+
"c6g.metal",
194+
"c6g.medium",
195+
"c6g.large",
196+
"c6g.xlarge",
197+
"c6g.2xlarge",
198+
"c6g.4xlarge",
199+
"c6g.8xlarge",
200+
"c6g.12xlarge",
201+
"c6g.16xlarge",
184202
"cc1.4xlarge",
185203
"cc2.8xlarge",
186204
"g2.2xlarge",

rules/awsrules/models/aws_launch_configuration_invalid_type.go

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,15 @@ func NewAwsLaunchConfigurationInvalidTypeRule() *AwsLaunchConfigurationInvalidTy
108108
"r5ad.12xlarge",
109109
"r5ad.16xlarge",
110110
"r5ad.24xlarge",
111+
"r6g.metal",
112+
"r6g.medium",
113+
"r6g.large",
114+
"r6g.xlarge",
115+
"r6g.2xlarge",
116+
"r6g.4xlarge",
117+
"r6g.8xlarge",
118+
"r6g.12xlarge",
119+
"r6g.16xlarge",
111120
"x1.16xlarge",
112121
"x1.32xlarge",
113122
"x1e.xlarge",
@@ -181,6 +190,15 @@ func NewAwsLaunchConfigurationInvalidTypeRule() *AwsLaunchConfigurationInvalidTy
181190
"c5n.4xlarge",
182191
"c5n.9xlarge",
183192
"c5n.18xlarge",
193+
"c6g.metal",
194+
"c6g.medium",
195+
"c6g.large",
196+
"c6g.xlarge",
197+
"c6g.2xlarge",
198+
"c6g.4xlarge",
199+
"c6g.8xlarge",
200+
"c6g.12xlarge",
201+
"c6g.16xlarge",
184202
"cc1.4xlarge",
185203
"cc2.8xlarge",
186204
"g2.2xlarge",

rules/awsrules/models/aws_launch_template_invalid_instance_type.go

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,15 @@ func NewAwsLaunchTemplateInvalidInstanceTypeRule() *AwsLaunchTemplateInvalidInst
108108
"r5ad.12xlarge",
109109
"r5ad.16xlarge",
110110
"r5ad.24xlarge",
111+
"r6g.metal",
112+
"r6g.medium",
113+
"r6g.large",
114+
"r6g.xlarge",
115+
"r6g.2xlarge",
116+
"r6g.4xlarge",
117+
"r6g.8xlarge",
118+
"r6g.12xlarge",
119+
"r6g.16xlarge",
111120
"x1.16xlarge",
112121
"x1.32xlarge",
113122
"x1e.xlarge",
@@ -181,6 +190,15 @@ func NewAwsLaunchTemplateInvalidInstanceTypeRule() *AwsLaunchTemplateInvalidInst
181190
"c5n.4xlarge",
182191
"c5n.9xlarge",
183192
"c5n.18xlarge",
193+
"c6g.metal",
194+
"c6g.medium",
195+
"c6g.large",
196+
"c6g.xlarge",
197+
"c6g.2xlarge",
198+
"c6g.4xlarge",
199+
"c6g.8xlarge",
200+
"c6g.12xlarge",
201+
"c6g.16xlarge",
184202
"cc1.4xlarge",
185203
"cc2.8xlarge",
186204
"g2.2xlarge",

rules/awsrules/models/aws_organizations_account_invalid_parent_id.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import (
1515
type AwsOrganizationsAccountInvalidParentIDRule struct {
1616
resourceType string
1717
attributeName string
18+
max int
1819
pattern *regexp.Regexp
1920
}
2021

@@ -23,6 +24,7 @@ func NewAwsOrganizationsAccountInvalidParentIDRule() *AwsOrganizationsAccountInv
2324
return &AwsOrganizationsAccountInvalidParentIDRule{
2425
resourceType: "aws_organizations_account",
2526
attributeName: "parent_id",
27+
max: 100,
2628
pattern: regexp.MustCompile(`^(r-[0-9a-z]{4,32})|(ou-[0-9a-z]{4,32}-[a-z0-9]{8,32})$`),
2729
}
2830
}
@@ -56,6 +58,13 @@ func (r *AwsOrganizationsAccountInvalidParentIDRule) Check(runner *tflint.Runner
5658
err := runner.EvaluateExpr(attribute.Expr, &val)
5759

5860
return runner.EnsureNoError(err, func() error {
61+
if len(val) > r.max {
62+
runner.EmitIssue(
63+
r,
64+
"parent_id must be 100 characters or less",
65+
attribute.Expr.Range(),
66+
)
67+
}
5968
if !r.pattern.MatchString(val) {
6069
runner.EmitIssue(
6170
r,

0 commit comments

Comments
 (0)