# Sensuctl not configuring in opsworks

**URL:** <https://discourse.sensu.io/t/sensuctl-not-configuring-in-opsworks/1726>\
**Category:** Sensu Go\
**Created:** [April 21, 2020, 5:34am UTC](https://discourse.sensu.io/t/sensuctl-not-configuring-in-opsworks/1726 "2020-04-21T05:34:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ganeshkatakam](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.sensu.io/ganeshkatakam/32/276_2.png) [@ganeshkatakam](https://discourse.sensu.io/u/ganeshkatakam)\
**Post date:** [April 21, 2020, 5:34am UTC](https://discourse.sensu.io/t/sensuctl-not-configuring-in-opsworks/1726/1 "2020-04-21T05:34:32Z")

</div>

I have been trying to configure sensuctl in chef using  
bash ‘config sensuctl’ do  
code \<\<-EOH  
sensuctl configure -n --username ‘sensuadmin’ --password ‘password’ --namespace default --url ‘[http://127.0.0.1:9090](http://127.0.0.1:9090)’  
sensuctl config view  
EOH  
action :run  
end

This script is running successfully, but when I login into the instance and trying to view the config it is showing  
Error: No API URL is defined. You can configure an API URL by running “sensuctl configure”

Can someone help me with this.

---

<div class="post-metadata">

**Author:** ![todd](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.sensu.io/todd/32/936_2.png) [@todd](https://discourse.sensu.io/u/todd)\
**Post date:** [April 21, 2020, 2:25pm UTC](https://discourse.sensu.io/t/sensuctl-not-configuring-in-opsworks/1726/2 "2020-04-21T14:25:08Z")

</div>

The sensuctl configuration is on a per user basis. For example under Linux and macOS it stores its configuration in $HOME/.config/sensu/sensuctl. So in order to use the chef created configuration you would need to login as (or become via sudo) that user.

---

<div class="post-metadata">

**Author:** ![ganeshkatakam](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.sensu.io/ganeshkatakam/32/276_2.png) [@ganeshkatakam](https://discourse.sensu.io/u/ganeshkatakam)\
**Post date:** [April 22, 2020, 2:44am UTC](https://discourse.sensu.io/t/sensuctl-not-configuring-in-opsworks/1726/3 "2020-04-22T02:44:23Z")

</div>

I think I got my answer.

Thanks 🙂
