Skip to content
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

service/s3: Add support for accelerate with dual stack #887

Merged
merged 1 commit into from
Oct 13, 2016

Commits on Oct 12, 2016

  1. service/s3: Add support for accelerate with dualstack

    Adds support for using S3 accelerate with Dualstack IPv4 with IPv6. To
    enable Dualstack with accelerate set the `Config.UseDualstack` and
    `Config.S3UseAccelerate`.
    
    ```go
    sess := session.New()
    svc := s3.New(sess, &aws.Config{
    	S3UseAccelerate: aws.Bool(true),
    	UseDualStack:    aws.Bool(true),
    })
    
    result, err := svc.GetObject(&s3.GetObjectInput{
    	Bucket: aws.String("my_bucket"),
    	Key:    aws.String("my_key"),
    })
    
    // Request made to:
    // https://my_bucket.s3-accelerate.dualstack.amazonaws.com/my_key
    ```
    jasdel committed Oct 12, 2016
    Configuration menu
    Copy the full SHA
    4441aeb View commit details
    Browse the repository at this point in the history