-
Notifications
You must be signed in to change notification settings - Fork 25k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove either endpoint or region setting in aws cloud plugins #22758
Comments
I understand the goal of your proposal as it would remove some lines of code. region: eu-west-1 Instead of endpoint: s3-eu-west-1.amazonaws.com That said it's not really something you are doing all the time so I guess that we can just link from our documentation to S3 Regions. Same for So I don't have a strong opinion about it about removing |
Discussed on fix it friday: let's remove the |
The region and endpoint settings overlap, and have complicated logic for which to use. Futhermore, region is not necessary, as for most cases it is automatically figured out by the s3 client, given the bucket name, and for custom cases like a new region, the endpoint is necessary anyways. This commit adds a deprecation warning when specifying region. relates elastic#22758
The region and endpoint settings overlap, and have complicated logic for which to use. Futhermore, region is not necessary, as for most cases it is automatically figured out by the s3 client, given the bucket name, and for custom cases like a new region, the endpoint is necessary anyways. This commit adds a deprecation warning when specifying region. relates #22758
This change removes the ability to set region for s3 repositories. Endpoint should be used instead if a custom s3 location needs to be used. closes elastic#22758
This change removes the ability to set region for s3 repositories. Endpoint should be used instead if a custom s3 location needs to be used. closes #22758
This still needs to be done for the discovery ec2 plugin. |
We have both endpoint and region settings. Region was removed from s3 to simplify configuration. This is the ec2 equivalent. closes elastic#22758
We have both endpoint and region settings. Region was removed from s3 to simplify configuration. This is the ec2 equivalent. closes #22758
We have two different settings,
endpoint
andregion
, which determine the endpoint that is set on the aws client (and both of these appear unnecessary by default, as neither are required, and the s3 client appears to automatically find the region for a given bucket). My understanding is that it is useful to have an explicit setting to allow connecting to new regions without needing a new release. However, I don't think we need both settings? We should settle on one (I would think endpoint, and remove region altogether?).The text was updated successfully, but these errors were encountered: