Skip to content

pkg/pipeline: AWS clients built without a region fail on instances (same class as #899) #906

Closed

Description

@scttfrdmn

Found while fixing #899 (PR #902), which fixed the hybrid registry and spored run-queue.

pkg/pipeline builds its clients with a bare LoadDefaultConfig(ctx): data_handoff.go:31,300, peer_discovery.go:46, stage_runner.go:47,256,309 (NewStageDataHandler, GeneratePeerDiscoveryFile, downloadPipelineDefinitionFromS3, ...). On EC2 there is no AWS_REGION, and the Go SDK only consults IMDS with config.WithEC2IMDSRegion(), so these fail with Missing Region under spored run-pipeline-stage.

Nothing in this repo invokes run-pipeline-stage today, so this is latent. Suggested: use WithEC2IMDSRegion() (as #902 does for the queue runner), or decide whether the pipeline stage runner is dead code and remove it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions