Skip to content

fix: correct CFN template path in S3 publish step#77

Merged
mike-ainsel merged 1 commit into
mainfrom
fix/cfn-s3-upload-path
Jun 12, 2026
Merged

fix: correct CFN template path in S3 publish step#77
mike-ainsel merged 1 commit into
mainfrom
fix/cfn-s3-upload-path

Conversation

@mike-ainsel

Copy link
Copy Markdown
Member

Problem

The public CloudFormation install template at https://platforma-cloudformation.s3.eu-central-1.amazonaws.com/cloudformation-eks-1-35.yaml was stale (stuck at Platforma 3.5.0, missing the metrics-server addon) while pl main was at 4.0.1.

Root cause: the template moved into an infrastructure/aws/cloudformation/ subdirectory (via upstream sync from pl), but the Upload CFN template to S3 step still copied from ./infrastructure/aws/cloudformation-eks-1-35.yaml — a path that no longer exists. aws s3 cp therefore failed on the last two release tags ("Publish Helm Chart" runs 27200663170, 26902329525 went red), so the S3 object kept the last successful upload from 2026-05-12.

Impact: stacks upgrading against the public URL saw a plan to delete metrics-server and downgrade Platforma 4.0.1 → 3.5.0.

Fix

  • Correct the path to ./infrastructure/aws/cloudformation/cloudformation-eks-1-35.yaml.
  • Add guards so the step fails loudly instead of silently serving a stale template:
    • error if the template file is missing (catches future path moves)
    • error if the template's Platforma version != the chart version being released
  • Set --content-type text/yaml on upload.

Note

The live S3 object was already manually refreshed to 4.0.1 (md5-verified against pl main) as a stopgap, with the previous 3.5.0 template backed up to s3://platforma-cloudformation/cloudformation-eks-1-35.yaml.bak-3.5.0-20260512. This PR makes the next release republish correctly on its own.

The CloudFormation template moved into an infrastructure/aws/cloudformation/
subdirectory (via upstream sync from pl), but the publish workflow still
uploaded from infrastructure/aws/cloudformation-eks-1-35.yaml. That path no
longer exists, so 'aws s3 cp' failed on the last two release tags and the
public S3 object (cloudformation-eks-1-35.yaml) froze at an old version
(3.5.0, no metrics-server).

Fix the path and add guards so the step fails loudly instead of silently
serving a stale template:
- error if the template file is missing
- error if the template's Platforma version != chart version being released
@mike-ainsel mike-ainsel merged commit 5279a90 into main Jun 12, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant