Setting Up ChatGPT on AWS GovCloud with Amazon Bedrock
ChatGPT is now on AWS GovCloud. Learn how to configure it with Amazon Bedrock for secure, regional deployment.
- Topic
- AI
- Reading time
- 5 min
- Length
- 1,059 words
- Published
- Nov 2, 2026
03:54 pm IST
In this article
The ChatGPT desktop app has landed on Amazon Bedrock within AWS GovCloud (US), marking a significant opportunity for organizations demanding secure access to OpenAI's models while sticking to strict data residency and security rules. With AWS GovCloud's regional controls and IAM, you can manage access to the Codex model—perfect for developer workflows.
What Amazon Bedrock Brings to AWS GovCloud
Now that the ChatGPT desktop app is part of Amazon Bedrock in AWS GovCloud, I think it's great news for organizations focused on AI model inference while ensuring data stays in specific regions. This is especially useful for those needing compliance and data governance. The app includes both the Work and Codex components, helping with complex task management and AI-assisted software development. The Work component handles bigger tasks that require planning and research. Codex, on the other hand, tackles technical tasks like code editing and pull request reviews.
Secure Deployments Matter
If you've got your own security architecture, directing model requests through Amazon Bedrock Mantle in the us-gov-west-1 region can be really beneficial. Access management through AWS IAM and network controls keeps data secure, which is something I've found crucial for organizations following data privacy and compliance standards. And processing stays within your chosen AWS Region, satisfying data residency needs.
Getting the ChatGPT Desktop App Set Up
To deploy the ChatGPT desktop app securely and effectively, here’s what you need to do:
Step 1: Authentication Setup
First off, select an AWS GovCloud (US) account and IAM identity with access to the necessary models in us-gov-west-1. Protect those credentials and configuration files from unauthorized changes. You can authenticate using an Amazon Bedrock API key or the AWS SDK credential chain. For desktop environments, put bearer tokens in files like ~/.codex/.env on Linux and macOS or %USERPROFILE%\.codex\.env on Windows. If there’s a bearer token, the app will use it; if not, it defaults to the AWS SDK credential chain, which accesses the ~/.aws/credentials file and SSO profiles if set up.
Choosing your authentication method affects how credentials are managed. The AWS SDK credential chain pairs seamlessly with AWS SSO, convenient for those already using AWS IAM Identity Center. It automatically gets and refreshes temporary role credentials, which saves a lot of manual hassle and reduces security risks tied to static credentials.
Step 2: Configuring the App
Before you launch the app, you'll need to create config.toml and requirements.toml files. The requirements.toml file, controlled by an admin, sets firm security limits, like permission levels and tools the app can use. Meanwhile, config.toml dictates how the app runs, specifying the model provider (amazon-bedrock), the model choice, and any permissions or context limits. Use the correct model ID and named profile, such as codex-il5, to match your organization's approvals.
Getting these configuration files right is crucial to align with your organization's security policies and operational needs. The requirements.toml can enforce network rules that prevent unauthorized access to external endpoints, enhancing security by routing data solely through approved channels.
Step 3: Launching and Verification
Once you've downloaded and set up the app, ensure requirements.toml and config.toml are correctly configured and in the right directories. The app should recognize amazon-bedrock as the model provider. Use the Codex CLI's /status tab to confirm the setup. Make sure the app is closed after installation before you apply these settings; otherwise, they might not activate properly.
During verification, double-check that the app displays the correct model provider, and that all security and operational settings work as intended. If configurations aren't loading, inspect file paths and permissions for issues that need fixing before proceeding.
Limitations and Considerations
While this setup enhances security and data residency compliance, it won't automatically clear your workload for use. You still need to review all models, AWS services, and security controls against your security plan. The zero data retention (ZDR) feature is great for privacy but doesn’t store prompts and responses. This might restrict historical analysis and auditability, which could be an issue if you need detailed logs.
Although this setup secures AI model inference, it might complicate configuration management and maintenance. So, be prepared to allocate resources for regular audits and updates to the configuration files and authentication methods to keep your security and compliance in check.
Testing in a Real-world Scenario
From my work with AI tools in editorial workflows, this configuration fits environments where data security and control are vital, such as government agencies or sectors handling sensitive data. I'd recommend testing the deployment in a controlled setting first. This involves running the setup on a few machines to make sure all authentication and configuration settings are correct and that the app can access the Amazon Bedrock endpoint securely.
For developers using AI coding tools, this setup aligns well with the need for secure AI-driven software development. It offers advanced AI capabilities without compromising security. Testing should include running different coding tasks through the Codex component to ensure it meets operational needs without breaking any security parameters.
Troubleshooting and Rollback
You might run into issues like misconfigured AWS identity or unsupported endpoints. Make sure requirements.toml and config.toml are in the correct locations and named accurately. If validation checks fail, stop the rollout, revert devices to previous configurations, and revoke temporary credentials. Document issues before reattempting for future reference. If you get a prompt for an OpenAI account, double-check that the configuration files are in the specified spots and named correctly. If an endpoint is unsupported, verify the desktop or app-server release version, endpoint, and model with OpenAI before making adjustments.
Having rollback procedures in place is key to ensuring smooth operation. Halting the rollout right after a failed validation check prevents bigger disruptions. Reverting to previous configurations keeps the service running while you sort out issues. Pair this with a thorough review of the failure to identify and fix root causes, ensuring smoother future deployments.
The integration of ChatGPT with Amazon Bedrock in AWS GovCloud (US) brings powerful AI capabilities into a more secure and compliant environment. This aligns technical innovation with strict security protocols. For developers and organizations looking to maintain control over AI workflows, this setup offers a robust framework to build on.
If you're interested in learning more about boosting AI agent efficiency, take a look at How Prompt Caching Enhances AI Agents on Amazon Bedrock or explore strategies in AI Coding Tools Need Smaller Tasks, Not Less Code Review.
Sources
Configure the ChatGPT desktop app with Amazon Bedrock in AWS GovCloud (US)
Every claim above was checked against this source before publishing. The analysis, the code and the opinions are mine.
Frequently asked
Is the ChatGPT desktop app available in all AWS Regions?
No, the ChatGPT desktop app configured with Amazon Bedrock is available in AWS GovCloud (US), specifically in the us-gov-west-1 region.
What are the prerequisites for setting up ChatGPT on AWS GovCloud?
You need an approved AWS GovCloud (US) account, IAM credentials, and access to the approved model and endpoint, among other requirements.
How does the zero data retention feature work?
Zero data retention ensures that prompts and responses are processed without being stored, enhancing privacy and compliance with data governance standards.
More on ByteMuni
ByteMuni is a developer publication: tutorials and source-checked tech news, published daily.
- Interview PreparationAI Interview Questions for 2026 Beyond Model DefinitionsAI interview preparation needs more than definitions; this guide connects model choices, evaluation, RAG and deployment to practical answers and a project walkthrough.
- Machine LearningWhat's New in Apertus 1.5: Enhancements for DevelopersApertus 1.5 introduces multimodal understanding, improved reasoning capabilities, and a longer context window.
- AI & Machine LearningHow AI and Global Networks Empower Real Estate CareersExamine AI's impact on real estate, facilitated by REA's global network for career growth.