Changing snapshot repo from standard to standard-ia

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

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

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?

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:

DELETE _snapshot/aws_repo

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