Skip to content

Commit

Permalink
update migration script to use payload, upgrade TEA to 1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
lindsleycj committed Mar 28, 2022
1 parent 35b0bd1 commit bf02210
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cumulus/thin-egress.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module "thin_egress_app" {
source = "s3::https://s3.amazonaws.com/asf.public.code/thin-egress-app/tea-terraform-build.121.zip"
source = "s3::https://s3.amazonaws.com/asf.public.code/thin-egress-app/tea-terraform-build.1.0.2.zip"

auth_base_url = var.urs_url
bucket_map_file = local.bucket_map_key == null ? aws_s3_bucket_object.bucket_map_yaml.id : local.bucket_map_key
Expand Down
8 changes: 5 additions & 3 deletions scripts/cumulus-v10.1.1/data_migration1.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/usr/bin/env bash

# run this lambda after deploying the data_migration1 and data-persistence
# modules, and before deploying the cumulus module
# run this lambda after deploying the data-persistence module and before deploying the cumulus module

aws lambda invoke --function-name $DEPLOY_NAME-cumulus-$MATURITY-data-migration1 $DEPLOY_NAME-cumulus-$MATURITY-dm1.log
PAYLOAD=$(echo '{"forceRulesMigration": true}')

aws lambda invoke --function-name $DEPLOY_NAME-cumulus-$MATURITY-data-migration1 \
--payload "$PAYLOAD" $DEPLOY_NAME-cumulus-$MATURITY-dm1.log

0 comments on commit bf02210

Please sign in to comment.