# How to Register Snapshot Repository in ECK using StackConfigPolicy with ConfigMap?

**URL:** <https://discuss.elastic.co/t/how-to-register-snapshot-repository-in-eck-using-stackconfigpolicy-with-configmap/361534>\
**Category:** Elastic Cloud on Kubernetes (ECK)\
**Created:** [June 15, 2024, 12:41pm UTC](https://discuss.elastic.co/t/how-to-register-snapshot-repository-in-eck-using-stackconfigpolicy-with-configmap/361534 "2024-06-15T12:41:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![takahisa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/takahisa/32/135314_2.png) [@takahisa](https://discuss.elastic.co/u/takahisa)\
**Post date:** [June 15, 2024, 12:41pm UTC](https://discuss.elastic.co/t/how-to-register-snapshot-repository-in-eck-using-stackconfigpolicy-with-configmap/361534/1 "2024-06-15T12:41:21Z")

</div>

Hi,

I would like to register a Snapshot Repository using S3 compatible storage with the StackConfigPolicy resource. In my environment, I use an Object Bucket with Rook/Ceph as the S3 compatible storage. When deploying the Object Bucket, information such as BUCKET\_HOST, BUCKET\_NAME, and BUCKET\_PORT becomes available through a ConfigMap.

I want to pass this information to the snapshotRepositories field of the StackConfigPolicy. However, since StackConfigPolicy is a Custom Resource (CR), it is not possible to mount a ConfigMap directly. Is there a workaround for this issue in the current version of ECK?

Thank you.
