Skip to content

Commit 81a3865

Browse files
bendruckergithub-actions[bot]
authored andcommitted
Update AWS provider/module and generated content
1 parent aabbfea commit 81a3865

File tree

9 files changed

+126
-39
lines changed

9 files changed

+126
-39
lines changed

aws/mock/ec2.go

Lines changed: 100 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ go 1.22.0
44

55
require (
66
github.com/agext/levenshtein v1.2.2 // indirect
7-
github.com/aws/aws-sdk-go v1.51.16
7+
github.com/aws/aws-sdk-go v1.51.30
88
github.com/dave/dst v0.27.3
99
github.com/fatih/color v1.13.0 // indirect
1010
github.com/golang/mock v1.6.0

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ github.com/agext/levenshtein v1.2.2/go.mod h1:JEDfjyjHDjOF/1e4FlBE/PkbqA9OfWu2ki
33
github.com/apparentlymart/go-textseg/v15 v15.0.0 h1:uYvfpb3DyLSCGWnctWKGj857c6ew1u1fNQOlOtuGxQY=
44
github.com/apparentlymart/go-textseg/v15 v15.0.0/go.mod h1:K8XmNZdhEBkdlyDdvbmmsvpAG721bKi0joRfFdHIWJ4=
55
github.com/aws/aws-sdk-go v1.31.9/go.mod h1:5zCpMtNQVjRREroY7sYe8lOMRSxkhG6MZveU8YkpAk0=
6-
github.com/aws/aws-sdk-go v1.51.16 h1:vnWKK8KjbftEkuPX8bRj3WHsLy1uhotn0eXptpvrxJI=
7-
github.com/aws/aws-sdk-go v1.51.16/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk=
6+
github.com/aws/aws-sdk-go v1.51.30 h1:RVFkjn9P0JMwnuZCVH0TlV5k9zepHzlbc4943eZMhGw=
7+
github.com/aws/aws-sdk-go v1.51.30/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk=
88
github.com/bufbuild/protocompile v0.4.0 h1:LbFKd2XowZvQ/kajzguUp2DC9UEIQhIq77fZZlaQsNA=
99
github.com/bufbuild/protocompile v0.4.0/go.mod h1:3v93+mbWn/v3xzN+31nwkJfrEpAUwp+BagBSZWx+TP8=
1010
github.com/dave/dst v0.27.3 h1:P1HPoMza3cMEquVf9kKy8yXsFirry4zEnWOdYPOoIzY=

rules/models/aws-sdk-go

Submodule aws-sdk-go updated 306 files

rules/models/aws_datasync_agent_invalid_name.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ type AwsDatasyncAgentInvalidNameRule struct {
1818
resourceType string
1919
attributeName string
2020
max int
21-
min int
2221
pattern *regexp.Regexp
2322
}
2423

@@ -28,7 +27,6 @@ func NewAwsDatasyncAgentInvalidNameRule() *AwsDatasyncAgentInvalidNameRule {
2827
resourceType: "aws_datasync_agent",
2928
attributeName: "name",
3029
max: 256,
31-
min: 1,
3230
pattern: regexp.MustCompile(`^[a-zA-Z0-9\s+=._:@/-]+$`),
3331
}
3432
}
@@ -80,13 +78,6 @@ func (r *AwsDatasyncAgentInvalidNameRule) Check(runner tflint.Runner) error {
8078
attribute.Expr.Range(),
8179
)
8280
}
83-
if len(val) < r.min {
84-
runner.EmitIssue(
85-
r,
86-
"name must be 1 characters or higher",
87-
attribute.Expr.Range(),
88-
)
89-
}
9081
if !r.pattern.MatchString(val) {
9182
runner.EmitIssue(
9283
r,

rules/models/aws_datasync_task_invalid_name.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ type AwsDatasyncTaskInvalidNameRule struct {
1818
resourceType string
1919
attributeName string
2020
max int
21-
min int
2221
pattern *regexp.Regexp
2322
}
2423

@@ -28,7 +27,6 @@ func NewAwsDatasyncTaskInvalidNameRule() *AwsDatasyncTaskInvalidNameRule {
2827
resourceType: "aws_datasync_task",
2928
attributeName: "name",
3029
max: 256,
31-
min: 1,
3230
pattern: regexp.MustCompile(`^[a-zA-Z0-9\s+=._:@/-]+$`),
3331
}
3432
}
@@ -80,13 +78,6 @@ func (r *AwsDatasyncTaskInvalidNameRule) Check(runner tflint.Runner) error {
8078
attribute.Expr.Range(),
8179
)
8280
}
83-
if len(val) < r.min {
84-
runner.EmitIssue(
85-
r,
86-
"name must be 1 characters or higher",
87-
attribute.Expr.Range(),
88-
)
89-
}
9081
if !r.pattern.MatchString(val) {
9182
runner.EmitIssue(
9283
r,

rules/tags/resources.go

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tools/provider-schema/.terraform.lock.hcl

Lines changed: 16 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tools/provider-schema/schema.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)