Allows management of multiple API services for a Google Cloud Platform project.
- id: services-api
source: community/modules/project/service-enablement
settings:
gcp_service_list: [
"file.googleapis.com",
"compute.googleapis.com"
]
This allows the project to enable both the filestore API as well as the compute API.
Copyright 2022 Google LLC
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Name | Version |
---|---|
terraform | >= 0.14.0 |
>= 3.83 |
Name | Version |
---|---|
>= 3.83 |
No modules.
Name | Type |
---|---|
google_project_service.gcp_services | resource |
Name | Description | Type | Default | Required |
---|---|---|---|---|
disable_on_destroy | Disable services on destroy if they were enabled (or already enabled) during apply (default: false) | bool |
false |
no |
gcp_service_list | list of APIs to be enabled for the project | list(string) |
n/a | yes |
project_id | ID of the project | string |
n/a | yes |
No outputs.