From 8e2b5b8447b7a043f49c7838be63a9ea53b0e027 Mon Sep 17 00:00:00 2001 From: Grant Slater Date: Tue, 24 Oct 2023 07:03:05 +0100 Subject: [PATCH 1/1] planet: also sync to s3 changeset state config file --- .../planet/files/default/replication-bin/replicate-changesets | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cookbooks/planet/files/default/replication-bin/replicate-changesets b/cookbooks/planet/files/default/replication-bin/replicate-changesets index 92b5408d7..f6622e95f 100755 --- a/cookbooks/planet/files/default/replication-bin/replicate-changesets +++ b/cookbooks/planet/files/default/replication-bin/replicate-changesets @@ -259,9 +259,11 @@ class Replicator if @config["s3_dir"] s3_file = s3_stem + ".osm.gz" + s3_state_config_file = @config["s3_dir"] + "/state.yaml" s3_state_file = s3_stem + ".state.txt" system("/opt/awscli/v2/current/bin/aws", "--profile=osm-pds-upload", "s3", "cp", "--storage-class=INTELLIGENT_TIERING", "--no-progress", data_file, s3_file) + system("/opt/awscli/v2/current/bin/aws", "--profile=osm-pds-upload", "s3", "cp", "--storage-class=INTELLIGENT_TIERING", "--no-progress", @config["state_file"], s3_state_config_file) system("/opt/awscli/v2/current/bin/aws", "--profile=osm-pds-upload", "s3", "cp", "--storage-class=INTELLIGENT_TIERING", "--no-progress", data_state_file, s3_state_file) end end -- 2.39.5