Skip to content

Update AWS provider/module and generated content #629

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

Merged
merged 1 commit into from
May 3, 2024
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
150 changes: 150 additions & 0 deletions aws/mock/ec2.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.22.2

require (
github.com/agext/levenshtein v1.2.2 // indirect
github.com/aws/aws-sdk-go v1.51.16
github.com/aws/aws-sdk-go v1.52.1
github.com/dave/dst v0.27.3
github.com/fatih/color v1.13.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 @@ -3,8 +3,8 @@ github.com/agext/levenshtein v1.2.2/go.mod h1:JEDfjyjHDjOF/1e4FlBE/PkbqA9OfWu2ki
github.com/apparentlymart/go-textseg/v15 v15.0.0 h1:uYvfpb3DyLSCGWnctWKGj857c6ew1u1fNQOlOtuGxQY=
github.com/apparentlymart/go-textseg/v15 v15.0.0/go.mod h1:K8XmNZdhEBkdlyDdvbmmsvpAG721bKi0joRfFdHIWJ4=
github.com/aws/aws-sdk-go v1.31.9/go.mod h1:5zCpMtNQVjRREroY7sYe8lOMRSxkhG6MZveU8YkpAk0=
github.com/aws/aws-sdk-go v1.51.16 h1:vnWKK8KjbftEkuPX8bRj3WHsLy1uhotn0eXptpvrxJI=
github.com/aws/aws-sdk-go v1.51.16/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk=
github.com/aws/aws-sdk-go v1.52.1 h1:pYpPIuvVsawYDR0Nt3VrceizUAbtpTN3Z7xBzcZWwfI=
github.com/aws/aws-sdk-go v1.52.1/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk=
github.com/bufbuild/protocompile v0.4.0 h1:LbFKd2XowZvQ/kajzguUp2DC9UEIQhIq77fZZlaQsNA=
github.com/bufbuild/protocompile v0.4.0/go.mod h1:3v93+mbWn/v3xzN+31nwkJfrEpAUwp+BagBSZWx+TP8=
github.com/dave/dst v0.27.3 h1:P1HPoMza3cMEquVf9kKy8yXsFirry4zEnWOdYPOoIzY=
Expand Down
2 changes: 1 addition & 1 deletion rules/models/aws-sdk-go
Submodule aws-sdk-go updated 379 files
9 changes: 0 additions & 9 deletions rules/models/aws_datasync_agent_invalid_name.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ type AwsDatasyncAgentInvalidNameRule struct {
resourceType string
attributeName string
max int
min int
pattern *regexp.Regexp
}

Expand All @@ -28,7 +27,6 @@ func NewAwsDatasyncAgentInvalidNameRule() *AwsDatasyncAgentInvalidNameRule {
resourceType: "aws_datasync_agent",
attributeName: "name",
max: 256,
min: 1,
pattern: regexp.MustCompile(`^[a-zA-Z0-9\s+=._:@/-]+$`),
}
}
Expand Down Expand Up @@ -80,13 +78,6 @@ func (r *AwsDatasyncAgentInvalidNameRule) Check(runner tflint.Runner) error {
attribute.Expr.Range(),
)
}
if len(val) < r.min {
runner.EmitIssue(
r,
"name must be 1 characters or higher",
attribute.Expr.Range(),
)
}
if !r.pattern.MatchString(val) {
runner.EmitIssue(
r,
Expand Down
9 changes: 0 additions & 9 deletions rules/models/aws_datasync_task_invalid_name.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ type AwsDatasyncTaskInvalidNameRule struct {
resourceType string
attributeName string
max int
min int
pattern *regexp.Regexp
}

Expand All @@ -28,7 +27,6 @@ func NewAwsDatasyncTaskInvalidNameRule() *AwsDatasyncTaskInvalidNameRule {
resourceType: "aws_datasync_task",
attributeName: "name",
max: 256,
min: 1,
pattern: regexp.MustCompile(`^[a-zA-Z0-9\s+=._:@/-]+$`),
}
}
Expand Down Expand Up @@ -80,13 +78,6 @@ func (r *AwsDatasyncTaskInvalidNameRule) Check(runner tflint.Runner) error {
attribute.Expr.Range(),
)
}
if len(val) < r.min {
runner.EmitIssue(
r,
"name must be 1 characters or higher",
attribute.Expr.Range(),
)
}
if !r.pattern.MatchString(val) {
runner.EmitIssue(
r,
Expand Down
3 changes: 3 additions & 0 deletions rules/models/aws_quicksight_user_invalid_user_role.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ func NewAwsQuicksightUserInvalidUserRoleRule() *AwsQuicksightUserInvalidUserRole
"READER",
"RESTRICTED_AUTHOR",
"RESTRICTED_READER",
"ADMIN_PRO",
"AUTHOR_PRO",
"READER_PRO",
},
}
}
Expand Down
5 changes: 5 additions & 0 deletions rules/tags/resources.go

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

32 changes: 16 additions & 16 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.

Loading