Skip to content

Commit 011f827

Browse files
Update AWS provider/module and generated content (#471)
Co-authored-by: bendrucker <[email protected]>
1 parent 43f7450 commit 011f827

16 files changed

+162
-23
lines changed

aws/mock/ec2.go

Lines changed: 100 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.20
44

55
require (
66
github.com/agext/levenshtein v1.2.2 // indirect
7-
github.com/aws/aws-sdk-go v1.44.224
7+
github.com/aws/aws-sdk-go v1.44.245
88
github.com/dave/dst v0.27.2
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
@@ -5,8 +5,8 @@ github.com/agext/levenshtein v1.2.2/go.mod h1:JEDfjyjHDjOF/1e4FlBE/PkbqA9OfWu2ki
55
github.com/apparentlymart/go-textseg/v13 v13.0.0 h1:Y+KvPE1NYz0xl601PVImeQfFyEy6iT90AvPUL1NNfNw=
66
github.com/apparentlymart/go-textseg/v13 v13.0.0/go.mod h1:ZK2fH7c4NqDTLtiYLvIkEghdlcqw7yxLeM89kiTRPUo=
77
github.com/aws/aws-sdk-go v1.31.9/go.mod h1:5zCpMtNQVjRREroY7sYe8lOMRSxkhG6MZveU8YkpAk0=
8-
github.com/aws/aws-sdk-go v1.44.224 h1:09CiaaF35nRmxrzWZ2uRq5v6Ghg/d2RiPjZnSgtt+RQ=
9-
github.com/aws/aws-sdk-go v1.44.224/go.mod h1:aVsgQcEevwlmQ7qHE9I3h+dtQgpqhFB+i8Phjh7fkwI=
8+
github.com/aws/aws-sdk-go v1.44.245 h1:KtY2s4q31/kn33AdV63R5t77mdxsI7rq3YT7Mgo805M=
9+
github.com/aws/aws-sdk-go v1.44.245/go.mod h1:aVsgQcEevwlmQ7qHE9I3h+dtQgpqhFB+i8Phjh7fkwI=
1010
github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
1111
github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw=
1212
github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=

rules/models/aws-sdk-go

Submodule aws-sdk-go updated 499 files

rules/models/aws_ecs_account_setting_default_invalid_name.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ func NewAwsEcsAccountSettingDefaultInvalidNameRule() *AwsEcsAccountSettingDefaul
3030
"containerInstanceLongArnFormat",
3131
"awsvpcTrunking",
3232
"containerInsights",
33+
"fargateFIPSMode",
3334
},
3435
}
3536
}

rules/models/aws_instance_invalid_type.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -663,6 +663,11 @@ func NewAwsInstanceInvalidTypeRule() *AwsInstanceInvalidTypeRule {
663663
"r7g.12xlarge",
664664
"r7g.16xlarge",
665665
"r7g.metal",
666+
"c6in.metal",
667+
"m6in.metal",
668+
"m6idn.metal",
669+
"r6in.metal",
670+
"r6idn.metal",
666671
},
667672
}
668673
}

rules/models/aws_lambda_function_invalid_runtime.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ func NewAwsLambdaFunctionInvalidRuntimeRule() *AwsLambdaFunctionInvalidRuntimeRu
5353
"provided",
5454
"provided.al2",
5555
"nodejs18.x",
56+
"python3.10",
5657
},
5758
}
5859
}

rules/models/aws_launch_configuration_invalid_type.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -663,6 +663,11 @@ func NewAwsLaunchConfigurationInvalidTypeRule() *AwsLaunchConfigurationInvalidTy
663663
"r7g.12xlarge",
664664
"r7g.16xlarge",
665665
"r7g.metal",
666+
"c6in.metal",
667+
"m6in.metal",
668+
"m6idn.metal",
669+
"r6in.metal",
670+
"r6idn.metal",
666671
},
667672
}
668673
}

rules/models/aws_launch_template_invalid_instance_type.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -663,6 +663,11 @@ func NewAwsLaunchTemplateInvalidInstanceTypeRule() *AwsLaunchTemplateInvalidInst
663663
"r7g.12xlarge",
664664
"r7g.16xlarge",
665665
"r7g.metal",
666+
"c6in.metal",
667+
"m6in.metal",
668+
"m6idn.metal",
669+
"r6in.metal",
670+
"r6idn.metal",
666671
},
667672
}
668673
}

rules/models/aws_sagemaker_feature_group_invalid_feature_group_name.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func NewAwsSagemakerFeatureGroupInvalidFeatureGroupNameRule() *AwsSagemakerFeatu
2929
attributeName: "feature_group_name",
3030
max: 64,
3131
min: 1,
32-
pattern: regexp.MustCompile(`^[a-zA-Z0-9](-*[a-zA-Z0-9]){0,63}`),
32+
pattern: regexp.MustCompile(`^[a-zA-Z0-9]([_-]*[a-zA-Z0-9]){0,63}`),
3333
}
3434
}
3535

@@ -93,7 +93,7 @@ func (r *AwsSagemakerFeatureGroupInvalidFeatureGroupNameRule) Check(runner tflin
9393
if !r.pattern.MatchString(val) {
9494
runner.EmitIssue(
9595
r,
96-
fmt.Sprintf(`"%s" does not match valid pattern %s`, truncateLongMessage(val), `^[a-zA-Z0-9](-*[a-zA-Z0-9]){0,63}`),
96+
fmt.Sprintf(`"%s" does not match valid pattern %s`, truncateLongMessage(val), `^[a-zA-Z0-9]([_-]*[a-zA-Z0-9]){0,63}`),
9797
attribute.Expr.Range(),
9898
)
9999
}

0 commit comments

Comments
 (0)