From bf02210cdcf06898eb592f75cb8c1427a39fbe35 Mon Sep 17 00:00:00 2001 From: "Lindsley, Chris" Date: Mon, 28 Mar 2022 16:45:31 -0400 Subject: [PATCH] update migration script to use payload, upgrade TEA to 1.0.2 --- cumulus/thin-egress.tf | 2 +- scripts/cumulus-v10.1.1/data_migration1.sh | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/cumulus/thin-egress.tf b/cumulus/thin-egress.tf index 4f7c03c..7be8659 100644 --- a/cumulus/thin-egress.tf +++ b/cumulus/thin-egress.tf @@ -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 diff --git a/scripts/cumulus-v10.1.1/data_migration1.sh b/scripts/cumulus-v10.1.1/data_migration1.sh index 457b0a1..1372a15 100644 --- a/scripts/cumulus-v10.1.1/data_migration1.sh +++ b/scripts/cumulus-v10.1.1/data_migration1.sh @@ -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