wellcomecollection / platform

Wellcome Collection Digital Platform
https://developers.wellcomecollection.org/
MIT License
48 stars 10 forks source link

Move temporary migration AWS services to storage account #3245

Closed tomcrane closed 5 years ago

tomcrane commented 5 years ago

There is a mixture of different objects in bagger buckets created by different accounts. We should start again with migration related-data written and read by just one account, as it makes it difficult to report on progress.

~platform/temp-bagit-drop-test~ => storage/bagger-drop ~platform/temp-bagit-drop-test-mets-only~ => storage/bagger-drop-mets-only ~platform/temp-bagit-drop-test-errors~ => storage/bagger-errors

done in: https://github.com/wellcometrust/platform/pull/3236 https://github.com/wellcometrust/storage-service/pull/8

There's a storage account called dds that is used for ad hoc Python migration testing, batch enqueuing of bagging instructions, collecting data about current state of migration per bnumber and writing it to a DynamoDB table. The DDS application also uses this account.

Applications that use the storage account

bagger

The bagger ECS task, and the storage/dds user:

Even after this change the bagger works across 2 wellcomecollection estates, the dlcs estate and the systemstrategy estate, but there's no way round that for now.

Local enqueue is used to manually start bagging batches:

Error reporter runs as storage/dds so gets the permissions above, it uses a subset of what's required above.

Migration tools runs as storage/dds so gets the permissions above, but also means:

DDS (.NET)

Plan

This shouldn't take very long, it's just testing that permissions are all working in the right places.

Then... Let rip, and revert to plan in https://github.com/wellcometrust/platform/issues/2789

kenoir commented 5 years ago

The bagger seems to be working as expected in the new account.

jtweed commented 5 years ago

@tomcrane I'm going to close this, as we might need to revisit exactly where access copies are vs archive copies. Will keep you updated. I'm hoping we can work out a way to do it without having to change DLCS.