---
title: How to connect to AWS Commercial & GovCloud from one Hyperglance deployment
description: Add both Commercial and GovCloud accounts to your Hyperglance deployment
---

[Skip to content](https://support.hyperglance.com/knowledge/connecting-to-commercial-govcloud-from-the-same-hyperglance-deployment#main-content)

English

Show submenu for translations

[More support](https://support.hyperglance.com/knowledge/kb-tickets/new?hsLang=en)

![](https://support.hyperglance.com/hs-fs/hubfs/hyperglance.png?width=100&height=75&name=hyperglance.png)

Open main navigation

Close main navigation

- English
  
  Show submenu for translations
- [More support](https://support.hyperglance.com/knowledge/kb-tickets/new)
- [Contact Us](https://www.hyperglance.com/contact/)

[Contact Us](https://www.hyperglance.com/contact/)

 How can we help you?

- There are no suggestions because the search field is empty.

1. [Hyperglance Support](https://support.hyperglance.com/knowledge?hsLang=en)
2. [Setup & Configuration](https://support.hyperglance.com/knowledge/setup-configuration?hsLang=en)
3. [AWS](https://support.hyperglance.com/knowledge/setup-configuration?hsLang=en#aws)

# How to connect to AWS Commercial & GovCloud from one Hyperglance deployment

## Add both Commercial and GovCloud accounts to your Hyperglance deployment

### IAM AssumeRole cannot be used between Commercial & GovCloud

Hyperglance can collect from both Commercial and GovCloud at the same time but it is not possible to AssumeRole system between Commercial and GovCloud. Instead you need to use Access and Secret keys to authenticate. By default Hyperglance from the AWS Marketplace does not have Access/Secret key authentication enabled, so you need to first enable this capability.

Use the steps below to enable Hyperglance to expose both IAM Role ARN as well as Access/Secret authentication.

Access/Secret keys can be obtained by creating an IAM User with our [IAM policy applied](https://support.hyperglance.com/knowledge/aws-iam-policy-requirements-for-govcloud?hsLang=en).

1\) If running Hyperglance in an Instance/VM SSH/Connect in or if running in K8s go to the relevant folder where the Hyperglance config files are located.

2\) Open for editing: */var/lib/data/hyperglance/config.env*

3\) Add the following line to config.env and save the file 

```
AWS_ENABLE_ACCESS_KEYS=true
```

4\) Re-initialise docker compose (you will not lose any other config but the service will restart)

```
sudo docker-compose -f /etc/docker-compose.yml up -d
```

Wait a few minutes for Hyperglance start up, navigate to menu/settings and select Add Account'. You should now see the Access/Secret inputs:

![](https://support.hyperglance.com/hubfs/image-png-Dec-05-2022-06-44-55-1878-PM.png)

If it is not working as expected then [checking the logs](https://support.hyperglance.com/knowledge/how-to-download-diagnostic-bundle-or-logs?hsLang=en) may indicate any configuration errors or connectivity issues.

![](https://support.hyperglance.com/hubfs/Knowledge%20Base%20Import/support.hyperglance.comsupportsolutionsarticles11000042484-running-hyperglance-behind-a-proxyhit.gif)

- [Before You Start](https://support.hyperglance.com/knowledge/before-you-start?hsLang=en#main-content)

    - [Kubernetes](https://support.hyperglance.com/knowledge/before-you-start?hsLang=en#kubernetes)
    - [GCP](https://support.hyperglance.com/knowledge/before-you-start?hsLang=en#gcp)
    - [AWS](https://support.hyperglance.com/knowledge/before-you-start?hsLang=en#aws)
    - [Azure](https://support.hyperglance.com/knowledge/before-you-start?hsLang=en#azure)
- [Using Hyperglance](https://support.hyperglance.com/knowledge/using-hyperglance?hsLang=en#main-content)

    - [Automations](https://support.hyperglance.com/knowledge/using-hyperglance?hsLang=en#automations)
    - [Inventory & Diagrams](https://support.hyperglance.com/knowledge/using-hyperglance?hsLang=en#inventory-diagrams)
    - [Rules](https://support.hyperglance.com/knowledge/using-hyperglance?hsLang=en#rules)
    - [Cost Management](https://support.hyperglance.com/knowledge/using-hyperglance?hsLang=en#cost-management)
    - [Dashboards](https://support.hyperglance.com/knowledge/using-hyperglance?hsLang=en#dashboards)
    - [Security & Compliance](https://support.hyperglance.com/knowledge/using-hyperglance?hsLang=en#security-compliance)
- [Setup & Configuration](https://support.hyperglance.com/knowledge/setup-configuration?hsLang=en#main-content)

    - [Updating & Migrating](https://support.hyperglance.com/knowledge/setup-configuration?hsLang=en#updating-migrating)
    - [General](https://support.hyperglance.com/knowledge/setup-configuration?hsLang=en#general)
    - [RBAC & Users](https://support.hyperglance.com/knowledge/setup-configuration?hsLang=en#rbac-users)
    - [STIGS & FIPS](https://support.hyperglance.com/knowledge/setup-configuration?hsLang=en#stigs-fips)
    - [AWS](https://support.hyperglance.com/knowledge/setup-configuration?hsLang=en#aws)
    - [Azure](https://support.hyperglance.com/knowledge/setup-configuration?hsLang=en#azure)
    - [Kubernetes](https://support.hyperglance.com/knowledge/setup-configuration?hsLang=en#kubernetes)
    - [GCP](https://support.hyperglance.com/knowledge/setup-configuration?hsLang=en#gcp)
    - [API](https://support.hyperglance.com/knowledge/setup-configuration?hsLang=en#api)
    - [Legacy Docker-based deployments](https://support.hyperglance.com/knowledge/setup-configuration?hsLang=en#legacy-docker-based-deployments)
    - [AI](https://support.hyperglance.com/knowledge/setup-configuration?hsLang=en#ai)

[![Chill listening crop-3](https://support.hyperglance.com/hs-fs/hubfs/hyperglance.png?width=134&height=24&name=hyperglance.png "Chill listening crop-3")](https://www.hyperglance.com/)

2880 Zanker Road, Suite 203, San Jose, CA 95134

<https://www.linkedin.com/company/hyperglance/>

Copyright © 2025 Hyperglance. All rights reserved.