eager-room-52651
01/06/2022, 2:28 PMproject = gcp.projects.Service(PROJECT_NAME,
disable_dependent_services=True,
project=PROJECT_ID,
service=["<http://compute.googleapis.com|compute.googleapis.com>", "<http://container.googleapis.com|container.googleapis.com>"])
out put:
AssertionError: Unexpected type. Expected 'list' got '<class 'str'>'
great-queen-39697
01/06/2022, 3:12 PMservice
is a string in the GCP Classic API (defined in GCP Classic (Pulumi Registry) with the SDK code. Let me ask around and see if there's a better way than doing a single declaration for each service API.eager-room-52651
01/06/2022, 3:14 PMservice
which works fine. but its odd that the error is stating that it is expecting a list but then throws an error expecting a stringgreat-queen-39697
01/06/2022, 3:24 PMpulumi version
in the CLI.eager-room-52651
01/06/2022, 3:40 PMv3.21.0
great-queen-39697
01/06/2022, 3:56 PMbillowy-army-68599
service
property takes a string?
https://www.pulumi.com/registry/packages/gcp/api-docs/projects/service/#service_pythongreat-queen-39697
01/06/2022, 4:06 PMeager-room-52651
01/06/2022, 4:07 PMbillowy-army-68599
services = ["<http://compute.googleapis.com|compute.googleapis.com>", "<http://container.googleapis.com|container.googleapis.com>"]
for i, service in enumerate(services):
project = gcp.projects.Service(f"{project_name}-{i},
disable_dependent_services=True,
project=PROJECT_ID,
service=service)
great-queen-39697
01/06/2022, 4:15 PMbillowy-army-68599
eager-room-52651
01/06/2022, 4:20 PM