0

In a Vertex AI pipeline (google_cloud_pipeline_components version: 1.0.19 kfp version: 1.8.13), I try:

does_endpoint_exist_op = does_endpoint_exist(project=project, 
    location=location, endpoint_name_in=endpoint_name) 
endpoint_name=does_endpoint_exist_op.outputs['endpoint_name']

but this gives:

AssertionError: component_input_parameter: pipelineparam--does-endpoint-exist-endpoint_name not found.

The component is defined:

@component(
    packages_to_install=["google-cloud-aiplatform", 
                         "google-cloud-pipeline-components==1.0.19"],
    output_component_file="does_endpoint_exist_component.yaml",
)

def does_endpoint_exist(project: str, 
                    location: str,
                    endpoint_name_in: str, endpoint: Output[Artifact], 
                    endpoint_name: Output[Artifact]) -> str:

I can do:

endpoint_name=does_endpoint_exist_op.outputs['Output'] 

OK, so why can't I access endpoint_name?

schoon
  • 2,858
  • 3
  • 46
  • 78

0 Answers0