Skip to content

Commit 6bf7b87

Browse files
Update AWS provider/module and generated content (#720)
Co-authored-by: wata727 <[email protected]>
1 parent 8daf34d commit 6bf7b87

10 files changed

+69
-20
lines changed

rules/models/aws-sdk-ruby

Submodule aws-sdk-ruby updated 5174 files

rules/models/aws_instance_invalid_type.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -845,6 +845,14 @@ func NewAwsInstanceInvalidTypeRule() *AwsInstanceInvalidTypeRule {
845845
"r8g.metal-24xl",
846846
"r8g.metal-48xl",
847847
"mac2-m1ultra.metal",
848+
"g6e.xlarge",
849+
"g6e.2xlarge",
850+
"g6e.4xlarge",
851+
"g6e.8xlarge",
852+
"g6e.12xlarge",
853+
"g6e.16xlarge",
854+
"g6e.24xlarge",
855+
"g6e.48xlarge",
848856
},
849857
}
850858
}

rules/models/aws_launch_configuration_invalid_type.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -845,6 +845,14 @@ func NewAwsLaunchConfigurationInvalidTypeRule() *AwsLaunchConfigurationInvalidTy
845845
"r8g.metal-24xl",
846846
"r8g.metal-48xl",
847847
"mac2-m1ultra.metal",
848+
"g6e.xlarge",
849+
"g6e.2xlarge",
850+
"g6e.4xlarge",
851+
"g6e.8xlarge",
852+
"g6e.12xlarge",
853+
"g6e.16xlarge",
854+
"g6e.24xlarge",
855+
"g6e.48xlarge",
848856
},
849857
}
850858
}

rules/models/aws_launch_template_invalid_instance_type.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -845,6 +845,14 @@ func NewAwsLaunchTemplateInvalidInstanceTypeRule() *AwsLaunchTemplateInvalidInst
845845
"r8g.metal-24xl",
846846
"r8g.metal-48xl",
847847
"mac2-m1ultra.metal",
848+
"g6e.xlarge",
849+
"g6e.2xlarge",
850+
"g6e.4xlarge",
851+
"g6e.8xlarge",
852+
"g6e.12xlarge",
853+
"g6e.16xlarge",
854+
"g6e.24xlarge",
855+
"g6e.48xlarge",
848856
},
849857
}
850858
}

rules/models/aws_organizations_policy_invalid_type.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ func NewAwsOrganizationsPolicyInvalidTypeRule() *AwsOrganizationsPolicyInvalidTy
2929
"TAG_POLICY",
3030
"BACKUP_POLICY",
3131
"AISERVICES_OPT_OUT_POLICY",
32+
"CHATBOT_POLICY",
3233
},
3334
}
3435
}

rules/models/aws_resourcegroups_group_invalid_name.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ func NewAwsResourcegroupsGroupInvalidNameRule() *AwsResourcegroupsGroupInvalidNa
2929
attributeName: "name",
3030
max: 300,
3131
min: 1,
32-
pattern: regexp.MustCompile(`^[a-zA-Z0-9_\.-]+$`),
32+
pattern: regexp.MustCompile(`^[a-zA-Z0-9_\.-]{1,300}|[a-zA-Z0-9_\.-]{1,150}/[a-z0-9]{26}$`),
3333
}
3434
}
3535

@@ -90,7 +90,7 @@ func (r *AwsResourcegroupsGroupInvalidNameRule) Check(runner tflint.Runner) erro
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-Z0-9_\.-]+$`),
93+
fmt.Sprintf(`"%s" does not match valid pattern %s`, truncateLongMessage(val), `^[a-zA-Z0-9_\.-]{1,300}|[a-zA-Z0-9_\.-]{1,150}/[a-z0-9]{26}$`),
9494
attribute.Expr.Range(),
9595
)
9696
}

rules/models/aws_storagegateway_cached_iscsi_volume_invalid_source_volume_arn.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
package models
44

55
import (
6+
"fmt"
7+
"regexp"
8+
69
"github.com/terraform-linters/tflint-plugin-sdk/hclext"
710
"github.com/terraform-linters/tflint-plugin-sdk/logger"
811
"github.com/terraform-linters/tflint-plugin-sdk/tflint"
@@ -16,6 +19,7 @@ type AwsStoragegatewayCachedIscsiVolumeInvalidSourceVolumeArnRule struct {
1619
attributeName string
1720
max int
1821
min int
22+
pattern *regexp.Regexp
1923
}
2024

2125
// NewAwsStoragegatewayCachedIscsiVolumeInvalidSourceVolumeArnRule returns new rule with default attributes
@@ -25,6 +29,7 @@ func NewAwsStoragegatewayCachedIscsiVolumeInvalidSourceVolumeArnRule() *AwsStora
2529
attributeName: "source_volume_arn",
2630
max: 500,
2731
min: 50,
32+
pattern: regexp.MustCompile(`^arn:(aws(|-cn|-us-gov|-iso[A-Za-z0-9_-]*)):storagegateway:[a-z\-0-9]+:[0-9]+:gateway\/(.+)\/volume\/vol-(\S+)$`),
2833
}
2934
}
3035

@@ -82,6 +87,13 @@ func (r *AwsStoragegatewayCachedIscsiVolumeInvalidSourceVolumeArnRule) Check(run
8287
attribute.Expr.Range(),
8388
)
8489
}
90+
if !r.pattern.MatchString(val) {
91+
runner.EmitIssue(
92+
r,
93+
fmt.Sprintf(`"%s" does not match valid pattern %s`, truncateLongMessage(val), `^arn:(aws(|-cn|-us-gov|-iso[A-Za-z0-9_-]*)):storagegateway:[a-z\-0-9]+:[0-9]+:gateway\/(.+)\/volume\/vol-(\S+)$`),
94+
attribute.Expr.Range(),
95+
)
96+
}
8597
return nil
8698
}, nil)
8799
if err != nil {

rules/tags/resources.go

Lines changed: 12 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)