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 copying of S3 media folder for a particular organisation from prod to pre-release #30

Closed
petmongrels opened this issue May 14, 2024 · 3 comments

Comments

@petmongrels
Copy link
Contributor

  • automate this via circle ci
  • ensure there are no delete operations used anywhere in this automation (use rename if required)
@petmongrels petmongrels converted this from a draft issue May 14, 2024
@mahalakshme
Copy link
Contributor

@petmongrels if we do this we also need to change the url in the db accordingly

@himeshr @1t5j0y you can find the best way to do the same.

@petmongrels
Copy link
Contributor Author

@mahalakshme it seems this has been take care on the code of etl. when signing the urls the code, transforms the URL from prod to pre-release. it is currently working for goonj after copying the folder.

@himeshr
Copy link
Contributor

himeshr commented May 24, 2024

We should no longer attempt to do this ("Copying of S3 media folder for a particular organisation from prod to pre-release"), because, there is a functioning work-around for this already, which is to configure AWS AccessKeys used in prod and prerelease environments to have access to each-other's Media buckets in S3.

In future, we can think of storing relative url paths in observations and entities and use S3 config specific to env / org to generate the absolute path, which would be a capability that could be configured at first time setup of an environment.

@himeshr himeshr closed this as completed May 24, 2024
@github-project-automation github-project-automation bot moved this from New Issues to Done in Avni Product May 24, 2024
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

No branches or pull requests

3 participants