Hi, anyone know how to activate a service API for ...
# google-cloud
b
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
I haven’t used google-native provider but I can send you a snippet for classic one if you want.
b
sure, ill just use both for now! thanks @prehistoric-activity-61023
p
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
It doesn't exist to my knowledge for the native provider. You have to use classic for now
b
Thanks @tall-photographer-1935 and @prehistoric-activity-61023