-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Ability to specify endpoint-url in profile #1270
Comments
@StFS I could see having a per-service configuration for endpoint-url, but I am having trouble imagining a global endpoint-url across all AWS services. |
Thanks for your reply. Basically, we use AWS for some things but we also have our own EC2/S3 compatable private cloud setup (we're using https://qstack.com/). Maybe I'm misunderstanding something with this. I know that the endpoints seem to differ between whether you're "talking" S3 or EC2. Basically I think I want to be able to point one of my profiles to a different "set" of endpoints. The aws cli tool works fine for our AWS account, but when I want to use it for our private cloud setup I always have to specify both --profile (to get the credentials right) and --endpoint-url (so that aws contacts our private cloud endpoint instead of the AWS ones). |
@kyleknap Am I totally out there with this? |
@StFS Marking as feature request. |
Ok thanks for the response again. I'm a bit confused about these endpoints. It seems that for AWS the endpoint may change depending on what region you're using and also what service you're using. For us, we would only need to specify ec2_endpoint and s3_endpoint, is that what you mean by "per service"? Are there other services than EC2 and S3? I think I've seen something involving user management as well but I'm not quite sure. |
We have a similar use case (S3 alternative in Canada), and we would love to be able to configure the endpoint-url in the config file. Even if that means having a separate profile per service (currently it is only used for object storage), it would allow us to use the same commands in all of our environments. |
I think this would also be useful for configuring a "local" profile for accessing DynamoDB Local. Currently you have to write something like
|
Same case here, @kennu. I have to set endpoint-url everytime I need to run some command on dynamodb-local. I would love to set |
How to set dyanmodb local endpoint-url ? I am using ubuntu OS. |
+1 for feature-request. I am currently using aws cli to access minio.io server and specifying --endpoint-url every time is a pain. |
I need this also, connecting to local dnyamodb and I don't want to specify the endpoint for each cmd, simple entry into the config will work for me so I can concentrate on the command. thanks. |
+1 for this feature of allowing endpoint-url in the configuration file. |
if accepting
|
Similar use case, pointing to a Eucalyptus cloud. Would be nice to have a per-service config for endpoint-url. |
How about also for the convenience of not having to type the --endpoint on the cmdline? |
+1 |
We have a third-party library that (as a minor aspect of its remote data access facilities) itself parses ~/.aws/credentials in order to construct the HTTP headers to access data in S3 buckets. Similarly to this issue, our users want to access their own S3-compatible data stores (cf samtools/htslib#436) and it would be useful if there were a standard well-known configuration file setting name for this purpose. |
👍 |
We also have this use case, except our S3-like-service has a different authorisation scheme (a simple |
Check out this awscli plugin to set endpoint on profile: https://github.com/wbingli/awscli-plugin-endpoint Once you install(
Now you can run command with this endpoint for this service with only profile name:
See more details on project homepage(https://github.com/wbingli/awscli-plugin-endpoint). Let me know your feedback, :) |
Allow the user to specify an endpoint other than s3.amazonaws.com. This can be set using ~/.s3cfg's host_base setting (only; we ignore host_bucket); when there's a blessed setting key for .aws/credentials, we'll support it there too (perhaps endpoint_url; cf aws/aws-cli#1270). Fixes (part of) #436.
Just to be clear, this is not only a benefit for people who are running AWS-compatible competitive products. It would also benefit those of us who are trying to use Amazon tools for local/offline development. http://stackoverflow.com/a/32260680/117471 is an example with DynamoDB. Using different profiles allows us to run our code with different configs for different environments. Not allowing |
that is why i haven't migrate to aws-cli v2 yet |
I have a slightly different use-case similar to @flickerfly's. Curious to hear if folks think I should file a separate issue. This comes up when:
There appears to be no way for me to specify the specific STS endpoint to use in the config file. Here's some sample code:
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "",
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::22222222:role/my-ecs-task"
},
"Action": "sts:AssumeRole",
"Condition": {
"StringEquals": {
"aws:SourceVpce": "vpce-01234deadbeef"
}
}
}
]
} Code running in the VPC containing the required STS VPC endpoint $ aws --region us-west-2 s3 ls The above errors out because the role can't be assumed. |
Filed a new issue with a more targeted ask: #6754 |
Thank you for posting your feedback here, and our apologies that we’ve been thinking this over for a long time without much forward motion. There are similar requests to implement this feature in a few of the AWS SDKs and the AWS CLI, so in order to coordinate those teams - and hopefully make the discussions a little easier to follow - we’ve created a new issue in aws/aws-sdk here: aws/aws-sdk#229 |
Hi all, We recently added a pull request (aws/aws-sdk#230) that contains a proposal based on community comments and suggestions and our own discussions. This document proposes to extend the options for configuring the endpoint to allow users to provide an endpoint URL independently for each AWS service via an environment variable or a profile subsection in the shared configuration file. You can read the proposal here. For more information on how to give feedback, please see this comment on the Thanks! |
I'm happy to announce that the ability to configure the endpoint URL via the shared configuration file and environment variables is now available in the AWS CLI v1 and v2! You can now specify the endpoint to use for all service requests through the shared configuration file and environment variables, as well as specify the endpoint URL for individual AWS services. To start using this feature, install the AWS CLI To read more about this feature, see the documentation page "Service-specific Endpoints" in the AWS SDKs and Tools Reference Guide: https://docs.aws.amazon.com/sdkref/latest/guide/feature-ss-endpoints.html Look forward to a blog post demonstrating the use of this feature with the AWS CLI on the AWS Developer Tools Blog! |
|
I'm excited to announce that we have published an AWS Developer Blog post about this feature. Let us know in the feedback links on the post what you think! |
Currently I don't seem to be able to specify an endpoint URL in my profile. I always have to specify the --endpoint-url option on the command line.
I would like to be able to do something like the following (in my ~/.aws/config file):
The text was updated successfully, but these errors were encountered: