Skip to content

Latest commit

 

History

History
70 lines (49 loc) · 2.2 KB

File metadata and controls

70 lines (49 loc) · 2.2 KB

Description

Allows management of multiple API services for a Google Cloud Platform project.

Example

- 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.

License

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.

Requirements

Name Version
terraform >= 0.14.0
google >= 3.83

Providers

Name Version
google >= 3.83

Modules

No modules.

Resources

Name Type
google_project_service.gcp_services resource

Inputs

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

Outputs

No outputs.