Skip to content
Open
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
2 changes: 1 addition & 1 deletion rules/models/aws-sdk-ruby
Submodule aws-sdk-ruby updated 4268 files
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func NewAwsPrometheusAlertManagerDefinitionInvalidWorkspaceIDRule() *AwsPromethe
attributeName: "workspace_id",
max: 64,
min: 1,
pattern: regexp.MustCompile(`^[0-9A-Za-z][-.0-9A-Z_a-z]*$`),
pattern: regexp.MustCompile(`^.*[0-9A-Za-z][-.0-9A-Z_a-z]*.*$`),
}
}

Expand Down Expand Up @@ -90,7 +90,7 @@ func (r *AwsPrometheusAlertManagerDefinitionInvalidWorkspaceIDRule) Check(runner
if !r.pattern.MatchString(val) {
runner.EmitIssue(
r,
fmt.Sprintf(`"%s" does not match valid pattern %s`, truncateLongMessage(val), `^[0-9A-Za-z][-.0-9A-Z_a-z]*$`),
fmt.Sprintf(`"%s" does not match valid pattern %s`, truncateLongMessage(val), `^.*[0-9A-Za-z][-.0-9A-Z_a-z]*.*$`),
attribute.Expr.Range(),
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func NewAwsPrometheusRuleGroupNamespaceInvalidNameRule() *AwsPrometheusRuleGroup
attributeName: "name",
max: 64,
min: 1,
pattern: regexp.MustCompile(`^[0-9A-Za-z][-.0-9A-Z_a-z]*$`),
pattern: regexp.MustCompile(`^.*[0-9A-Za-z][-.0-9A-Z_a-z]*.*$`),
}
}

Expand Down Expand Up @@ -90,7 +90,7 @@ func (r *AwsPrometheusRuleGroupNamespaceInvalidNameRule) Check(runner tflint.Run
if !r.pattern.MatchString(val) {
runner.EmitIssue(
r,
fmt.Sprintf(`"%s" does not match valid pattern %s`, truncateLongMessage(val), `^[0-9A-Za-z][-.0-9A-Z_a-z]*$`),
fmt.Sprintf(`"%s" does not match valid pattern %s`, truncateLongMessage(val), `^.*[0-9A-Za-z][-.0-9A-Z_a-z]*.*$`),
attribute.Expr.Range(),
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func NewAwsPrometheusRuleGroupNamespaceInvalidWorkspaceIDRule() *AwsPrometheusRu
attributeName: "workspace_id",
max: 64,
min: 1,
pattern: regexp.MustCompile(`^[0-9A-Za-z][-.0-9A-Z_a-z]*$`),
pattern: regexp.MustCompile(`^.*[0-9A-Za-z][-.0-9A-Z_a-z]*.*$`),
}
}

Expand Down Expand Up @@ -90,7 +90,7 @@ func (r *AwsPrometheusRuleGroupNamespaceInvalidWorkspaceIDRule) Check(runner tfl
if !r.pattern.MatchString(val) {
runner.EmitIssue(
r,
fmt.Sprintf(`"%s" does not match valid pattern %s`, truncateLongMessage(val), `^[0-9A-Za-z][-.0-9A-Z_a-z]*$`),
fmt.Sprintf(`"%s" does not match valid pattern %s`, truncateLongMessage(val), `^.*[0-9A-Za-z][-.0-9A-Z_a-z]*.*$`),
attribute.Expr.Range(),
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ func NewAwsSagemakerNotebookInstanceInvalidInstanceTypeRule() *AwsSagemakerNoteb
"ml.p4d.24xlarge",
"ml.p4de.24xlarge",
"ml.p5.48xlarge",
"ml.p6-b200.48xlarge",
"ml.m6i.large",
"ml.m6i.xlarge",
"ml.m6i.2xlarge",
Expand Down
10 changes: 10 additions & 0 deletions rules/tags/resources.go

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

33 changes: 16 additions & 17 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.