Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /sustainability-software-lab_ca-biositing /deployment /cloud /gcp /infrastructure /apis.py
| """Enable required GCP APIs.""" | |
| import pulumi_gcp as gcp | |
| REQUIRED_APIS = [ | |
| "sqladmin.googleapis.com", | |
| "run.googleapis.com", | |
| "secretmanager.googleapis.com", | |
| "iam.googleapis.com", | |
| "cloudresourcemanager.googleapis.com", | |
| "artifactregistry.googleapis.com", # gcr.io uses AR as backend | |
| "cloudbuild.googleapis.com", | |
| "storage.googleapis.com", | |
| "compute.googleapis.com", | |
| ] | |
| def enable_apis(): | |
| """Enable GCP APIs needed by the infrastructure.""" | |
| services = {} | |
| for api in REQUIRED_APIS: | |
| name = api.split(".")[0] | |
| services[name] = gcp.projects.Service( | |
| f"api-{name}", | |
| service=api, | |
| disable_on_destroy=False, | |
| ) | |
| return services | |
Xet Storage Details
- Size:
- 727 Bytes
- Xet hash:
- 8a87165384db3b1b664aea168afbc149b3d51035aa33c5ca63f7c062c74a3cf0
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.