Skip to content

Commit 2a983b1

Browse files
autogenerated maintenance (#352)
Co-authored-by: PatMyron <[email protected]>
1 parent 6986646 commit 2a983b1

11 files changed

+703
-34
lines changed

aws/mock/ec2.go

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

aws/mock/rds.go

Lines changed: 66 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.18
44

55
require (
66
github.com/agext/levenshtein v1.2.2 // indirect
7-
github.com/aws/aws-sdk-go v1.44.24
7+
github.com/aws/aws-sdk-go v1.44.54
88
github.com/dave/dst v0.27.0
99
github.com/fatih/color v1.9.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
@@ -7,8 +7,8 @@ github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kd
77
github.com/apparentlymart/go-textseg/v13 v13.0.0 h1:Y+KvPE1NYz0xl601PVImeQfFyEy6iT90AvPUL1NNfNw=
88
github.com/apparentlymart/go-textseg/v13 v13.0.0/go.mod h1:ZK2fH7c4NqDTLtiYLvIkEghdlcqw7yxLeM89kiTRPUo=
99
github.com/aws/aws-sdk-go v1.31.9/go.mod h1:5zCpMtNQVjRREroY7sYe8lOMRSxkhG6MZveU8YkpAk0=
10-
github.com/aws/aws-sdk-go v1.44.24 h1:3nOkwJBJLiGBmJKWp3z0utyXuBkxyGkRRwWjrTItJaY=
11-
github.com/aws/aws-sdk-go v1.44.24/go.mod h1:y4AeaBuwd2Lk+GepC1E9v0qOiTws0MIWAX4oIKwKHZo=
10+
github.com/aws/aws-sdk-go v1.44.54 h1:zfFptZ0iLuk+psnRLk+o0NMgd/pBsALlNE7i40iOmFA=
11+
github.com/aws/aws-sdk-go v1.44.54/go.mod h1:y4AeaBuwd2Lk+GepC1E9v0qOiTws0MIWAX4oIKwKHZo=
1212
github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
1313
github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
1414
github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw=

rules/models/aws-sdk-go

Submodule aws-sdk-go updated 338 files

rules/models/aws_datasync_location_fsx_windows_file_system_invalid_domain.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func NewAwsDatasyncLocationFsxWindowsFileSystemInvalidDomainRule() *AwsDatasyncL
2727
resourceType: "aws_datasync_location_fsx_windows_file_system",
2828
attributeName: "domain",
2929
max: 253,
30-
pattern: regexp.MustCompile(`^([A-Za-z0-9]+[A-Za-z0-9-.]*)*[A-Za-z0-9-]*[A-Za-z0-9]$`),
30+
pattern: regexp.MustCompile(`^[A-Za-z0-9]((\.|-+)?[A-Za-z0-9]){0,252}$`),
3131
}
3232
}
3333

@@ -84,7 +84,7 @@ func (r *AwsDatasyncLocationFsxWindowsFileSystemInvalidDomainRule) Check(runner
8484
if !r.pattern.MatchString(val) {
8585
runner.EmitIssue(
8686
r,
87-
fmt.Sprintf(`"%s" does not match valid pattern %s`, truncateLongMessage(val), `^([A-Za-z0-9]+[A-Za-z0-9-.]*)*[A-Za-z0-9-]*[A-Za-z0-9]$`),
87+
fmt.Sprintf(`"%s" does not match valid pattern %s`, truncateLongMessage(val), `^[A-Za-z0-9]((\.|-+)?[A-Za-z0-9]){0,252}$`),
8888
attribute.Expr.Range(),
8989
)
9090
}

rules/models/aws_datasync_location_smb_invalid_domain.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func NewAwsDatasyncLocationSmbInvalidDomainRule() *AwsDatasyncLocationSmbInvalid
2727
resourceType: "aws_datasync_location_smb",
2828
attributeName: "domain",
2929
max: 253,
30-
pattern: regexp.MustCompile(`^([A-Za-z0-9]+[A-Za-z0-9-.]*)*[A-Za-z0-9-]*[A-Za-z0-9]$`),
30+
pattern: regexp.MustCompile(`^[A-Za-z0-9]((\.|-+)?[A-Za-z0-9]){0,252}$`),
3131
}
3232
}
3333

@@ -84,7 +84,7 @@ func (r *AwsDatasyncLocationSmbInvalidDomainRule) Check(runner tflint.Runner) er
8484
if !r.pattern.MatchString(val) {
8585
runner.EmitIssue(
8686
r,
87-
fmt.Sprintf(`"%s" does not match valid pattern %s`, truncateLongMessage(val), `^([A-Za-z0-9]+[A-Za-z0-9-.]*)*[A-Za-z0-9-]*[A-Za-z0-9]$`),
87+
fmt.Sprintf(`"%s" does not match valid pattern %s`, truncateLongMessage(val), `^[A-Za-z0-9]((\.|-+)?[A-Za-z0-9]){0,252}$`),
8888
attribute.Expr.Range(),
8989
)
9090
}

rules/models/aws_transfer_ssh_key_invalid_body.go

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
package models
44

55
import (
6-
"fmt"
7-
"regexp"
8-
96
"github.com/terraform-linters/tflint-plugin-sdk/hclext"
107
"github.com/terraform-linters/tflint-plugin-sdk/logger"
118
"github.com/terraform-linters/tflint-plugin-sdk/tflint"
@@ -18,7 +15,6 @@ type AwsTransferSSHKeyInvalidBodyRule struct {
1815
resourceType string
1916
attributeName string
2017
max int
21-
pattern *regexp.Regexp
2218
}
2319

2420
// NewAwsTransferSSHKeyInvalidBodyRule returns new rule with default attributes
@@ -27,7 +23,6 @@ func NewAwsTransferSSHKeyInvalidBodyRule() *AwsTransferSSHKeyInvalidBodyRule {
2723
resourceType: "aws_transfer_ssh_key",
2824
attributeName: "body",
2925
max: 2048,
30-
pattern: regexp.MustCompile(`^ssh-rsa\s+[A-Za-z0-9+/]+[=]{0,3}(\s+.+)?\s*$`),
3126
}
3227
}
3328

@@ -81,13 +76,6 @@ func (r *AwsTransferSSHKeyInvalidBodyRule) Check(runner tflint.Runner) error {
8176
attribute.Expr.Range(),
8277
)
8378
}
84-
if !r.pattern.MatchString(val) {
85-
runner.EmitIssue(
86-
r,
87-
fmt.Sprintf(`"%s" does not match valid pattern %s`, truncateLongMessage(val), `^ssh-rsa\s+[A-Za-z0-9+/]+[=]{0,3}(\s+.+)?\s*$`),
88-
attribute.Expr.Range(),
89-
)
90-
}
9179
return nil
9280
})
9381
if err != nil {

rules/tags/resources.go

Lines changed: 16 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: 13 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)