Skip to content

Commit

Permalink
Update AWS provider/module and generated content (#505)
Browse files Browse the repository at this point in the history
Co-authored-by: bendrucker <[email protected]>
  • Loading branch information
github-actions[bot] and bendrucker authored Jul 12, 2023
1 parent 666253c commit 272911e
Show file tree
Hide file tree
Showing 11 changed files with 35 additions and 27 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.20

require (
github.com/agext/levenshtein v1.2.2 // indirect
github.com/aws/aws-sdk-go v1.44.290
github.com/aws/aws-sdk-go v1.44.299
github.com/dave/dst v0.27.2
github.com/fatih/color v1.13.0 // indirect
github.com/golang/mock v1.6.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ github.com/agext/levenshtein v1.2.2/go.mod h1:JEDfjyjHDjOF/1e4FlBE/PkbqA9OfWu2ki
github.com/apparentlymart/go-textseg/v13 v13.0.0 h1:Y+KvPE1NYz0xl601PVImeQfFyEy6iT90AvPUL1NNfNw=
github.com/apparentlymart/go-textseg/v13 v13.0.0/go.mod h1:ZK2fH7c4NqDTLtiYLvIkEghdlcqw7yxLeM89kiTRPUo=
github.com/aws/aws-sdk-go v1.31.9/go.mod h1:5zCpMtNQVjRREroY7sYe8lOMRSxkhG6MZveU8YkpAk0=
github.com/aws/aws-sdk-go v1.44.290 h1:Md4+os9DQtJjow0lWLMzeJljsimD+XS2xwwHDr5Z+Lk=
github.com/aws/aws-sdk-go v1.44.290/go.mod h1:aVsgQcEevwlmQ7qHE9I3h+dtQgpqhFB+i8Phjh7fkwI=
github.com/aws/aws-sdk-go v1.44.299 h1:HVD9lU4CAFHGxleMJp95FV/sRhtg7P4miHD1v88JAQk=
github.com/aws/aws-sdk-go v1.44.299/go.mod h1:aVsgQcEevwlmQ7qHE9I3h+dtQgpqhFB+i8Phjh7fkwI=
github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
github.com/dave/dst v0.27.2 h1:4Y5VFTkhGLC1oddtNwuxxe36pnyLxMFXT51FOzH8Ekc=
github.com/dave/dst v0.27.2/go.mod h1:jHh6EOibnHgcUW3WjKHisiooEkYwqpHLBSX1iOBhEyc=
Expand Down
2 changes: 1 addition & 1 deletion rules/models/aws-sdk-go
Submodule aws-sdk-go updated 203 files
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ func NewAwsGameliftBuildInvalidOperatingSystemRule() *AwsGameliftBuildInvalidOpe
"AMAZON_LINUX",
"AMAZON_LINUX_2",
"WINDOWS_2016",
"AMAZON_LINUX_2023",
},
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ func NewAwsKinesisanalyticsv2ApplicationInvalidRuntimeEnvironmentRule() *AwsKine
"FLINK-1_13",
"ZEPPELIN-FLINK-2_0",
"FLINK-1_15",
"ZEPPELIN-FLINK-3_0",
},
}
}
Expand Down
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
6 changes: 6 additions & 0 deletions rules/tags/resources.go

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

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

0 comments on commit 272911e

Please sign in to comment.