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

2217 delete old ADI source data #2506

Merged
merged 20 commits into from
Feb 11, 2022
Merged

2217 delete old ADI source data #2506

merged 20 commits into from
Feb 11, 2022

Conversation

iamleeg
Copy link
Contributor

@iamleeg iamleeg commented Feb 10, 2022

Draft because I still need to integrate this into the LocalStack e2e test runner (and into ops too), but asking for feedback on the script and the approach. Also, how will this get run? Is there somewhere I can run this on a schedule that already has access to a service account for our AWS?

@abhidg
Copy link
Contributor

abhidg commented Feb 10, 2022

GitHub Actions has a service account for AWS setup (that's how we deploy to ECR), so if this script takes <6h it can be that, otherwise a Batch job

@iamleeg
Copy link
Contributor Author

iamleeg commented Feb 10, 2022

GitHub Actions has a service account for AWS setup (that's how we deploy to ECR), so if this script takes <6h it can be that, otherwise a Batch job

Nice, makes sense to be a daily GitHub action I think.

def s3_object_key_helper(source_id, date, file_name):
return f"{source_id}/{date.year}/{date.month}/{date.day}/{file_time}/{file_name}"


Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should all methods only run in the dockerized environment?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As this is called by the test and the test only runs in the docker environment, I think that's already true? Nothing is going to run this function otherwise.

@jim-sheldon
Copy link
Collaborator

GitHub Actions has a service account for AWS setup (that's how we deploy to ECR), so if this script takes <6h it can be that, otherwise a Batch job

Nice, makes sense to be a daily GitHub action I think.

I would prefer we keep it in AWS, and thus terraformed, as it would keep infrastructure consolidated and might be part of partner requirements.

@iamleeg iamleeg merged commit 24051e5 into main Feb 11, 2022
@iamleeg iamleeg deleted the 2217_delete_old_adi_source_data branch February 11, 2022 13:53
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.

3 participants