-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
S3 VFS: Default to current region from metadata service
We need a region to start from to make AWS calls. us-east-1 works for most credentials, but not for cn-north-1 credentials. Instead, we get the current region from metadata when running on EC2; and we continue to fall-back to us-east-1. For CLI commands (kops) the user will still have to set AWS_REGION, but for system binaries (nodeup, etcd-manager), this should default appropriately. Note that the region doesn't have to be the actual region of the bucket, just a region we can access. Issue #6098
- Loading branch information
1 parent
4d7d7be
commit d29276e
Showing
2 changed files
with
69 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters