Skip to content

Commit dc3286c

Browse files
committed
configure cloud quotas
Signed-off-by: Jacob Straszynski <jacob.straszynski@planet.com>
1 parent ae12d12 commit dc3286c

3 files changed

Lines changed: 6 additions & 0 deletions

File tree

config/externalname.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1037,6 +1037,9 @@ var terraformPluginSDKExternalNameConfigs = map[string]config.ExternalName{
10371037
"google_tags_tag_key": config.IdentifierFromProvider,
10381038
// Imported by using the following tagValues/{{name}}
10391039
"google_tags_tag_value": config.IdentifierFromProvider,
1040+
1041+
// cloudquotas
1042+
"google_cloud_quotas_quota_preference": config.TemplatedStringAsIdentifier("name", "{{ .parameters.parent }}/locations/global/quotaPreferences/{{ .external_name }}"),
10401043
}
10411044

10421045
// cliReconciledExternalNameConfigs contains all external name configurations

config/generated.lst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666
"google_certificate_manager_dns_authorization",
6767
"google_certificate_manager_trust_config",
6868
"google_cloud_ids_endpoint",
69+
"google_cloud_quotas_quota_preference",
6970
"google_cloud_run_domain_mapping",
7071
"google_cloud_run_service",
7172
"google_cloud_run_service_iam_member",

config/overrides.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ var groupMap = map[string]GroupKindCalculator{
113113
"google_document_ai.+": ReplaceGroupWords("", 2),
114114

115115
"google_essential_contacts_contact$": ReplaceGroupWords("", 2),
116+
117+
"google_cloud_quotas.+$": ReplaceGroupWords("", 2),
116118
}
117119

118120
// ReplaceGroupWords uses given group as the group of the resource and removes

0 commit comments

Comments
 (0)