Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

autogenerated maintenance #352

Merged
merged 1 commit into from
Jul 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
599 changes: 599 additions & 0 deletions aws/mock/ec2.go

Large diffs are not rendered by default.

66 changes: 66 additions & 0 deletions aws/mock/rds.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.18

require (
github.com/agext/levenshtein v1.2.2 // indirect
github.com/aws/aws-sdk-go v1.44.24
github.com/aws/aws-sdk-go v1.44.54
github.com/dave/dst v0.27.0
github.com/fatih/color v1.9.0 // indirect
github.com/golang/mock v1.6.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kd
github.com/apparentlymart/go-textseg/v13 v13.0.0 h1:Y+KvPE1NYz0xl601PVImeQfFyEy6iT90AvPUL1NNfNw=
github.com/apparentlymart/go-textseg/v13 v13.0.0/go.mod h1:ZK2fH7c4NqDTLtiYLvIkEghdlcqw7yxLeM89kiTRPUo=
github.com/aws/aws-sdk-go v1.31.9/go.mod h1:5zCpMtNQVjRREroY7sYe8lOMRSxkhG6MZveU8YkpAk0=
github.com/aws/aws-sdk-go v1.44.24 h1:3nOkwJBJLiGBmJKWp3z0utyXuBkxyGkRRwWjrTItJaY=
github.com/aws/aws-sdk-go v1.44.24/go.mod h1:y4AeaBuwd2Lk+GepC1E9v0qOiTws0MIWAX4oIKwKHZo=
github.com/aws/aws-sdk-go v1.44.54 h1:zfFptZ0iLuk+psnRLk+o0NMgd/pBsALlNE7i40iOmFA=
github.com/aws/aws-sdk-go v1.44.54/go.mod h1:y4AeaBuwd2Lk+GepC1E9v0qOiTws0MIWAX4oIKwKHZo=
github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw=
Expand Down
2 changes: 1 addition & 1 deletion rules/models/aws-sdk-go
Submodule aws-sdk-go updated 338 files
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func NewAwsDatasyncLocationFsxWindowsFileSystemInvalidDomainRule() *AwsDatasyncL
resourceType: "aws_datasync_location_fsx_windows_file_system",
attributeName: "domain",
max: 253,
pattern: regexp.MustCompile(`^([A-Za-z0-9]+[A-Za-z0-9-.]*)*[A-Za-z0-9-]*[A-Za-z0-9]$`),
pattern: regexp.MustCompile(`^[A-Za-z0-9]((\.|-+)?[A-Za-z0-9]){0,252}$`),
}
}

Expand Down Expand Up @@ -84,7 +84,7 @@ func (r *AwsDatasyncLocationFsxWindowsFileSystemInvalidDomainRule) Check(runner
if !r.pattern.MatchString(val) {
runner.EmitIssue(
r,
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]$`),
fmt.Sprintf(`"%s" does not match valid pattern %s`, truncateLongMessage(val), `^[A-Za-z0-9]((\.|-+)?[A-Za-z0-9]){0,252}$`),
attribute.Expr.Range(),
)
}
Expand Down
4 changes: 2 additions & 2 deletions rules/models/aws_datasync_location_smb_invalid_domain.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func NewAwsDatasyncLocationSmbInvalidDomainRule() *AwsDatasyncLocationSmbInvalid
resourceType: "aws_datasync_location_smb",
attributeName: "domain",
max: 253,
pattern: regexp.MustCompile(`^([A-Za-z0-9]+[A-Za-z0-9-.]*)*[A-Za-z0-9-]*[A-Za-z0-9]$`),
pattern: regexp.MustCompile(`^[A-Za-z0-9]((\.|-+)?[A-Za-z0-9]){0,252}$`),
}
}

Expand Down Expand Up @@ -84,7 +84,7 @@ func (r *AwsDatasyncLocationSmbInvalidDomainRule) Check(runner tflint.Runner) er
if !r.pattern.MatchString(val) {
runner.EmitIssue(
r,
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]$`),
fmt.Sprintf(`"%s" does not match valid pattern %s`, truncateLongMessage(val), `^[A-Za-z0-9]((\.|-+)?[A-Za-z0-9]){0,252}$`),
attribute.Expr.Range(),
)
}
Expand Down
12 changes: 0 additions & 12 deletions rules/models/aws_transfer_ssh_key_invalid_body.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
package models

import (
"fmt"
"regexp"

"github.com/terraform-linters/tflint-plugin-sdk/hclext"
"github.com/terraform-linters/tflint-plugin-sdk/logger"
"github.com/terraform-linters/tflint-plugin-sdk/tflint"
Expand All @@ -18,7 +15,6 @@ type AwsTransferSSHKeyInvalidBodyRule struct {
resourceType string
attributeName string
max int
pattern *regexp.Regexp
}

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

Expand Down Expand Up @@ -81,13 +76,6 @@ func (r *AwsTransferSSHKeyInvalidBodyRule) Check(runner tflint.Runner) error {
attribute.Expr.Range(),
)
}
if !r.pattern.MatchString(val) {
runner.EmitIssue(
r,
fmt.Sprintf(`"%s" does not match valid pattern %s`, truncateLongMessage(val), `^ssh-rsa\s+[A-Za-z0-9+/]+[=]{0,3}(\s+.+)?\s*$`),
attribute.Expr.Range(),
)
}
return nil
})
if err != nil {
Expand Down
16 changes: 16 additions & 0 deletions rules/tags/resources.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 13 additions & 13 deletions tools/provider-schema/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tools/provider-schema/schema.json

Large diffs are not rendered by default.