# Request to add static website hosting column in aws\_s3\_buckets

**URL:** <https://community.cloudquery.io/t/request-to-add-static-website-hosting-column-in-aws-s3-buckets/105>\
**Category:** Feature Requests\
**Created:** [February 27, 2023, 8:18pm UTC](https://community.cloudquery.io/t/request-to-add-static-website-hosting-column-in-aws-s3-buckets/105 "2023-02-27T20:18:40Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![devoted-oryx](https://avatars.discourse-cdn.com/v4/letter/d/c67d28/32.png) [@devoted-oryx](https://community.cloudquery.io/u/devoted-oryx)\
**Post date:** [February 27, 2023, 8:18pm UTC](https://community.cloudquery.io/t/request-to-add-static-website-hosting-column-in-aws-s3-buckets/105/1 "2023-02-27T20:18:40Z")

</div>

Hi there, would it be possible to add a column in `aws_s3_buckets` containing Static website hosting: true/false?

---

<div class="post-metadata">

**Author:** ![ben](https://sea1.discourse-cdn.com/flex001/user_avatar/community.cloudquery.io/ben/32/88_2.png) [@ben](https://community.cloudquery.io/u/ben)\
**Post date:** [February 27, 2023, 8:20pm UTC](https://community.cloudquery.io/t/request-to-add-static-website-hosting-column-in-aws-s3-buckets/105/2 "2023-02-27T20:20:02Z")

</div>

Do you know if there is a field in the UI/CLI that indicates if static website hosting is enabled?

---

<div class="post-metadata">

**Author:** ![devoted-oryx](https://avatars.discourse-cdn.com/v4/letter/d/c67d28/32.png) [@devoted-oryx](https://community.cloudquery.io/u/devoted-oryx)\
**Post date:** [February 27, 2023, 8:20pm UTC](https://community.cloudquery.io/t/request-to-add-static-website-hosting-column-in-aws-s3-buckets/105/3 "2023-02-27T20:20:37Z")

</div>

[https://docs.aws.amazon.com/cli/latest/reference/s3/website.html](https://docs.aws.amazon.com/cli/latest/reference/s3/website.html)

In the UI, there’s a field in the ‘Properties’ section at the bottom of the screen.

---

<div class="post-metadata">

**Author:** ![ben](https://sea1.discourse-cdn.com/flex001/user_avatar/community.cloudquery.io/ben/32/88_2.png) [@ben](https://community.cloudquery.io/u/ben)\
**Post date:** [February 27, 2023, 8:42pm UTC](https://community.cloudquery.io/t/request-to-add-static-website-hosting-column-in-aws-s3-buckets/105/4 "2023-02-27T20:42:09Z")

</div>

While I don’t think we can do a boolean value to indicate whether the static website hosting is enabled, as that seems to be an inference that the UI is making based on the response from the API, we can definitely add a new table to store all of the configurations.

---

<div class="post-metadata">

**Author:** ![devoted-oryx](https://avatars.discourse-cdn.com/v4/letter/d/c67d28/32.png) [@devoted-oryx](https://community.cloudquery.io/u/devoted-oryx)\
**Post date:** [February 27, 2023, 8:46pm UTC](https://community.cloudquery.io/t/request-to-add-static-website-hosting-column-in-aws-s3-buckets/105/5 "2023-02-27T20:46:40Z")

</div>

I got it, it’s never easy with their CLI.

---

<div class="post-metadata">

**Author:** ![ben](https://sea1.discourse-cdn.com/flex001/user_avatar/community.cloudquery.io/ben/32/88_2.png) [@ben](https://community.cloudquery.io/u/ben)\
**Post date:** [February 27, 2023, 8:48pm UTC](https://community.cloudquery.io/t/request-to-add-static-website-hosting-column-in-aws-s3-buckets/105/6 "2023-02-27T20:48:48Z")

</div>

When we add the new table you should be able to run this query to get all of the buckets that have static websites enabled:

```auto
SELECT AWS_S3_BUCKETS.*
FROM AWS_S3_BUCKETS
JOIN AWS_S3_BUCKET_WEBSITES ON AWS_S3_BUCKET_WEBSITES.bucket_arn = AWS_S3_BUCKETS.arn;

```

Just an FYI, I opened a PR for this work: [https://github.com/cloudquery/cloudquery/pull/8497](https://github.com/cloudquery/cloudquery/pull/8497)

---

<div class="post-metadata">

**Author:** ![devoted-oryx](https://avatars.discourse-cdn.com/v4/letter/d/c67d28/32.png) [@devoted-oryx](https://community.cloudquery.io/u/devoted-oryx)\
**Post date:** [February 27, 2023, 8:55pm UTC](https://community.cloudquery.io/t/request-to-add-static-website-hosting-column-in-aws-s3-buckets/105/7 "2023-02-27T20:55:09Z")

</div>

btw, can you also have a look into [https://github.com/cloudquery/cloudquery/issues/8443](https://github.com/cloudquery/cloudquery/issues/8443)?

---

<div class="post-metadata">

**Author:** ![ben](https://sea1.discourse-cdn.com/flex001/user_avatar/community.cloudquery.io/ben/32/88_2.png) [@ben](https://community.cloudquery.io/u/ben)\
**Post date:** [February 27, 2023, 8:57pm UTC](https://community.cloudquery.io/t/request-to-add-static-website-hosting-column-in-aws-s3-buckets/105/8 "2023-02-27T20:57:56Z")

</div>

Discussions for that one are ongoing for a number of reasons:

1. Has the potential to be a HUGE performance hit for users.
2. This will incur a cost to users as `ListObjects` (and `ListObjectsV2`) are not free…
