# DB-Less Kong setup on Amazon Linux

**URL:** <https://discuss.konghq.com/t/db-less-kong-setup-on-amazon-linux/9479>\
**Category:** General\
**Tags:** kong-gateway\
**Created:** [December 10, 2021, 4:20am UTC](https://discuss.konghq.com/t/db-less-kong-setup-on-amazon-linux/9479 "2021-12-10T04:20:16Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![USAKong](https://avatars.discourse-cdn.com/v4/letter/u/d2c977/32.png) [@USAKong](https://discuss.konghq.com/u/USAKong)\
**Post date:** [December 10, 2021, 4:20am UTC](https://discuss.konghq.com/t/db-less-kong-setup-on-amazon-linux/9479/1 "2021-12-10T04:20:16Z")

</div>

I have installed Latest 2.6.x Kong Gateway OSS and db-less mode instructions as per documentation

> **[Services and Routes - Kong Gateway | Kong Docs](https://docs.konghq.com/gateway/2.6.x/get-started/comprehensive/expose-services/)**
>
> Documentation for Kong, the Cloud Connectivity Company for APIs and Microservices.

use the Using decK (YAML) instructions … all good so far but when I run :

deck sync … I am getting this :

deck sync

updating service example\_service {  
“connect\_timeout”: 60000,  
“host”: “[mockbin.org](http://mockbin.org)”,  
“id”: “5f2be09e-de92-5059-859b-a01b35cf0d4a”,  
“name”: “example\_service”,  
“port”: 80,  
“protocol”: “http”,  
“read\_timeout”: 60000,

- “retries”: 5,  
“write\_timeout”: 60000  
}

Summary:  
Created: 0  
Updated: 0  
Deleted: 0  
Error: 1 errors occurred:  
while processing event: {Update} service example\_service failed: HTTP status 405 (message: “cannot create or update ‘services’ entities when not using a database”)

Any thoughts - what am I missing for db-less ? why we do even have deck sync if we cannot create or update ‘services’ entities when not using a database" ?

---

<div class="post-metadata">

**Author:** ![fomm](https://avatars.discourse-cdn.com/v4/letter/f/ea666f/32.png) [@fomm](https://discuss.konghq.com/u/fomm)\
**Post date:** [December 10, 2021, 4:37am UTC](https://discuss.konghq.com/t/db-less-kong-setup-on-amazon-linux/9479/2 "2021-12-10T04:37:04Z")

</div>

You can’t use deck with Kong deployed in dbless mode.

deck uses Admin API to create Kong entities. Admin API is read only in dbless mode.

---

<div class="post-metadata">

**Author:** ![USAKong](https://avatars.discourse-cdn.com/v4/letter/u/d2c977/32.png) [@USAKong](https://discuss.konghq.com/u/USAKong)\
**Post date:** [December 10, 2021, 4:40am UTC](https://discuss.konghq.com/t/db-less-kong-setup-on-amazon-linux/9479/3 "2021-12-10T04:40:56Z")

</div>

Thanks for the quick response. What other options we have for OSS with db-less mode ?

---

<div class="post-metadata">

**Author:** ![fomm](https://avatars.discourse-cdn.com/v4/letter/f/ea666f/32.png) [@fomm](https://discuss.konghq.com/u/fomm)\
**Post date:** [December 10, 2021, 10:09am UTC](https://discuss.konghq.com/t/db-less-kong-setup-on-amazon-linux/9479/4 "2021-12-10T10:09:42Z")

</div>

Not too sure if you are using docker or not. As you mentioned OS name, I assume you are installing the RPM package, is that right?

If that’s the case you can specify your declarative config file with this setting.

> **[Configuration Reference for Kong Gateway - v2.6.x | Kong Docs](https://docs.konghq.com/gateway/2.6.x/reference/configuration/#declarative_config)**
>
> Documentation for Kong, the Cloud Connectivity Company for APIs and Microservices.

---

<div class="post-metadata">

**Author:** ![USAKong](https://avatars.discourse-cdn.com/v4/letter/u/d2c977/32.png) [@USAKong](https://discuss.konghq.com/u/USAKong)\
**Post date:** [December 10, 2021, 2:37pm UTC](https://discuss.konghq.com/t/db-less-kong-setup-on-amazon-linux/9479/5 "2021-12-10T14:37:45Z")

</div>

That’s correct.

So every time I update the kong.yml, Do I have to restart the kong ?

---

<div class="post-metadata">

**Author:** ![fomm](https://avatars.discourse-cdn.com/v4/letter/f/ea666f/32.png) [@fomm](https://discuss.konghq.com/u/fomm)\
**Post date:** [December 11, 2021, 10:17am UTC](https://discuss.konghq.com/t/db-less-kong-setup-on-amazon-linux/9479/6 "2021-12-11T10:17:32Z")

</div>

You have two methods of loading the file

1. Use `KONG_DECLARATIVE_CONFIG`. When you make a change on the config file, kong reload or restart is needed.
2. Use `/config` endpoint

Please check below doc for details

> **[DB-less and Declarative Configuration - v2.6.x | Kong Docs](https://docs.konghq.com/gateway/2.6.x/reference/db-less-and-declarative-config/#load-the-file)**
>
> Documentation for Kong, the Cloud Connectivity Company for APIs and Microservices.
