AD SPACE AVAILABLE · BRAND PARTNERS WELCOME

Does Amazon Q Developer Store or Train AI Models on Your Proprietary Code and AWS Infrastructure Data? Enterprise Privacy, VPC Endpoints, and Service Improvement Opt-Outs Explained

Kyle Muscato · 365Finds Editorial
Indexed 88,650 Wiki articles

Put 365 Wiki to work with your AI

Copy the prompt below, paste it into the AI you already use, then ask your question.

Download full Skill

Try it with the prompt first. If you use 365 Wiki often, install the full 365Wiki Skill so you do not have to paste it again. No regular AI? Gemini or Microsoft Copilot on the web will work.

365Wiki Skill

If your engineering team is evaluating Amazon Q Developer across enterprise repositories, command-line terminals, and the AWS Management Console, your Chief Information Security Officer (CISO) and DevSecOps leads are right to pause before granting widespread access. When developers feed proprietary application logic, internal API schemas, and production AWS infrastructure templates into an AI assistant, the fear is immediate and visceral: Is Amazon Web Services (AWS) silently absorbing our intellectual property to train next-generation foundational models?

The direct answer from 365Finds depends entirely on how your organization licenses and provisions the tool.

Under Amazon Q Developer Pro (the paid enterprise tier provisioned through AWS IAM Identity Center), AWS explicitly commits under its Service Terms and Data Protection agreements that customer content—including your source code, active IDE context, terminal prompts, and AWS infrastructure queries—is not used to train or improve underlying foundation models.

However, under the Amazon Q Developer Free Tier (authenticated via personal AWS Builder IDs), AWS's default policy allows the service to retain prompts, generated code, and diagnostic context for operational troubleshooting and foundation model training, unless an explicit opt-out is configured.

At 365Finds, our institutional stance is unambiguous: relying on developers to maintain privacy through client-side toggles while running unmanaged Free tier accounts is an unacceptable corporate risk. An enterprise-grade deployment requires a three-pillar security architecture: mandating the Pro tier through IAM Identity Center, enforcing a non-overridable AI services opt-out policy at the AWS Organizations root, and tunneling developer IDE traffic through private VPC interface endpoints powered by AWS PrivateLink.


1. The Legal and Architectural Boundary: Does AWS Retain and Train on Your Code?

To understand how Amazon Q Developer treats corporate data, enterprise security architects must dissect the lifecycle of a developer query across the IDE, CLI, and AWS Management Console.

+-----------------------------------------------------------------------------------------+
|                               Developer Workstation / IDE                               |
|   +------------------------------------+   +----------------------------------------+   |
|   | Source Code & Active File Context  |   | Chat Prompts & Terminal CLI Commands   |   |
|   +-----------------+------------------+   +--------------------+-------------------+   |
+---------------------|-------------------------------------------|-----------------------+
                      |                                           |
                      |  TLS 1.2+ / TLS 1.3 (Public or VPCe)      |
                      v                                           v
+-----------------------------------------------------------------------------------------+
|                                AWS Cloud Boundary (Amazon Q)                            |
|                                                                                         |
|   +---------------------------------------------------------------------------------+   |
|   | Amazon Q Developer Service Tier Verification (IAM Identity Center / Builder ID) |   |
|   +----------------------------------------+----------------------------------------+   |
|                                            |                                            |
|                  +-------------------------+-------------------------+                  |
|                  v                                                   v                  |
|     [ Amazon Q Developer Pro ]                          [ Amazon Q Developer Free ]     |
|     * Zero model training on content                    * Content stored by default     |
|     * Ephemeral processing for inference                * Used for bug fixes & training |
|     * Optional Customer Managed KMS (CMK)               * Requires manual opt-out       |
|     * Single-tenant logical boundary                    * Personal Builder ID bound     |
+-----------------------------------------------------------------------------------------+

Free Tier vs. Pro Tier Contractual Terms

AWS handles customer input and generated output under two distinct legal frameworks within the AWS Service Terms:

Feature DimensionAmazon Q Developer Free TierAmazon Q Developer Pro (Enterprise)
Authentication IdentityPersonal AWS Builder IDAWS IAM Identity Center (Workforce)
Model Training on Customer ContentEnabled by default; content may be used for model training and service refinementStrictly prohibited; customer content is never used to train foundation models
Data Retention WindowRetained in AWS service stores for debugging and evaluation unless opted outProcessed ephemerally for inference; stored chat history isolated to customer profile
Encryption at RestAWS-owned KMS keysAWS-owned keys, with optional Customer Managed Keys (CMK) for console/agents
Organizational GovernanceIndividual developer control in IDECentralized IAM policies, SCPs, and Organizations-level controls
PrivateLink VPC EndpointsNot supported for personal Builder IDFully supported for IDE extension routing

Under Amazon Q Developer Pro, your proprietary code snippets, open file buffers sent to provide contextual relevance, chat queries, and AWS CLI commands remain strictly isolated. AWS processes these payloads in memory through its inference pipelines (backed by Amazon Bedrock foundation infrastructure), generates recommendations, and delivers them back without indexing them into public foundation model weights.

Context Windows and In-Memory Processing

When an engineer asks Amazon Q Developer to refactor a function or debug an AWS CloudFormation template, the IDE extension collects a local context bundle. This bundle includes lines surrounding the cursor, open tabs in the IDE workspace, project file structures, and repository imports.

In Amazon Q Developer Pro, this context bundle is packaged into an encrypted payload, evaluated during the inference window, and discarded from active memory once the response stream terminates. Persistent state is limited to explicit conversational history retained within your administrator-configured workspace profile, ensuring that no inter-tenant data leakage occurs between AWS corporate customers.

Data Residency and Regional Processing Realities

While AWS commits to data isolation, enterprise compliance officers must recognize the physical realities of AWS inference infrastructure:


2. Cryptographic Controls and Data-at-Rest Protection

Enterprise security teams frequently ask whether AWS operators or compromised cloud storage can expose internal code artifacts. Amazon Q Developer implements a multi-tier cryptographic defense.

Encryption in Transit

All network transmissions between developer workstations, terminal shells, local IDEs, and AWS backend services require TLS 1.2 or TLS 1.3 connections. Plaintext HTTP access is blocked, preventing intermediary eavesdropping across corporate LANs or public internet transit.

Encryption at Rest (AWS-Owned vs. Customer-Managed Keys)

By default, Amazon Q Developer stores necessary service state (such as chat transcripts, console diagnostic history, and custom workspace indexes) across Amazon DynamoDB and Amazon Simple Storage Service (Amazon S3), encrypted under AWS-owned AWS Key Management Service (AWS KMS) keys.

For enterprise customers requiring deterministic cryptographic ownership, Amazon Q Developer Pro permits administrators to configure Customer Managed Keys (CMKs). When a symmetric CMK is linked through the Amazon Q Developer console, AWS provisions KMS grants that authorize Amazon Q to encrypt the following components:

  1. Interactive chat sessions conducted inside the AWS Management Console.
  2. Console error diagnosis logs and remediation telemetry.
  3. Customization data sources (private corporate codebases indexed for organizational auto-completion).
  4. Autonomous software development agents executing tasks in developer IDEs.

[!IMPORTANT] If a security incident occurs or a compromised workforce profile is identified, revoking the KMS grant on your customer-managed key immediately crypto-shreds active access to retained chat logs and diagnostic sessions, rendering that data unreadable to AWS backend processes.


3. Mandatory Centralized Governance: AWS Organizations AI Opt-Out Policies

Leaving AI data privacy to individual developer compliance is a recipe for security failures. Even if your company purchases Amazon Q Developer Pro, engineers frequently experiment with free accounts or log in from secondary devices.

AWS Organizations provides a declarative policy mechanism called AI Services Opt-Out Policies. By deploying this policy at the organization's Root account, security administrators globally forbid AWS from using customer data to train models, regardless of what an individual developer toggles in their editor.

The Legacy Identifier: codewhisperer

A critical technical nuance that catches many cloud architects off guard: Amazon Q Developer absorbed and replaced AWS's legacy code generator, Amazon CodeWhisperer. Within AWS Organizations declarative policy definitions, Amazon Q Developer's coding and contextual pipelines remain mapped under the legacy service identifier codewhisperer.

Production JSON Opt-Out Policy

To enforce an unbreakable opt-out across all member accounts, AWS regions, and organizational units (OUs), create the following AI services opt-out policy and attach it directly to the Root of your AWS Organization:

{
  "services": {
    "@@operators_allowed_for_child_policies": [
      "@@none"
    ],
    "default": {
      "opt_out_policy": {
        "@@assign": "optOut"
      }
    },
    "codewhisperer": {
      "opt_out_policy": {
        "@@assign": "optOut"
      }
    }
  }
}

Why This Policy Is Hardened:

Once attached, AWS automatically purges historical telemetry previously queued for model training across linked member accounts for covered services.


4. Network Perimeter Isolation: Routing Traffic Through VPC Interface Endpoints (AWS PrivateLink)

For high-security banking, healthcare, and defense software, allowing developer IDEs to make outbound calls over the public internet to public AWS API endpoints violates basic data perimeter architecture.

Amazon Q Developer supports Interface VPC Endpoints powered by AWS PrivateLink. This architecture routes code completion, chat, and CLI generation requests over private Elastic Network Interfaces (ENIs) located inside your Virtual Private Cloud (VPC), keeping all proprietary source traffic within the AWS private global network backbone.

+-----------------------------------------------------------------------------------------+
|                                Corporate Network / On-Premises                          |
|   +------------------------------------+                                                |
|   | Developer Laptop (VS Code / CLI)   |                                                |
|   +-----------------+------------------+                                                |
+---------------------|-------------------------------------------------------------------+
                      | AWS Direct Connect / AWS Client VPN
                      v
+-----------------------------------------------------------------------------------------+
|                               Customer Virtual Private Cloud (VPC)                      |
|                                                                                         |
|   +-------------------------------------+   +---------------------------------------+   |
|   | Subnet 1 (Private)                  |   | Subnet 2 (Private)                    |   |
|   | ENI: 10.0.1.25                      |   | ENI: 10.0.2.88                        |   |
|   | Endpoint: com.amazonaws.<region>.q  |   | Endpoint: com.amazonaws.us-east-1...  |   |
|   +------------------+------------------+   +-------------------+-------------------+   |
|                      |                                          |                       |
|                      +--------------------+---------------------+                       |
|                                           |                                             |
|                                           | AWS PrivateLink Fabric                      |
+-------------------------------------------|---------------------------------------------+
                                            v
+-----------------------------------------------------------------------------------------+
|                             AWS Managed Service Network                                 |
|                                                                                         |
|                 +---------------------------------------------------+                   |
|                 | Amazon Q Developer Backend & CodeWhisperer Engines|                   |
|                 +---------------------------------------------------+                   |
+-----------------------------------------------------------------------------------------+

Required VPC Interface Endpoints

To enable complete IDE extension functionality over private channels, your network engineering team must provision two interface VPC endpoints:

  1. Amazon Q Management Endpoint:

    com.amazonaws.<region>.q
    

    (Replace <region> with the AWS region where your Amazon Q Developer profile is registered, such as us-east-1 or eu-west-1.)

  2. Amazon Q Developer Code Generation Endpoint:

    com.amazonaws.us-east-1.codewhisperer
    

    (Note: The underlying code compilation and inference engine runs in US East (N. Virginia), so this PrivateLink endpoint must target us-east-1.)

DNS Resolution and On-Premises Workstations

To route developer IDE traffic seamlessly without rewriting plugin configurations:

Attaching VPC Endpoint Policies

A private endpoint is only half the battle. To prevent data exfiltration—such as a rogue developer routing proprietary corporate code to a personal AWS account—attach a restrictive VPC Endpoint Policy to your interface endpoints:

{
  "Statement": [
    {
      "Sid": "AllowOnlyCorporateIdentityCenterAccess",
      "Principal": "*",
      "Action": [
        "q:*",
        "codewhisperer:*"
      ],
      "Effect": "Allow",
      "Resource": "*",
      "Condition": {
        "StringEquals": {
          "aws:PrincipalOrgID": "o-exampleorg123"
        }
      }
    }
  ]
}

This condition ensures that requests traveling through your private network interfaces are rejected unless the initiating identity belongs strictly to your enterprise organization (o-exampleorg123).

[!NOTE] Interface VPC endpoints support Amazon Q Developer features inside IDEs (VS Code, JetBrains, Eclipse, Visual Studio) and CLI environments. However, browser-based chat inside the AWS Management Console and the web transformation dashboard currently communicate via public AWS console service planes and cannot be pinned to PrivateLink interface endpoints.


5. Client-Side IDE and CLI Telemetry Stripping

Beyond foundational model training, enterprise compliance frameworks distinguish between Customer Content (actual proprietary code, comments, and schemas) and Client-Side Telemetry (operational metrics like suggestion acceptance rates, latency, and plugin version numbers).

AWS collects client-side telemetry to monitor plugin stability, governed by schema definitions published in AWS's open-source repositories (aws-toolkit-common). While telemetry does not include raw source code, highly regulated security postures often mandate shutting off all external telemetry streams.

Visual Studio Code Hardening

In VS Code, settings can be locked down globally via enterprise MDM profiles (settings.json):

{
  "amazonQ.telemetry": false,
  "amazonQ.shareContent": false
}

JetBrains IDEs (IntelliJ IDEA, PyCharm, WebStorm)

  1. Navigate to Settings / Preferences > Tools > AWS > Amazon Q.
  2. Under Data Sharing, ensure Share Amazon Q content with AWS is deselected.
  3. Navigate to Tools > AWS and uncheck Send usage metrics to AWS.

Command-Line Interface (Amazon Q CLI & QCT)

For engineers using terminal integration or the transformation tool (qct):

  1. In the Amazon Q CLI configuration menu, toggle Telemetry to disabled.
  2. For the code transformation tool, execute:
    qct configure
    
    When prompted Allow telemetry collection?, submit N.

6. The 365Finds Governance Verdict: Practical Implementation Strategy

At 365Finds, we do not advise enterprise security teams to ban generative AI coding assistants. Blanket prohibitions invariably drive developers toward unsanctioned shadow AI tools like unmanaged consumer web chats, dramatically compounding intellectual property risks.

Amazon Q Developer provides one of the strongest enterprise privacy models in the cloud market—provided you eliminate the Free Tier.

+-----------------------------------------------------------------------------------------+
|                          365Finds Recommended Deployment Matrix                          |
+-------------------------+-------------------------------+-------------------------------+
| Governance Layer        | Unmanaged / Shadow Setup      | 365Finds Hardened Enterprise   |
+-------------------------+-------------------------------+-------------------------------+
| Licensing               | Free Tier (Builder ID)        | Pro Tier (IAM Identity Center)|
| Model Training          | Active by default             | Prohibited by Service Terms   |
| Central Policy          | None (Relies on dev honesty)  | Root AI Opt-Out Policy (JSON) |
| Network Egress          | Public Internet (0.0.0.0/0)   | AWS PrivateLink VPC Endpoints |
| Data at Rest Key        | AWS-Owned Keys                | Customer Managed KMS (CMK)    |
| Endpoint Filtering      | None                          | aws:PrincipalOrgID Lockdown   |
+-------------------------+-------------------------------+-------------------------------+

The CISO Implementation Checklist

To roll out Amazon Q Developer with total合规confidence, execute the following sequence:

  1. Deploy Amazon Q Developer Pro exclusively: Deactivate all personal Builder ID sign-ins. Federate user authentication through AWS IAM Identity Center linked to your corporate Identity Provider (Okta, Microsoft Entra ID, or Ping Identity).
  2. Apply the AWS Organizations AI Opt-Out Policy: Paste the hardened JSON policy with @@operators_allowed_for_child_policies: ["@@none"] targeting both default and codewhisperer at the organization root. Run aws organizations describe-effective-policy across member accounts to confirm inheritance.
  3. Provision AWS PrivateLink Interface Endpoints: Deploy com.amazonaws.<region>.q and com.amazonaws.us-east-1.codewhisperer across your core development VPCs. Configure Route 53 private DNS resolution and lock endpoint access down with an aws:PrincipalOrgID resource condition.
  4. Mandate IDE Configuration Templates: Push corporate workspace settings to VS Code and JetBrains deployments via automated configuration management (Ansible, Chef, or MDM) to disable client-side telemetry flags.
  5. Establish Customer-Managed Key Rotation: Create a dedicated multi-region symmetric KMS key with an explicit key policy granting the Amazon Q service principal required grant rights, ensuring immediate cryptographic revocability.

By anchoring your developers to AWS PrivateLink endpoints and enforcing top-down organization policies, your proprietary intellectual property remains strictly yours—fully insulated from public foundation model training corpora.


References