Skip to content

Commit

Permalink
Merge pull request #130 from asfadmin/v11-script
Browse files Browse the repository at this point in the history
add scripts for v11.0.0 "after deployment" steps
  • Loading branch information
michaeljb authored Apr 14, 2022
2 parents f6026d5 + 8547c0c commit 672b2da
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# CHANGELOG

## v11.1.0.1

* Add `scripts/cumulus-v11.0.0/` for the "After the `cumulus` deployment"
section of the [Cumulus v11.0.0 release
notes](https://github.com/nasa/cumulus/releases/tag/v11.0.0); see the release
notes for full details and usage

## v11.1.0.0

* Upgrade to Cumulus [v11.1.0](https://github.com/nasa/Cumulus/releases/tag/v11.1.0)
Expand Down
8 changes: 8 additions & 0 deletions scripts/cumulus-v11.0.0/migrate_full.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash

# run this script (or migrate_only_files.sh) after deploying Cumulus v11, per
# the Cumulus v11.0.0 release notes: https://github.com/nasa/cumulus/releases/tag/v11.0.0

PAYLOAD=$(echo '{"migrationsList": ["granules"], "granuleMigrationParams": {"migrateAndOverwrite": "true"}}' | base64)
aws lambda invoke --function-name "${PREFIX}-postgres-migration-async-operation" \
--payload "${PAYLOAD}" "${DEPLOY_NAME}-cumulus-${MATURITY}-pg-migration-full.log"
8 changes: 8 additions & 0 deletions scripts/cumulus-v11.0.0/migrate_only_files.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash

# run this script (or migrate_full.sh) after deploying Cumulus v11, per
# the Cumulus v11.0.0 release notes: https://github.com/nasa/cumulus/releases/tag/v11.0.0

PAYLOAD=$(echo '{"migrationsList": ["granules"], "granuleMigrationParams": {"migrateOnlyFiles": "true"}}' | base64)
aws lambda invoke --function-name "${PREFIX}-postgres-migration-async-operation" \
--payload "${PAYLOAD}" "${DEPLOY_NAME}-cumulus-${MATURITY}-pg-migration-files.log"

0 comments on commit 672b2da

Please sign in to comment.