Skip to content

autogenerated maintenance #324

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
Apr 17, 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
50 changes: 50 additions & 0 deletions aws/mock/ec2.go

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

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

Large diffs are not rendered by default.

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.43.26
github.com/aws/aws-sdk-go v1.43.41
github.com/dave/dst v0.26.2
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 @@ -10,8 +10,8 @@ github.com/apparentlymart/go-textseg v1.0.0/go.mod h1:z96Txxhf3xSFMPmb5X/1W05FF/
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.43.26 h1:/ABcm/2xp+Vu+iUx8+TmlwXMGjO7fmZqJMoZjml4y/4=
github.com/aws/aws-sdk-go v1.43.26/go.mod h1:y4AeaBuwd2Lk+GepC1E9v0qOiTws0MIWAX4oIKwKHZo=
github.com/aws/aws-sdk-go v1.43.41 h1:HaazVplP8/t6SOfybQlNUmjAxLWDKdLdX8BSEHFlJdY=
github.com/aws/aws-sdk-go v1.43.41/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 197 files
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ func NewAwsFsxOntapFileSystemInvalidDeploymentTypeRule() *AwsFsxOntapFileSystemI
attributeName: "deployment_type",
enum: []string{
"MULTI_AZ_1",
"SINGLE_AZ_1",
},
}
}
Expand Down
22 changes: 22 additions & 0 deletions rules/models/aws_instance_invalid_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,28 @@ func NewAwsInstanceInvalidTypeRule() *AwsInstanceInvalidTypeRule {
"z1d.6xlarge",
"z1d.12xlarge",
"z1d.metal",
"x2idn.16xlarge",
"x2idn.24xlarge",
"x2idn.32xlarge",
"x2iedn.xlarge",
"x2iedn.2xlarge",
"x2iedn.4xlarge",
"x2iedn.8xlarge",
"x2iedn.16xlarge",
"x2iedn.24xlarge",
"x2iedn.32xlarge",
"c6a.large",
"c6a.xlarge",
"c6a.2xlarge",
"c6a.4xlarge",
"c6a.8xlarge",
"c6a.12xlarge",
"c6a.16xlarge",
"c6a.24xlarge",
"c6a.32xlarge",
"c6a.48xlarge",
"c6a.metal",
"m6a.metal",
},
}
}
Expand Down
22 changes: 22 additions & 0 deletions rules/models/aws_launch_configuration_invalid_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,28 @@ func NewAwsLaunchConfigurationInvalidTypeRule() *AwsLaunchConfigurationInvalidTy
"z1d.6xlarge",
"z1d.12xlarge",
"z1d.metal",
"x2idn.16xlarge",
"x2idn.24xlarge",
"x2idn.32xlarge",
"x2iedn.xlarge",
"x2iedn.2xlarge",
"x2iedn.4xlarge",
"x2iedn.8xlarge",
"x2iedn.16xlarge",
"x2iedn.24xlarge",
"x2iedn.32xlarge",
"c6a.large",
"c6a.xlarge",
"c6a.2xlarge",
"c6a.4xlarge",
"c6a.8xlarge",
"c6a.12xlarge",
"c6a.16xlarge",
"c6a.24xlarge",
"c6a.32xlarge",
"c6a.48xlarge",
"c6a.metal",
"m6a.metal",
},
}
}
Expand Down
22 changes: 22 additions & 0 deletions rules/models/aws_launch_template_invalid_instance_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,28 @@ func NewAwsLaunchTemplateInvalidInstanceTypeRule() *AwsLaunchTemplateInvalidInst
"z1d.6xlarge",
"z1d.12xlarge",
"z1d.metal",
"x2idn.16xlarge",
"x2idn.24xlarge",
"x2idn.32xlarge",
"x2iedn.xlarge",
"x2iedn.2xlarge",
"x2iedn.4xlarge",
"x2iedn.8xlarge",
"x2iedn.16xlarge",
"x2iedn.24xlarge",
"x2iedn.32xlarge",
"c6a.large",
"c6a.xlarge",
"c6a.2xlarge",
"c6a.4xlarge",
"c6a.8xlarge",
"c6a.12xlarge",
"c6a.16xlarge",
"c6a.24xlarge",
"c6a.32xlarge",
"c6a.48xlarge",
"c6a.metal",
"m6a.metal",
},
}
}
Expand Down
8 changes: 4 additions & 4 deletions rules/models/aws_organizations_account_invalid_name.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ func NewAwsOrganizationsAccountInvalidNameRule() *AwsOrganizationsAccountInvalid
return &AwsOrganizationsAccountInvalidNameRule{
resourceType: "aws_organizations_account",
attributeName: "name",
max: 50,
max: 128,
min: 1,
pattern: regexp.MustCompile(`^[\x{0020}-\x{007E}]+$`),
pattern: regexp.MustCompile(`^[\s\S]*$`),
}
}

Expand Down Expand Up @@ -79,7 +79,7 @@ func (r *AwsOrganizationsAccountInvalidNameRule) Check(runner tflint.Runner) err
if len(val) > r.max {
runner.EmitIssue(
r,
"name must be 50 characters or less",
"name must be 128 characters or less",
attribute.Expr.Range(),
)
}
Expand All @@ -93,7 +93,7 @@ func (r *AwsOrganizationsAccountInvalidNameRule) Check(runner tflint.Runner) err
if !r.pattern.MatchString(val) {
runner.EmitIssue(
r,
fmt.Sprintf(`"%s" does not match valid pattern %s`, truncateLongMessage(val), `^[\x{0020}-\x{007E}]+$`),
fmt.Sprintf(`"%s" does not match valid pattern %s`, truncateLongMessage(val), `^[\s\S]*$`),
attribute.Expr.Range(),
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,14 @@ func NewAwsSagemakerNotebookInstanceInvalidInstanceTypeRule() *AwsSagemakerNoteb
"ml.r5.12xlarge",
"ml.r5.16xlarge",
"ml.r5.24xlarge",
"ml.g5.xlarge",
"ml.g5.2xlarge",
"ml.g5.4xlarge",
"ml.g5.8xlarge",
"ml.g5.16xlarge",
"ml.g5.12xlarge",
"ml.g5.24xlarge",
"ml.g5.48xlarge",
},
}
}
Expand Down
4 changes: 4 additions & 0 deletions rules/tags/resources.go

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

27 changes: 13 additions & 14 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.