# Changing snapshot repo from standard to standard-ia

**URL:** <https://discuss.elastic.co/t/changing-snapshot-repo-from-standard-to-standard-ia/303479>\
**Category:** Elasticsearch\
**Tags:** snapshot-and-restore\
**Created:** [April 28, 2022, 8:16am UTC](https://discuss.elastic.co/t/changing-snapshot-repo-from-standard-to-standard-ia/303479 "2022-04-28T08:16:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![curiousmind](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/curiousmind/32/69452_2.png) [@curiousmind](https://discuss.elastic.co/u/curiousmind)\
**Post date:** [April 28, 2022, 8:16am UTC](https://discuss.elastic.co/t/changing-snapshot-repo-from-standard-to-standard-ia/303479/1 "2022-04-28T08:16:43Z")

</div>

Hi all,  
I created a bucket in AWS s3 bucket, named "backup-s3-bucket"  
Then I created a snapshot repo like below:

```auto
PUT _snapshot/aws_repo
		{
		  "type": "s3",
		  "settings": {
			"bucket": "backup-s3-bucket",
			"endpoint": "s3.us-east-1.amazonaws.com"
		  }
		}

```

The above request has created the repo, with the storage class "standard"  
Now after a few days of snapshotting, I came to the realisation that the type `standard-ia` is cheaper.  
So now I need to change the repo type to `standard-ia`  
Can I just use the below request to change it

```auto
PUT _snapshot/aws_repo
		{
		  "type": "s3",
		  "settings": {
			"bucket": "backup-s3-bucket",
			"endpoint": "s3.us-east-1.amazonaws.com",
                        "storage_class":"standard_ia"
		  }
		}

```

My question is , will this cause any issues, if i change the same repo's type (from standard to standard-ia) now?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 2, 2022, 9:32am UTC](https://discuss.elastic.co/t/changing-snapshot-repo-from-standard-to-standard-ia/303479/2 "2022-05-02T09:32:24Z")

</div>

If you are able to change first the storage class in S3, then you can change that setting in Elasticsearch.  
You will probably need first to remove the repository:

```auto
DELETE _snapshot/aws_repo

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 30, 2022, 9:32am UTC](https://discuss.elastic.co/t/changing-snapshot-repo-from-standard-to-standard-ia/303479/3 "2022-05-30T09:32:33Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
