tall-air-85619
08/29/2024, 12:22 PMpython
backend_service = gcp.compute.BackendService(
"backend_service",
name="new_backend_service",
backends=[gcp.compute.BackendServiceBackendArgs(
group=["projects/{project}/zones/{zone}/instanceGroups/{instance_group}"],
)],
health_checks=["projects/{project}/global/healthChecks/{health_check}"],
load_balancing_scheme="EXTERNAL",
port_name="test",
timeout_sec=30,
protocol="HTTP",
connection_draining_timeout_sec=300,
log_config=gcp.compute.BackendServiceLogConfigArgs(
enable=True,
sample_rate=1,
),
locality_lb_policies=[gcp.compute.BackendServiceLocalityLbPolicyPolicyArgs(
name="ROUND_ROBIN",
)]
)
However, I’m getting the following error:
raise AssertionError(f"Unexpected type. Expected 'list' got '{typ}'")
AssertionError: Unexpected type. Expected 'list' got '<class 'str'>'
Could you help me identify what’s causing this issue?No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.
Powered by