func copyObject(c *s3.S3) { bucket := "aa-go-sdk" source := "aa-go-sdk/aws/config.go" key := "test" out, _ := c.CopyObject( &s3.CopyObjectInput{ Bucket: &bucket, Key: &key, CopySource: &source, }, ) fmt.Println(out) }