Skip to content

Commit 4fbfe9d

Browse files
Update AWS provider/module and generated content (#623)
Co-authored-by: bendrucker <808808+bendrucker@users.noreply.github.com>
1 parent 9279e54 commit 4fbfe9d

12 files changed

+38
-27
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ go 1.22.0
44

55
require (
66
github.com/agext/levenshtein v1.2.2 // indirect
7-
github.com/aws/aws-sdk-go v1.51.7
7+
github.com/aws/aws-sdk-go v1.51.11
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.51.7 h1:RRjxHhx9RCjw5AhgpmmShq3F4JDlleSkyhYMQ2xUAe8=
7-
github.com/aws/aws-sdk-go v1.51.7/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk=
6+
github.com/aws/aws-sdk-go v1.51.11 h1:El5VypsMIz7sFwAAj/j06JX9UGs4KAbAIEaZ57bNY4s=
7+
github.com/aws/aws-sdk-go v1.51.11/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk=
88
github.com/bufbuild/protocompile v0.4.0 h1:LbFKd2XowZvQ/kajzguUp2DC9UEIQhIq77fZZlaQsNA=
99
github.com/bufbuild/protocompile v0.4.0/go.mod h1:3v93+mbWn/v3xzN+31nwkJfrEpAUwp+BagBSZWx+TP8=
1010
github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=

rules/models/aws-sdk-go

Submodule aws-sdk-go updated 79 files

rules/models/aws_instance_invalid_type.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -808,6 +808,9 @@ func NewAwsInstanceInvalidTypeRule() *AwsInstanceInvalidTypeRule {
808808
"r7i.metal-48xl",
809809
"r7iz.metal-16xl",
810810
"r7iz.metal-32xl",
811+
"c7gd.metal",
812+
"m7gd.metal",
813+
"r7gd.metal",
811814
},
812815
}
813816
}

rules/models/aws_launch_configuration_invalid_type.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -808,6 +808,9 @@ func NewAwsLaunchConfigurationInvalidTypeRule() *AwsLaunchConfigurationInvalidTy
808808
"r7i.metal-48xl",
809809
"r7iz.metal-16xl",
810810
"r7iz.metal-32xl",
811+
"c7gd.metal",
812+
"m7gd.metal",
813+
"r7gd.metal",
811814
},
812815
}
813816
}

rules/models/aws_launch_template_invalid_instance_type.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -808,6 +808,9 @@ func NewAwsLaunchTemplateInvalidInstanceTypeRule() *AwsLaunchTemplateInvalidInst
808808
"r7i.metal-48xl",
809809
"r7iz.metal-16xl",
810810
"r7iz.metal-32xl",
811+
"c7gd.metal",
812+
"m7gd.metal",
813+
"r7gd.metal",
811814
},
812815
}
813816
}

rules/models/aws_sagemaker_domain_invalid_kms_key_id.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func NewAwsSagemakerDomainInvalidKmsKeyIDRule() *AwsSagemakerDomainInvalidKmsKey
2727
resourceType: "aws_sagemaker_domain",
2828
attributeName: "kms_key_id",
2929
max: 2048,
30-
pattern: regexp.MustCompile(`^.*$`),
30+
pattern: regexp.MustCompile(`^[a-zA-Z0-9:/_-]*$`),
3131
}
3232
}
3333

@@ -81,7 +81,7 @@ func (r *AwsSagemakerDomainInvalidKmsKeyIDRule) Check(runner tflint.Runner) erro
8181
if !r.pattern.MatchString(val) {
8282
runner.EmitIssue(
8383
r,
84-
fmt.Sprintf(`"%s" does not match valid pattern %s`, truncateLongMessage(val), `^.*$`),
84+
fmt.Sprintf(`"%s" does not match valid pattern %s`, truncateLongMessage(val), `^[a-zA-Z0-9:/_-]*$`),
8585
attribute.Expr.Range(),
8686
)
8787
}

rules/models/aws_sagemaker_endpoint_configuration_invalid_kms_key_arn.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func NewAwsSagemakerEndpointConfigurationInvalidKmsKeyArnRule() *AwsSagemakerEnd
2727
resourceType: "aws_sagemaker_endpoint_configuration",
2828
attributeName: "kms_key_arn",
2929
max: 2048,
30-
pattern: regexp.MustCompile(`^.*$`),
30+
pattern: regexp.MustCompile(`^[a-zA-Z0-9:/_-]*$`),
3131
}
3232
}
3333

@@ -81,7 +81,7 @@ func (r *AwsSagemakerEndpointConfigurationInvalidKmsKeyArnRule) Check(runner tfl
8181
if !r.pattern.MatchString(val) {
8282
runner.EmitIssue(
8383
r,
84-
fmt.Sprintf(`"%s" does not match valid pattern %s`, truncateLongMessage(val), `^.*$`),
84+
fmt.Sprintf(`"%s" does not match valid pattern %s`, truncateLongMessage(val), `^[a-zA-Z0-9:/_-]*$`),
8585
attribute.Expr.Range(),
8686
)
8787
}

rules/models/aws_sagemaker_notebook_instance_invalid_kms_key_id.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ func NewAwsSagemakerNotebookInstanceInvalidKmsKeyIDRule() *AwsSagemakerNotebookI
2727
resourceType: "aws_sagemaker_notebook_instance",
2828
attributeName: "kms_key_id",
2929
max: 2048,
30-
pattern: regexp.MustCompile(`^.*$`),
30+
pattern: regexp.MustCompile(`^[a-zA-Z0-9:/_-]*$`),
3131
}
3232
}
3333

@@ -81,7 +81,7 @@ func (r *AwsSagemakerNotebookInstanceInvalidKmsKeyIDRule) Check(runner tflint.Ru
8181
if !r.pattern.MatchString(val) {
8282
runner.EmitIssue(
8383
r,
84-
fmt.Sprintf(`"%s" does not match valid pattern %s`, truncateLongMessage(val), `^.*$`),
84+
fmt.Sprintf(`"%s" does not match valid pattern %s`, truncateLongMessage(val), `^[a-zA-Z0-9:/_-]*$`),
8585
attribute.Expr.Range(),
8686
)
8787
}

rules/tags/resources.go

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tools/provider-schema/.terraform.lock.hcl

Lines changed: 16 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tools/provider-schema/schema.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)