Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automate updates of https://snark-artifacts/pse.dev/project/latest endpoint when new versions are released #95

Closed
Tracked by #89
sripwoud opened this issue Jun 20, 2024 · 4 comments · Fixed by #114
Assignees

Comments

@sripwoud
Copy link
Member

sripwoud commented Jun 20, 2024

Assuming 1.0.0-beta.1 is the latest poseidon package version,
we want
https://snark-artifacts/pse.dev/poseidon/latest
and
https://snark-artifacts/pse.dev/poseidon/1.0.0-beta.1
to point to the same files.

Right now a cloudfront rule does the redirect, but that rule needs to be created manually everytime a new version is released.
Solutions:

  • automation with terraform?
  • duplicate the files? (always copy them to project/latest folder in the upload-artifacts workflow)?
  • other?
@ntampakas
Copy link
Contributor

I think the best way to do this is by using AWS CLI, manipulating the specific Cloudfront function.
I' ll start the implementation by the end of this week or the beginning of the following week.

@sripwoud
Copy link
Member Author

sripwoud commented Jun 26, 2024

@ntampakas have you ever used https://www.pulumi.com/ (IaC, kind of higher level alternative to terraform)
I think this could be a solution too.

In any case I like the idea of having the infra code version controlled.
Some people are interested in seeing how you configured s3 + cloudfront. see #65 (comment)

@ntampakas
Copy link
Contributor

@ntampakas have you ever used https://www.pulumi.com/ (IaC, kind of higher level alternative to terraform) I think this could be a solution too.

In any case I like the idea of having the infra code version controlled. Some people are interested in seeing how you configured s3 + cloudfront. see #65 (comment)

TBH, i' ve ever used pulumi :) For CI/CD we mainly use terraform and aws cli, as it seems to work for our needs and it' s pretty flexible.
Regarding IaC version control please see my comment here: #65 (comment)

@ntampakas
Copy link
Contributor

ntampakas commented Jul 3, 2024

PR created: #114

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✔️ Done
Development

Successfully merging a pull request may close this issue.

2 participants