Skip to content

Commit 06f75b2

Browse files
autogenerated maintenance (#324)
Co-authored-by: PatMyron <[email protected]>
1 parent 08eb9b1 commit 06f75b2

14 files changed

+151
-389
lines changed

aws/mock/ec2.go

Lines changed: 50 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: 0 additions & 366 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.43.26
7+
github.com/aws/aws-sdk-go v1.43.41
88
github.com/dave/dst v0.26.2
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
@@ -10,8 +10,8 @@ github.com/apparentlymart/go-textseg v1.0.0/go.mod h1:z96Txxhf3xSFMPmb5X/1W05FF/
1010
github.com/apparentlymart/go-textseg/v13 v13.0.0 h1:Y+KvPE1NYz0xl601PVImeQfFyEy6iT90AvPUL1NNfNw=
1111
github.com/apparentlymart/go-textseg/v13 v13.0.0/go.mod h1:ZK2fH7c4NqDTLtiYLvIkEghdlcqw7yxLeM89kiTRPUo=
1212
github.com/aws/aws-sdk-go v1.31.9/go.mod h1:5zCpMtNQVjRREroY7sYe8lOMRSxkhG6MZveU8YkpAk0=
13-
github.com/aws/aws-sdk-go v1.43.26 h1:/ABcm/2xp+Vu+iUx8+TmlwXMGjO7fmZqJMoZjml4y/4=
14-
github.com/aws/aws-sdk-go v1.43.26/go.mod h1:y4AeaBuwd2Lk+GepC1E9v0qOiTws0MIWAX4oIKwKHZo=
13+
github.com/aws/aws-sdk-go v1.43.41 h1:HaazVplP8/t6SOfybQlNUmjAxLWDKdLdX8BSEHFlJdY=
14+
github.com/aws/aws-sdk-go v1.43.41/go.mod h1:y4AeaBuwd2Lk+GepC1E9v0qOiTws0MIWAX4oIKwKHZo=
1515
github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
1616
github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
1717
github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw=

rules/models/aws-sdk-go

Submodule aws-sdk-go updated 197 files

rules/models/aws_fsx_ontap_file_system_invalid_deployment_type.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ func NewAwsFsxOntapFileSystemInvalidDeploymentTypeRule() *AwsFsxOntapFileSystemI
2626
attributeName: "deployment_type",
2727
enum: []string{
2828
"MULTI_AZ_1",
29+
"SINGLE_AZ_1",
2930
},
3031
}
3132
}

rules/models/aws_instance_invalid_type.go

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -510,6 +510,28 @@ func NewAwsInstanceInvalidTypeRule() *AwsInstanceInvalidTypeRule {
510510
"z1d.6xlarge",
511511
"z1d.12xlarge",
512512
"z1d.metal",
513+
"x2idn.16xlarge",
514+
"x2idn.24xlarge",
515+
"x2idn.32xlarge",
516+
"x2iedn.xlarge",
517+
"x2iedn.2xlarge",
518+
"x2iedn.4xlarge",
519+
"x2iedn.8xlarge",
520+
"x2iedn.16xlarge",
521+
"x2iedn.24xlarge",
522+
"x2iedn.32xlarge",
523+
"c6a.large",
524+
"c6a.xlarge",
525+
"c6a.2xlarge",
526+
"c6a.4xlarge",
527+
"c6a.8xlarge",
528+
"c6a.12xlarge",
529+
"c6a.16xlarge",
530+
"c6a.24xlarge",
531+
"c6a.32xlarge",
532+
"c6a.48xlarge",
533+
"c6a.metal",
534+
"m6a.metal",
513535
},
514536
}
515537
}

rules/models/aws_launch_configuration_invalid_type.go

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -510,6 +510,28 @@ func NewAwsLaunchConfigurationInvalidTypeRule() *AwsLaunchConfigurationInvalidTy
510510
"z1d.6xlarge",
511511
"z1d.12xlarge",
512512
"z1d.metal",
513+
"x2idn.16xlarge",
514+
"x2idn.24xlarge",
515+
"x2idn.32xlarge",
516+
"x2iedn.xlarge",
517+
"x2iedn.2xlarge",
518+
"x2iedn.4xlarge",
519+
"x2iedn.8xlarge",
520+
"x2iedn.16xlarge",
521+
"x2iedn.24xlarge",
522+
"x2iedn.32xlarge",
523+
"c6a.large",
524+
"c6a.xlarge",
525+
"c6a.2xlarge",
526+
"c6a.4xlarge",
527+
"c6a.8xlarge",
528+
"c6a.12xlarge",
529+
"c6a.16xlarge",
530+
"c6a.24xlarge",
531+
"c6a.32xlarge",
532+
"c6a.48xlarge",
533+
"c6a.metal",
534+
"m6a.metal",
513535
},
514536
}
515537
}

rules/models/aws_launch_template_invalid_instance_type.go

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -510,6 +510,28 @@ func NewAwsLaunchTemplateInvalidInstanceTypeRule() *AwsLaunchTemplateInvalidInst
510510
"z1d.6xlarge",
511511
"z1d.12xlarge",
512512
"z1d.metal",
513+
"x2idn.16xlarge",
514+
"x2idn.24xlarge",
515+
"x2idn.32xlarge",
516+
"x2iedn.xlarge",
517+
"x2iedn.2xlarge",
518+
"x2iedn.4xlarge",
519+
"x2iedn.8xlarge",
520+
"x2iedn.16xlarge",
521+
"x2iedn.24xlarge",
522+
"x2iedn.32xlarge",
523+
"c6a.large",
524+
"c6a.xlarge",
525+
"c6a.2xlarge",
526+
"c6a.4xlarge",
527+
"c6a.8xlarge",
528+
"c6a.12xlarge",
529+
"c6a.16xlarge",
530+
"c6a.24xlarge",
531+
"c6a.32xlarge",
532+
"c6a.48xlarge",
533+
"c6a.metal",
534+
"m6a.metal",
513535
},
514536
}
515537
}

rules/models/aws_organizations_account_invalid_name.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ func NewAwsOrganizationsAccountInvalidNameRule() *AwsOrganizationsAccountInvalid
2727
return &AwsOrganizationsAccountInvalidNameRule{
2828
resourceType: "aws_organizations_account",
2929
attributeName: "name",
30-
max: 50,
30+
max: 128,
3131
min: 1,
32-
pattern: regexp.MustCompile(`^[\x{0020}-\x{007E}]+$`),
32+
pattern: regexp.MustCompile(`^[\s\S]*$`),
3333
}
3434
}
3535

@@ -79,7 +79,7 @@ func (r *AwsOrganizationsAccountInvalidNameRule) Check(runner tflint.Runner) err
7979
if len(val) > r.max {
8080
runner.EmitIssue(
8181
r,
82-
"name must be 50 characters or less",
82+
"name must be 128 characters or less",
8383
attribute.Expr.Range(),
8484
)
8585
}
@@ -93,7 +93,7 @@ func (r *AwsOrganizationsAccountInvalidNameRule) Check(runner tflint.Runner) err
9393
if !r.pattern.MatchString(val) {
9494
runner.EmitIssue(
9595
r,
96-
fmt.Sprintf(`"%s" does not match valid pattern %s`, truncateLongMessage(val), `^[\x{0020}-\x{007E}]+$`),
96+
fmt.Sprintf(`"%s" does not match valid pattern %s`, truncateLongMessage(val), `^[\s\S]*$`),
9797
attribute.Expr.Range(),
9898
)
9999
}

0 commit comments

Comments
 (0)