https://pulumi.com logo
#google-cloud
Title
# google-cloud
b

best-summer-38252

11/17/2021, 6:50 AM
Hi, anyone know how to activate a service API for an existing Project? ie
Copy code
gcloud services enable my-consumed-service
but with the google-native provider?
p

prehistoric-activity-61023

11/17/2021, 8:29 AM
I haven’t used google-native provider but I can send you a snippet for classic one if you want.
b

best-summer-38252

11/17/2021, 3:05 PM
sure, ill just use both for now! thanks @prehistoric-activity-61023
p

prehistoric-activity-61023

11/17/2021, 3:11 PM
Copy code
service = gcp.projects.Service(
        api_name,
        disable_dependent_services=True,
        service=api,
        project=project.project_id,
        opts=pulumi.ResourceOptions(parent=project),
    )
^ that’s what you need then
where
api
is for example:
<http://container.googleapis.com|container.googleapis.com>
t

tall-photographer-1935

11/17/2021, 4:45 PM
It doesn't exist to my knowledge for the native provider. You have to use classic for now
b

best-summer-38252

11/19/2021, 12:15 AM
Thanks @tall-photographer-1935 and @prehistoric-activity-61023