# Repository-s3 plugin does not support IMDSv2 for EC2

**URL:** <https://discuss.elastic.co/t/repository-s3-plugin-does-not-support-imdsv2-for-ec2/358570>\
**Category:** Elasticsearch\
**Tags:** snapshot-and-restore\
**Created:** [May 1, 2024, 3:16pm UTC](https://discuss.elastic.co/t/repository-s3-plugin-does-not-support-imdsv2-for-ec2/358570 "2024-05-01T15:16:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![parinitha.nagaraja](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/parinitha.nagaraja/32/134054_2.png) [@parinitha.nagaraja](https://discuss.elastic.co/u/parinitha.nagaraja)\
**Post date:** [May 1, 2024, 3:16pm UTC](https://discuss.elastic.co/t/repository-s3-plugin-does-not-support-imdsv2-for-ec2/358570/1 "2024-05-01T15:16:07Z")

</div>

We are using repository-s3 plugin to create/restore snapshots in AWS S3. But the plugin does not support IMDSv2 metadata version.  
There is already an open issue to fix this. See below.

> <https://github.com/elastic/elasticsearch/issues/105135>
>
> Today we support \[IMDSv2\](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/co…nfiguring-instance-metadata-service.html) in the \`discovery-ec2\` plugin (see https://github.com/elastic/elasticsearch/pull/84410) but \`repository-s3\` still only supports IMDSv1. Should we add IMDSv2 support to \`repository-s3\`?

Is there any update or timeline on this ?
