From 320f57c3c95f31ab45dc0ca658454f37b3dfa366 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 10 Oct 2023 17:06:58 +0100 Subject: [PATCH] Add AWS credentials for osmdbt uploads --- cookbooks/planet/templates/default/aws-config.erb | 9 +++++++++ cookbooks/planet/templates/default/aws-credentials.erb | 8 ++++++++ 2 files changed, 17 insertions(+) diff --git a/cookbooks/planet/templates/default/aws-config.erb b/cookbooks/planet/templates/default/aws-config.erb index 5f0a8c01d..f68ce0f1a 100644 --- a/cookbooks/planet/templates/default/aws-config.erb +++ b/cookbooks/planet/templates/default/aws-config.erb @@ -6,3 +6,12 @@ region = eu-central-1 s3 = max_bandwidth = 100MB/s max_concurrent_requests = 256 + +[profile osm-osmdbt-state] +region = eu-west-1 + +[profile osm-osmdbt-state-upload] +region = eu-west-1 +s3 = + max_bandwidth = 100MB/s + max_concurrent_requests = 256 diff --git a/cookbooks/planet/templates/default/aws-credentials.erb b/cookbooks/planet/templates/default/aws-credentials.erb index 40ec32c22..2475b9a91 100644 --- a/cookbooks/planet/templates/default/aws-credentials.erb +++ b/cookbooks/planet/templates/default/aws-credentials.erb @@ -5,3 +5,11 @@ aws_secret_access_key = <%= @credentials["osm-pds"] %> [osm-pds-upload] role_arn=arn:aws:iam::630658470130:role/osm-pds-upload-role source_profile=osm-pds + +[osm-osmdbt-state] +aws_access_key_id = AKIASQUXHPE7BNEKJFRQ +aws_secret_access_key = <%= @credentials["osm-osmdbt-state"] %> + +[osm-osmdbt-state-upload] +role_arn=arn:aws:iam::173189593406:role/osm-osmdbt-state-upload-role +source_profile=osm-osmdbt-state -- 2.39.5