Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update AWS provider/module and generated content #471

Merged
merged 1 commit into from
Apr 22, 2023
Merged
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
100 changes: 100 additions & 0 deletions aws/mock/ec2.go

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

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.224
github.com/aws/aws-sdk-go v1.44.245
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 @@ -5,8 +5,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.224 h1:09CiaaF35nRmxrzWZ2uRq5v6Ghg/d2RiPjZnSgtt+RQ=
github.com/aws/aws-sdk-go v1.44.224/go.mod h1:aVsgQcEevwlmQ7qHE9I3h+dtQgpqhFB+i8Phjh7fkwI=
github.com/aws/aws-sdk-go v1.44.245 h1:KtY2s4q31/kn33AdV63R5t77mdxsI7rq3YT7Mgo805M=
github.com/aws/aws-sdk-go v1.44.245/go.mod h1:aVsgQcEevwlmQ7qHE9I3h+dtQgpqhFB+i8Phjh7fkwI=
github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw=
github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
Expand Down
2 changes: 1 addition & 1 deletion rules/models/aws-sdk-go
Submodule aws-sdk-go updated 499 files
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ func NewAwsEcsAccountSettingDefaultInvalidNameRule() *AwsEcsAccountSettingDefaul
"containerInstanceLongArnFormat",
"awsvpcTrunking",
"containerInsights",
"fargateFIPSMode",
},
}
}
Expand Down
5 changes: 5 additions & 0 deletions rules/models/aws_instance_invalid_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -663,6 +663,11 @@ func NewAwsInstanceInvalidTypeRule() *AwsInstanceInvalidTypeRule {
"r7g.12xlarge",
"r7g.16xlarge",
"r7g.metal",
"c6in.metal",
"m6in.metal",
"m6idn.metal",
"r6in.metal",
"r6idn.metal",
},
}
}
Expand Down
1 change: 1 addition & 0 deletions rules/models/aws_lambda_function_invalid_runtime.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ func NewAwsLambdaFunctionInvalidRuntimeRule() *AwsLambdaFunctionInvalidRuntimeRu
"provided",
"provided.al2",
"nodejs18.x",
"python3.10",
},
}
}
Expand Down
5 changes: 5 additions & 0 deletions rules/models/aws_launch_configuration_invalid_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -663,6 +663,11 @@ func NewAwsLaunchConfigurationInvalidTypeRule() *AwsLaunchConfigurationInvalidTy
"r7g.12xlarge",
"r7g.16xlarge",
"r7g.metal",
"c6in.metal",
"m6in.metal",
"m6idn.metal",
"r6in.metal",
"r6idn.metal",
},
}
}
Expand Down
5 changes: 5 additions & 0 deletions rules/models/aws_launch_template_invalid_instance_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -663,6 +663,11 @@ func NewAwsLaunchTemplateInvalidInstanceTypeRule() *AwsLaunchTemplateInvalidInst
"r7g.12xlarge",
"r7g.16xlarge",
"r7g.metal",
"c6in.metal",
"m6in.metal",
"m6idn.metal",
"r6in.metal",
"r6idn.metal",
},
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func NewAwsSagemakerFeatureGroupInvalidFeatureGroupNameRule() *AwsSagemakerFeatu
attributeName: "feature_group_name",
max: 64,
min: 1,
pattern: regexp.MustCompile(`^[a-zA-Z0-9](-*[a-zA-Z0-9]){0,63}`),
pattern: regexp.MustCompile(`^[a-zA-Z0-9]([_-]*[a-zA-Z0-9]){0,63}`),
}
}

Expand Down Expand Up @@ -93,7 +93,7 @@ func (r *AwsSagemakerFeatureGroupInvalidFeatureGroupNameRule) Check(runner tflin
if !r.pattern.MatchString(val) {
runner.EmitIssue(
r,
fmt.Sprintf(`"%s" does not match valid pattern %s`, truncateLongMessage(val), `^[a-zA-Z0-9](-*[a-zA-Z0-9]){0,63}`),
fmt.Sprintf(`"%s" does not match valid pattern %s`, truncateLongMessage(val), `^[a-zA-Z0-9]([_-]*[a-zA-Z0-9]){0,63}`),
attribute.Expr.Range(),
)
}
Expand Down
1 change: 1 addition & 0 deletions rules/models/aws_servicecatalog_product_invalid_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ func NewAwsServicecatalogProductInvalidTypeRule() *AwsServicecatalogProductInval
enum: []string{
"CLOUD_FORMATION_TEMPLATE",
"MARKETPLACE",
"TERRAFORM_OPEN_SOURCE",
},
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ func NewAwsServicecatalogProvisioningArtifactInvalidTypeRule() *AwsServicecatalo
"CLOUD_FORMATION_TEMPLATE",
"MARKETPLACE_AMI",
"MARKETPLACE_CAR",
"TERRAFORM_OPEN_SOURCE",
},
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ func NewAwsSsmPatchBaselineInvalidOperatingSystemRule() *AwsSsmPatchBaselineInva
"MACOS",
"RASPBIAN",
"ROCKY_LINUX",
"ALMA_LINUX",
"AMAZON_LINUX_2023",
},
}
}
Expand Down
18 changes: 18 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.