Skip to content

Commit 7ce1e9b

Browse files
Update AWS provider/module and generated content (#840)
Co-authored-by: bendrucker <[email protected]>
1 parent 0e54c09 commit 7ce1e9b

13 files changed

+365
-26
lines changed

rules/models/aws-sdk-ruby

Submodule aws-sdk-ruby updated 991 files

rules/models/aws_cloudformation_stack_invalid_policy_url.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ func NewAwsCloudformationStackInvalidPolicyURLRule() *AwsCloudformationStackInva
2323
return &AwsCloudformationStackInvalidPolicyURLRule{
2424
resourceType: "aws_cloudformation_stack",
2525
attributeName: "policy_url",
26-
max: 1350,
26+
max: 5120,
2727
min: 1,
2828
}
2929
}
@@ -71,7 +71,7 @@ func (r *AwsCloudformationStackInvalidPolicyURLRule) Check(runner tflint.Runner)
7171
if len(val) > r.max {
7272
runner.EmitIssue(
7373
r,
74-
"policy_url must be 1350 characters or less",
74+
"policy_url must be 5120 characters or less",
7575
attribute.Expr.Range(),
7676
)
7777
}

rules/models/aws_cloudformation_stack_invalid_template_url.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ func NewAwsCloudformationStackInvalidTemplateURLRule() *AwsCloudformationStackIn
2323
return &AwsCloudformationStackInvalidTemplateURLRule{
2424
resourceType: "aws_cloudformation_stack",
2525
attributeName: "template_url",
26-
max: 1024,
26+
max: 5120,
2727
min: 1,
2828
}
2929
}
@@ -71,7 +71,7 @@ func (r *AwsCloudformationStackInvalidTemplateURLRule) Check(runner tflint.Runne
7171
if len(val) > r.max {
7272
runner.EmitIssue(
7373
r,
74-
"template_url must be 1024 characters or less",
74+
"template_url must be 5120 characters or less",
7575
attribute.Expr.Range(),
7676
)
7777
}

rules/models/aws_cloudformation_stack_set_invalid_template_url.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ func NewAwsCloudformationStackSetInvalidTemplateURLRule() *AwsCloudformationStac
2323
return &AwsCloudformationStackSetInvalidTemplateURLRule{
2424
resourceType: "aws_cloudformation_stack_set",
2525
attributeName: "template_url",
26-
max: 1024,
26+
max: 5120,
2727
min: 1,
2828
}
2929
}
@@ -71,7 +71,7 @@ func (r *AwsCloudformationStackSetInvalidTemplateURLRule) Check(runner tflint.Ru
7171
if len(val) > r.max {
7272
runner.EmitIssue(
7373
r,
74-
"template_url must be 1024 characters or less",
74+
"template_url must be 5120 characters or less",
7575
attribute.Expr.Range(),
7676
)
7777
}

rules/models/aws_ecr_pull_through_cache_rule_invalid_ecr_repository_prefix.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func NewAwsEcrPullThroughCacheRuleInvalidEcrRepositoryPrefixRule() *AwsEcrPullTh
2929
attributeName: "ecr_repository_prefix",
3030
max: 30,
3131
min: 2,
32-
pattern: regexp.MustCompile(`^(?:[a-z0-9]+(?:[._-][a-z0-9]+)*/)*[a-z0-9]+(?:[._-][a-z0-9]+)*$`),
32+
pattern: regexp.MustCompile(`^((?:[a-z0-9]+(?:[._-][a-z0-9]+)*/)*[a-z0-9]+(?:[._-][a-z0-9]+)*/?|ROOT)$`),
3333
}
3434
}
3535

@@ -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]+)*/)*[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]+)*/?|ROOT)$`),
9494
attribute.Expr.Range(),
9595
)
9696
}

rules/models/aws_eks_node_group_invalid_ami_type.go

+2
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ func NewAwsEksNodeGroupInvalidAMITypeRule() *AwsEksNodeGroupInvalidAMITypeRule {
3131
"CUSTOM",
3232
"BOTTLEROCKET_ARM_64",
3333
"BOTTLEROCKET_x86_64",
34+
"BOTTLEROCKET_ARM_64_FIPS",
35+
"BOTTLEROCKET_x86_64_FIPS",
3436
"BOTTLEROCKET_ARM_64_NVIDIA",
3537
"BOTTLEROCKET_x86_64_NVIDIA",
3638
"WINDOWS_CORE_2019_x86_64",

0 commit comments

Comments
 (0)