# הפוך את s3\_region לערך מחרוזת

**URL:** <https://meta.discourse.org/t/make-s3-region-a-string-value/239324>\
**Category:** Self-hosting\
**Created:** [18 בספטמבר,‏ 2022,‏ 11:35am UTC](https://meta.discourse.org/t/make-s3-region-a-string-value/239324 "2022-09-18T11:35:45Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![zowyle](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zowyle/32/274340_2.png) [@zowyle](https://meta.discourse.org/u/zowyle)\
**Post date:** [18 בספטמבר,‏ 2022,‏ 11:35am UTC](https://meta.discourse.org/t/make-s3-region-a-string-value/239324/1 "2022-09-18T11:35:45Z")

</div>

What could be the reasons for making this variable a limited list. For what?

```plaintext
irb(main):007:0> SiteSetting.s3_region='fr-par'
Traceback (most recent call last):
        5: from (irb):7
        4: from lib/site_setting_extension.rb:548:in `block in setup_methods'
        3: from lib/site_setting_extension.rb:368:in `add_override!'
        2: from lib/site_settings/type_supervisor.rb:149:in `to_db_value'
        1: from lib/site_settings/type_supervisor.rb:207:in `validate_value'
Discourse::InvalidParameters (Invalid value `fr-par` for `s3_region`)

```

Scaleway has its own regions.

---

_[View the full topic](https://meta.discourse.org/t/make-s3-region-a-string-value/239324)._
