github.com/GoogleCloudPlatform/terraformer@v0.8.18/docs/gcp.md (about) 1 ### Use with GCP 2 3 In order to access the information from your Google Project, you need to provide authentication credentials 4 by setting up the environment variable `GOOGLE_APPLICATION_CREDENTIALS` with the file path of the JSON 5 file that contains your service account key. 6 7 [](https://asciinema.org/a/243961) 8 9 Example: 10 11 ``` 12 terraformer import google --resources=gcs,forwardingRules,httpHealthChecks --connect=true --regions=europe-west1,europe-west4 --projects=aaa,fff 13 terraformer import google --resources=gcs,forwardingRules,httpHealthChecks --filter=compute_firewall=rule1:rule2:rule3 --regions=europe-west1 --projects=aaa,fff 14 ``` 15 16 For google-beta provider: 17 18 ``` 19 terraformer import google --resources=gcs,forwardingRules,httpHealthChecks --regions=europe-west4 --projects=aaa --provider-type beta 20 ``` 21 22 List of supported GCP services: 23 24 * `addresses` 25 * `google_compute_address` 26 * `autoscalers` 27 * `google_compute_autoscaler` 28 * `backendBuckets` 29 * `google_compute_backend_bucket` 30 * `backendServices` 31 * `google_compute_backend_service` 32 * `bigQuery` 33 * `google_bigquery_dataset` 34 * `google_bigquery_table` 35 * `cloudFunctions` 36 * `google_cloudfunctions_function` 37 * `cloudsql` 38 * `google_sql_database_instance` 39 * `google_sql_database` 40 * `dataProc` 41 * `google_dataproc_cluster` 42 * `disks` 43 * `google_compute_disk` 44 * `externalVpnGateways` 45 * `google_compute_external_vpn_gateway` 46 * `dns` 47 * `google_dns_managed_zone` 48 * `google_dns_record_set` 49 * `firewall` 50 * `google_compute_firewall` 51 * `forwardingRules` 52 * `google_compute_forwarding_rule` 53 * `gcs` 54 * `google_storage_bucket` 55 * `google_storage_bucket_acl` 56 * `google_storage_default_object_acl` 57 * `google_storage_bucket_iam_binding` 58 * `google_storage_bucket_iam_member` 59 * `google_storage_bucket_iam_policy` 60 * `google_storage_notification` 61 * `gke` 62 * `google_container_cluster` 63 * `google_container_node_pool` 64 * `globalAddresses` 65 * `google_compute_global_address` 66 * `globalForwardingRules` 67 * `google_compute_global_forwarding_rule` 68 * `healthChecks` 69 * `google_compute_health_check` 70 * `httpHealthChecks` 71 * `google_compute_http_health_check` 72 * `httpsHealthChecks` 73 * `google_compute_https_health_check` 74 * `iam` 75 * `google_project_iam_custom_role` 76 * `google_project_iam_member` 77 * `google_service_account` 78 * `images` 79 * `google_compute_image` 80 * `instanceGroupManagers` 81 * `google_compute_instance_group_manager` 82 * `instanceGroups` 83 * `google_compute_instance_group` 84 * `instanceTemplates` 85 * `google_compute_instance_template` 86 * `instances` 87 * `google_compute_instance` 88 * `interconnectAttachments` 89 * `google_compute_interconnect_attachment` 90 * `kms` 91 * `google_kms_key_ring` 92 * `google_kms_crypto_key` 93 * `logging` 94 * `google_logging_metric` 95 * `memoryStore` 96 * `google_redis_instance` 97 * `monitoring` 98 * `google_monitoring_alert_policy` 99 * `google_monitoring_group` 100 * `google_monitoring_notification_channel` 101 * `google_monitoring_uptime_check_config` 102 * `networks` 103 * `google_compute_network` 104 * `packetMirrorings` 105 * `google_compute_packet_mirroring` 106 * `nodeGroups` 107 * `google_compute_node_group` 108 * `nodeTemplates` 109 * `google_compute_node_template` 110 * `project` 111 * `google_project` 112 * `pubsub` 113 * `google_pubsub_subscription` 114 * `google_pubsub_topic` 115 * `regionAutoscalers` 116 * `google_compute_region_autoscaler` 117 * `regionBackendServices` 118 * `google_compute_region_backend_service` 119 * `regionDisks` 120 * `google_compute_region_disk` 121 * `regionHealthChecks` 122 * `google_compute_region_health_check` 123 * `regionInstanceGroups` 124 * `google_compute_region_instance_group` 125 * `regionSslCertificates` 126 * `google_compute_region_ssl_certificate` 127 * `regionTargetHttpProxies` 128 * `google_compute_region_target_http_proxy` 129 * `regionTargetHttpsProxies` 130 * `google_compute_region_target_https_proxy` 131 * `regionUrlMaps` 132 * `google_compute_region_url_map` 133 * `reservations` 134 * `google_compute_reservation` 135 * `resourcePolicies` 136 * `google_compute_resource_policy` 137 * `regionInstanceGroupManagers` 138 * `google_compute_region_instance_group_manager` 139 * `routers` 140 * `google_compute_router` 141 * `routes` 142 * `google_compute_route` 143 * `schedulerJobs` 144 * `google_cloud_scheduler_job` 145 * `securityPolicies` 146 * `google_compute_security_policy` 147 * `sslCertificates` 148 * `google_compute_managed_ssl_certificate` 149 * `sslPolicies` 150 * `google_compute_ssl_policy` 151 * `subnetworks` 152 * `google_compute_subnetwork` 153 * `targetHttpProxies` 154 * `google_compute_target_http_proxy` 155 * `targetHttpsProxies` 156 * `google_compute_target_https_proxy` 157 * `targetInstances` 158 * `google_compute_target_instance` 159 * `targetPools` 160 * `google_compute_target_pool` 161 * `targetSslProxies` 162 * `google_compute_target_ssl_proxy` 163 * `targetTcpProxies` 164 * `google_compute_target_tcp_proxy` 165 * `targetVpnGateways` 166 * `google_compute_vpn_gateway` 167 * `urlMaps` 168 * `google_compute_url_map` 169 * `vpnTunnels` 170 * `google_compute_vpn_tunnel` 171 172 Your `tf` and `tfstate` files are written by default to 173 `generated/gcp/zone/service`.