Skip to content

Commit

Permalink
Remove NamespaceName
Browse files Browse the repository at this point in the history
suppress the following error:
panic: regexp: Compile(`^[!-~]{1,1024}$`): error parsing regexp: invalid repeat count: `{1,1024}`
  • Loading branch information
wata727 committed Dec 30, 2024
1 parent b6eb2d9 commit 958b945
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 261 deletions.
3 changes: 0 additions & 3 deletions docs/rules/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1177,14 +1177,11 @@ These rules enforce best practices and naming conventions:
|aws_securityhub_standards_control_invalid_standards_control_arn||
|aws_securityhub_standards_subscription_invalid_standards_arn||
|aws_service_discovery_http_namespace_invalid_description||
|aws_service_discovery_http_namespace_invalid_name||
|aws_service_discovery_instance_invalid_instance_id||
|aws_service_discovery_instance_invalid_service_id||
|aws_service_discovery_private_dns_namespace_invalid_description||
|aws_service_discovery_private_dns_namespace_invalid_name||
|aws_service_discovery_private_dns_namespace_invalid_vpc||
|aws_service_discovery_public_dns_namespace_invalid_description||
|aws_service_discovery_public_dns_namespace_invalid_name||
|aws_service_discovery_service_invalid_description||
|aws_servicecatalog_budget_resource_association_invalid_budget_name||
|aws_servicecatalog_budget_resource_association_invalid_resource_id||
Expand Down
84 changes: 0 additions & 84 deletions rules/models/aws_service_discovery_http_namespace_invalid_name.go

This file was deleted.

This file was deleted.

This file was deleted.

6 changes: 3 additions & 3 deletions rules/models/mappings/service-discovery.hcl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import = "aws-sdk-ruby/apis/servicediscovery/2017-03-14/api-2.json"

mapping "aws_service_discovery_http_namespace" {
name = NamespaceName
name = any //NamespaceName
description = ResourceDescription
}

Expand All @@ -12,13 +12,13 @@ mapping "aws_service_discovery_instance" {
}

mapping "aws_service_discovery_private_dns_namespace" {
name = NamespaceName
name = any //NamespaceName
vpc = ResourceId
description = ResourceDescription
}

mapping "aws_service_discovery_public_dns_namespace" {
name = NamespaceName
name = any //NamespaceName
description = ResourceDescription
}

Expand Down
3 changes: 0 additions & 3 deletions rules/models/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -1099,14 +1099,11 @@ var Rules = []tflint.Rule{
NewAwsSecurityhubStandardsControlInvalidStandardsControlArnRule(),
NewAwsSecurityhubStandardsSubscriptionInvalidStandardsArnRule(),
NewAwsServiceDiscoveryHTTPNamespaceInvalidDescriptionRule(),
NewAwsServiceDiscoveryHTTPNamespaceInvalidNameRule(),
NewAwsServiceDiscoveryInstanceInvalidInstanceIDRule(),
NewAwsServiceDiscoveryInstanceInvalidServiceIDRule(),
NewAwsServiceDiscoveryPrivateDNSNamespaceInvalidDescriptionRule(),
NewAwsServiceDiscoveryPrivateDNSNamespaceInvalidNameRule(),
NewAwsServiceDiscoveryPrivateDNSNamespaceInvalidVpcRule(),
NewAwsServiceDiscoveryPublicDNSNamespaceInvalidDescriptionRule(),
NewAwsServiceDiscoveryPublicDNSNamespaceInvalidNameRule(),
NewAwsServiceDiscoveryServiceInvalidDescriptionRule(),
NewAwsServicecatalogBudgetResourceAssociationInvalidBudgetNameRule(),
NewAwsServicecatalogBudgetResourceAssociationInvalidResourceIDRule(),
Expand Down

0 comments on commit 958b945

Please sign in to comment.