Missing region
in barmanObjectStore.s3Credentials
#454
Labels
chart( cluster )
Related to the cluster chart
region
in barmanObjectStore.s3Credentials
#454
I suspect from the current code, that
region
seems to be used just to infer the S3 endpoint ifendpointURL
is not provided, as seen:https://github.com/cloudnative-pg/charts/blob/main/charts/cluster/templates/_barman_object_store.tpl#L18-L31
However,
region
is important for the AWS CLI functioning as it should setAWS_DEFAULT_REGION
as well. Seems that upstream it is supported viabarmanObjectStore.s3Credentials.region
:https://github.com/cloudnative-pg/cloudnative-pg/blob/main/docs/src/release_notes/old/v1.16.md?plain=1#L222-L223
If this is not possible, then some alternative S3 providers will not work. For instance, I am trying to setup OVH object stores for the backups, and if I run the command below using the same credentials I'm feeding barman:
AWS_ENDPOINT_URL_S3=https://s3.de.io.cloud.ovh.net aws s3 ls my-db-backups
it will not work. However, if I add
--region
orAWS_DEFAULT_REGION
it works:AWS_ENDPOINT_URL_S3=https://s3.de.io.cloud.ovh.net aws --region de s3 ls my-db-backups
The text was updated successfully, but these errors were encountered: