Skip to content

Pipeline stage user data still exports SPAWN_RESULT_S3_BUCKET/PREFIX, a location the stage cannot write #1013

Closed

Description

@scttfrdmn

Follow-up to #989 (PR #1012), which deprecates result_s3_bucket/result_s3_prefix, so spawn pipeline collect no longer reads them.

lambda/pipeline-orchestrator/main.go (stage user data, around the export SPAWN_RESULT_S3_BUCKET='%s' lines) still exports both into every stage's environment. The stage instance profile (pipeline.StageDataPolicy) grants only s3_bucket/<s3_prefix>/*, so a stage command that trusts these variables and writes there gets AccessDenied. Even if a bucket policy allowed the write, nothing would collect it.

I left them alone in #1012 to keep that PR CLI-only, with no Lambda redeploy. Suggested: stop exporting them, or export them empty and add a one-line deprecation note in the stage log, and redeploy spawn-pipeline-orchestrator. Found by reading the code; not reproduced against AWS.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions