# Configuring swift with aws\_access\_key\_id

**URL:** <https://forum.rclone.org/t/configuring-swift-with-aws-access-key-id/5583>\
**Category:** Help and Support\
**Created:** [May 7, 2018, 11:08am UTC](https://forum.rclone.org/t/configuring-swift-with-aws-access-key-id/5583 "2018-05-07T11:08:05Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![rsignell](https://forum.rclone.org/user_avatar/forum.rclone.org/rsignell/32/1479_2.png) [@rsignell](https://forum.rclone.org/u/rsignell)\
**Post date:** [May 7, 2018, 11:08am UTC](https://forum.rclone.org/t/configuring-swift-with-aws-access-key-id/5583/1 "2018-05-07T11:08:05Z")

</div>

I’m trying to set up RCLONE with a Swift OpenStack endpoint on NSF’s Jetstream cloud.

The method I’ve been using to authenticate for writing is to use amazon-like credentials with a bucket\_endpoint:

```
bucket_endpoint=https://iu.jetstream-cloud.org:8080

ubuntu@rsignell-api-u-1:~$ more ~/.aws/config

[default]
region=RegionOne
aws_access_key_id=22e2ce9b704548a29ee06aef1xxxxxxx
aws_secret_access_key=4ea8f872c4cb49caa7066dxxxxxxx

```

In case it’s useful, these credentials were created with:

`openstack ec2 credentials create`

Does anyone know where these credentials would go in either the `S3` or `Swift` sections of `rclone.conf`?

---

<div class="post-metadata">

**Author:** ![ncw](https://forum.rclone.org/user_avatar/forum.rclone.org/ncw/32/18_2.png) [@ncw](https://forum.rclone.org/u/ncw)\
**Post date:** [May 7, 2018, 3:32pm UTC](https://forum.rclone.org/t/configuring-swift-with-aws-access-key-id/5583/2 "2018-05-07T15:32:35Z")

</div>

> [@rsignell](#):
>
> Does anyone know where these credentials would go in either the S3 or Swift sections of rclone.conf?

Those looks very much like s3 credentials I'd say, so I suggest you try making an S3 remote. There is a place to put an `endpoint`. Note that a swift endpoint would likely end with `/v2` or `/v3`.

There is S3 middleware for openstack swift or the provider may be using CEPH which has an S3 endpoint.

Note that if you set `env_auth` to true in the config then rclone should read your `.aws/config` file.

---

<div class="post-metadata">

**Author:** ![ncw](https://forum.rclone.org/user_avatar/forum.rclone.org/ncw/32/18_2.png) [@ncw](https://forum.rclone.org/u/ncw)\
**Post date:** [May 7, 2018, 3:33pm UTC](https://forum.rclone.org/t/configuring-swift-with-aws-access-key-id/5583/3 "2018-05-07T15:33:53Z")

</div>

> [@ncw](#):
>
> There is S3 middleware for openstack swift or the provider may be using CEPH which has an S3 endpoint.

A bit of searching reveals that they are using CEPH.

---

<div class="post-metadata">

**Author:** ![rsignell](https://forum.rclone.org/user_avatar/forum.rclone.org/rsignell/32/1479_2.png) [@rsignell](https://forum.rclone.org/u/rsignell)\
**Post date:** [May 7, 2018, 9:13pm UTC](https://forum.rclone.org/t/configuring-swift-with-aws-access-key-id/5583/4 "2018-05-07T21:13:57Z")

</div>

@ncw, thanks for the suggestion to try s3 AWS for my OpenStack Swift endpoint!

The command

`rclone sync s3:rsignell/nwm/test_week5c swift:rsignell/nwm/test_week5c`

is now working with this `rclone.conf`:

```
$ more ~/.config/rclone/rclone.conf
[s3]
type = s3
provider = AWS
env_auth = true
access_key_id = AKIAJWVSISGxxxxxxxxxxxx
secret_access_key = qY/Q3XkVMBegKf4uxxxxxxxxxxxxxxxxxxxxxxxxxxx
region = us-west-2
location_constraint = us-west-2
acl = public-read
storage_class =

[swift]
type = s3
provider = AWS
env_auth = true
access_key_id = 22e2ce9b70454xxxxxxxxxxxxxxxxxx
secret_access_key = 4ea8f872c4cxxxxxxxxxxxxxxxxxx
region =
location_constraint =
acl = public-read
endpoint = https://iu.jetstream-cloud.org:8080
storage_class =

```

but it’s way slower than the copy I did of the same dataset between s3 and gce.

The size of the dataset I’m transferring from S3 to Swift is:

```
(IOOS3) ubuntu@rsignell-api-u-1:~/data$ rclone size s3:rsignell/nwm/test_week5c
Total objects: 1307
Total size: 94.490 GBytes 

```

And it’s copying at a rate of 3 objects/5 minutes, which means it will take 36 hours to transfer 95GB. !!

Does that mean something is likely wrong with the transfer or I just need different settings?

---

<div class="post-metadata">

**Author:** ![ncw](https://forum.rclone.org/user_avatar/forum.rclone.org/ncw/32/18_2.png) [@ncw](https://forum.rclone.org/u/ncw)\
**Post date:** [May 8, 2018, 7:59am UTC](https://forum.rclone.org/t/configuring-swift-with-aws-access-key-id/5583/5 "2018-05-08T07:59:19Z")

</div>

> [@rsignell](#):
>
> Does that mean something is likely wrong with the transfer or I just need different settings?

I suppose transfer rates might depend on netwoking speed, though I calculate 95GB is about 0.75 MByte/s which is quite slow...

Things to try: Use `--checksum` this will avoid the read of the modtime on S3 which will save a transaction - that should speed things up. `--fast-list` should also speed things up. And you can increase transfers - say `--transfers 16`.

---

<div class="post-metadata">

**Author:** ![rsignell](https://forum.rclone.org/user_avatar/forum.rclone.org/rsignell/32/1479_2.png) [@rsignell](https://forum.rclone.org/u/rsignell)\
**Post date:** [May 8, 2018, 11:21am UTC](https://forum.rclone.org/t/configuring-swift-with-aws-access-key-id/5583/6 "2018-05-08T11:21:24Z")

</div>

Wow! I tried the 95GB/1300object `AWS S3` to `SWIFT S3` transfer again with the settings

```
 rclone sync s3:rsignell/nwm/test_week5c swift:rsignell/nwm/test_week5d --checksum --fast-list --transfers 16

```

and it finished in just one hour!

Thank you! I hope your wife enjoys the flowers! 😀

---

<div class="post-metadata">

**Author:** ![ncw](https://forum.rclone.org/user_avatar/forum.rclone.org/ncw/32/18_2.png) [@ncw](https://forum.rclone.org/u/ncw)\
**Post date:** [May 8, 2018, 12:00pm UTC](https://forum.rclone.org/t/configuring-swift-with-aws-access-key-id/5583/7 "2018-05-08T12:00:24Z")

</div>

> [@rsignell](#):
>
> and it finished in just one hour!

😃

> [@rsignell](#):
>
> Thank you! I hope your wife enjoys the flowers! 😀

Thank you very much!

---

<div class="post-metadata">

**Author:** ![system](https://forum.rclone.org/uploads/default/original/2X/3/39ad3235f6ffec76ccd0c81616bd55697b4c300d.png) [@system](https://forum.rclone.org/u/system)\
**Post date:** [March 4, 2020, 12:45am UTC](https://forum.rclone.org/t/configuring-swift-with-aws-access-key-id/5583/8 "2020-03-04T00:45:02Z")

</div>

Closed on March 4, 2020, 12:45am UTC


