Skip to content

Commit 2751dc5

Browse files
authored
Update AWS provider/module and generated content (#575)
1 parent e3d27b6 commit 2751dc5

23 files changed

+1123
-45
lines changed

aws/mock/ec2.go

Lines changed: 683 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: 382 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.21.1
44

55
require (
66
github.com/agext/levenshtein v1.2.2 // indirect
7-
github.com/aws/aws-sdk-go v1.47.3
7+
github.com/aws/aws-sdk-go v1.48.0
88
github.com/dave/dst v0.27.3
99
github.com/fatih/color v1.13.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
@@ -3,8 +3,8 @@ github.com/agext/levenshtein v1.2.2/go.mod h1:JEDfjyjHDjOF/1e4FlBE/PkbqA9OfWu2ki
33
github.com/apparentlymart/go-textseg/v15 v15.0.0 h1:uYvfpb3DyLSCGWnctWKGj857c6ew1u1fNQOlOtuGxQY=
44
github.com/apparentlymart/go-textseg/v15 v15.0.0/go.mod h1:K8XmNZdhEBkdlyDdvbmmsvpAG721bKi0joRfFdHIWJ4=
55
github.com/aws/aws-sdk-go v1.31.9/go.mod h1:5zCpMtNQVjRREroY7sYe8lOMRSxkhG6MZveU8YkpAk0=
6-
github.com/aws/aws-sdk-go v1.47.3 h1:e0H6NFXiniCpR8Lu3lTphVdRaeRCDLAeRyTHd1tJSd8=
7-
github.com/aws/aws-sdk-go v1.47.3/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk=
6+
github.com/aws/aws-sdk-go v1.48.0 h1:1SeJ8agckRDQvnSCt1dGZYAwUaoD2Ixj6IaXB4LCv8Q=
7+
github.com/aws/aws-sdk-go v1.48.0/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk=
88
github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
99
github.com/dave/dst v0.27.3 h1:P1HPoMza3cMEquVf9kKy8yXsFirry4zEnWOdYPOoIzY=
1010
github.com/dave/dst v0.27.3/go.mod h1:jHh6EOibnHgcUW3WjKHisiooEkYwqpHLBSX1iOBhEyc=

rules/models/aws-sdk-go

Submodule aws-sdk-go updated 418 files

rules/models/aws_ecr_pull_through_cache_rule_invalid_ecr_repository_prefix.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ func NewAwsEcrPullThroughCacheRuleInvalidEcrRepositoryPrefixRule() *AwsEcrPullTh
2727
return &AwsEcrPullThroughCacheRuleInvalidEcrRepositoryPrefixRule{
2828
resourceType: "aws_ecr_pull_through_cache_rule",
2929
attributeName: "ecr_repository_prefix",
30-
max: 20,
30+
max: 30,
3131
min: 2,
32-
pattern: regexp.MustCompile(`^[a-z0-9]+(?:[._-][a-z0-9]+)*$`),
32+
pattern: regexp.MustCompile(`^(?:[a-z0-9]+(?:[._-][a-z0-9]+)*/)*[a-z0-9]+(?:[._-][a-z0-9]+)*$`),
3333
}
3434
}
3535

@@ -76,7 +76,7 @@ func (r *AwsEcrPullThroughCacheRuleInvalidEcrRepositoryPrefixRule) Check(runner
7676
if len(val) > r.max {
7777
runner.EmitIssue(
7878
r,
79-
"ecr_repository_prefix must be 20 characters or less",
79+
"ecr_repository_prefix must be 30 characters or less",
8080
attribute.Expr.Range(),
8181
)
8282
}
@@ -90,7 +90,7 @@ func (r *AwsEcrPullThroughCacheRuleInvalidEcrRepositoryPrefixRule) Check(runner
9090
if !r.pattern.MatchString(val) {
9191
runner.EmitIssue(
9292
r,
93-
fmt.Sprintf(`"%s" does not match valid pattern %s`, truncateLongMessage(val), `^[a-z0-9]+(?:[._-][a-z0-9]+)*$`),
93+
fmt.Sprintf(`"%s" does not match valid pattern %s`, truncateLongMessage(val), `^(?:[a-z0-9]+(?:[._-][a-z0-9]+)*/)*[a-z0-9]+(?:[._-][a-z0-9]+)*$`),
9494
attribute.Expr.Range(),
9595
)
9696
}

rules/models/aws_instance_invalid_type.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -796,6 +796,7 @@ func NewAwsInstanceInvalidTypeRule() *AwsInstanceInvalidTypeRule {
796796
"r7i.16xlarge",
797797
"r7i.24xlarge",
798798
"r7i.48xlarge",
799+
"dl2q.24xlarge",
799800
},
800801
}
801802
}

rules/models/aws_lambda_function_invalid_runtime.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ func NewAwsLambdaFunctionInvalidRuntimeRule() *AwsLambdaFunctionInvalidRuntimeRu
5757
"java17",
5858
"ruby3.2",
5959
"python3.11",
60+
"nodejs20.x",
61+
"provided.al2023",
62+
"python3.12",
63+
"java21",
6064
},
6165
}
6266
}

rules/models/aws_launch_configuration_invalid_type.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -796,6 +796,7 @@ func NewAwsLaunchConfigurationInvalidTypeRule() *AwsLaunchConfigurationInvalidTy
796796
"r7i.16xlarge",
797797
"r7i.24xlarge",
798798
"r7i.48xlarge",
799+
"dl2q.24xlarge",
799800
},
800801
}
801802
}

rules/models/aws_launch_template_invalid_instance_type.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -796,6 +796,7 @@ func NewAwsLaunchTemplateInvalidInstanceTypeRule() *AwsLaunchTemplateInvalidInst
796796
"r7i.16xlarge",
797797
"r7i.24xlarge",
798798
"r7i.48xlarge",
799+
"dl2q.24xlarge",
799800
},
800801
}
801802
}

0 commit comments

Comments
 (0)