Skip to content

Commit 49999fe

Browse files
Update AWS provider/module and generated content (#954)
Co-authored-by: bendrucker <[email protected]>
1 parent 50bc28d commit 49999fe

12 files changed

+64
-22
lines changed

rules/models/aws-sdk-ruby

Submodule aws-sdk-ruby updated 573 files

rules/models/aws_db_proxy_endpoint_invalid_db_proxy_endpoint_name.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func NewAwsDBProxyEndpointInvalidDBProxyEndpointNameRule() *AwsDBProxyEndpointIn
2929
attributeName: "db_proxy_endpoint_name",
3030
max: 63,
3131
min: 1,
32-
pattern: regexp.MustCompile(`^[a-zA-Z][a-zA-Z0-9]*(-[a-zA-Z0-9]+)*$`),
32+
pattern: regexp.MustCompile(`^[a-zA-Z](?:-?[a-zA-Z0-9]+)*$`),
3333
}
3434
}
3535

@@ -90,7 +90,7 @@ func (r *AwsDBProxyEndpointInvalidDBProxyEndpointNameRule) Check(runner tflint.R
9090
if !r.pattern.MatchString(val) {
9191
runner.EmitIssue(
9292
r,
93-
fmt.Sprintf(`"%s" does not match valid pattern %s`, truncateLongMessage(val), `^[a-zA-Z][a-zA-Z0-9]*(-[a-zA-Z0-9]+)*$`),
93+
fmt.Sprintf(`"%s" does not match valid pattern %s`, truncateLongMessage(val), `^[a-zA-Z](?:-?[a-zA-Z0-9]+)*$`),
9494
attribute.Expr.Range(),
9595
)
9696
}

rules/models/aws_db_proxy_endpoint_invalid_db_proxy_name.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func NewAwsDBProxyEndpointInvalidDBProxyNameRule() *AwsDBProxyEndpointInvalidDBP
2929
attributeName: "db_proxy_name",
3030
max: 63,
3131
min: 1,
32-
pattern: regexp.MustCompile(`^[a-zA-Z][a-zA-Z0-9]*(-[a-zA-Z0-9]+)*$`),
32+
pattern: regexp.MustCompile(`^[a-zA-Z](?:-?[a-zA-Z0-9]+)*$`),
3333
}
3434
}
3535

@@ -90,7 +90,7 @@ func (r *AwsDBProxyEndpointInvalidDBProxyNameRule) Check(runner tflint.Runner) e
9090
if !r.pattern.MatchString(val) {
9191
runner.EmitIssue(
9292
r,
93-
fmt.Sprintf(`"%s" does not match valid pattern %s`, truncateLongMessage(val), `^[a-zA-Z][a-zA-Z0-9]*(-[a-zA-Z0-9]+)*$`),
93+
fmt.Sprintf(`"%s" does not match valid pattern %s`, truncateLongMessage(val), `^[a-zA-Z](?:-?[a-zA-Z0-9]+)*$`),
9494
attribute.Expr.Range(),
9595
)
9696
}

rules/models/aws_directory_service_directory_invalid_edition.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ func NewAwsDirectoryServiceDirectoryInvalidEditionRule() *AwsDirectoryServiceDir
2727
enum: []string{
2828
"Enterprise",
2929
"Standard",
30+
"Hybrid",
3031
},
3132
}
3233
}

rules/models/aws_ecs_service_invalid_launch_type.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ func NewAwsEcsServiceInvalidLaunchTypeRule() *AwsEcsServiceInvalidLaunchTypeRule
2828
"EC2",
2929
"FARGATE",
3030
"EXTERNAL",
31+
"MANAGED_INSTANCES",
3132
},
3233
}
3334
}

rules/models/aws_ecs_task_set_invalid_launch_type.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ func NewAwsEcsTaskSetInvalidLaunchTypeRule() *AwsEcsTaskSetInvalidLaunchTypeRule
2828
"EC2",
2929
"FARGATE",
3030
"EXTERNAL",
31+
"MANAGED_INSTANCES",
3132
},
3233
}
3334
}

rules/models/aws_instance_invalid_type.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1043,6 +1043,18 @@ func NewAwsInstanceInvalidTypeRule() *AwsInstanceInvalidTypeRule {
10431043
"i8ge.metal-48xl",
10441044
"mac-m4.metal",
10451045
"mac-m4pro.metal",
1046+
"r8gn.medium",
1047+
"r8gn.large",
1048+
"r8gn.xlarge",
1049+
"r8gn.2xlarge",
1050+
"r8gn.4xlarge",
1051+
"r8gn.8xlarge",
1052+
"r8gn.12xlarge",
1053+
"r8gn.16xlarge",
1054+
"r8gn.24xlarge",
1055+
"r8gn.48xlarge",
1056+
"r8gn.metal-24xl",
1057+
"r8gn.metal-48xl",
10461058
},
10471059
}
10481060
}

rules/models/aws_launch_configuration_invalid_type.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1043,6 +1043,18 @@ func NewAwsLaunchConfigurationInvalidTypeRule() *AwsLaunchConfigurationInvalidTy
10431043
"i8ge.metal-48xl",
10441044
"mac-m4.metal",
10451045
"mac-m4pro.metal",
1046+
"r8gn.medium",
1047+
"r8gn.large",
1048+
"r8gn.xlarge",
1049+
"r8gn.2xlarge",
1050+
"r8gn.4xlarge",
1051+
"r8gn.8xlarge",
1052+
"r8gn.12xlarge",
1053+
"r8gn.16xlarge",
1054+
"r8gn.24xlarge",
1055+
"r8gn.48xlarge",
1056+
"r8gn.metal-24xl",
1057+
"r8gn.metal-48xl",
10461058
},
10471059
}
10481060
}

rules/models/aws_launch_template_invalid_instance_type.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1043,6 +1043,18 @@ func NewAwsLaunchTemplateInvalidInstanceTypeRule() *AwsLaunchTemplateInvalidInst
10431043
"i8ge.metal-48xl",
10441044
"mac-m4.metal",
10451045
"mac-m4pro.metal",
1046+
"r8gn.medium",
1047+
"r8gn.large",
1048+
"r8gn.xlarge",
1049+
"r8gn.2xlarge",
1050+
"r8gn.4xlarge",
1051+
"r8gn.8xlarge",
1052+
"r8gn.12xlarge",
1053+
"r8gn.16xlarge",
1054+
"r8gn.24xlarge",
1055+
"r8gn.48xlarge",
1056+
"r8gn.metal-24xl",
1057+
"r8gn.metal-48xl",
10461058
},
10471059
}
10481060
}

rules/tags/resources.go

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

0 commit comments

Comments
 (0)