From: Grant Slater Date: Tue, 24 Oct 2023 06:03:05 +0000 (+0100) Subject: planet: also sync to s3 changeset state config file X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/8e2b5b8447b7a043f49c7838be63a9ea53b0e027?hp=d1b6d1bdf5a3799ce51159bee1e3bf92c4bed3e6 planet: also sync to s3 changeset state config file --- 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