AD SPACE AVAILABLE · BRAND PARTNERS WELCOME

How Cloud Teams Configure Amazon Q Developer Custom Repositories and IAM Identity Center Policies

심동규 · 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

For enterprise engineering teams, general-purpose AI coding assistants quickly hit a wall when confronted with internal architectures. Standard public models cannot recognize private software development kits (SDKs), proprietary microservice clients, internal API schemas, or company-mandated security wrappers. The instinctive reaction—pumping raw enterprise repositories into public AI tools—creates severe data privacy, IP governance, and access control risks.

Amazon Q Developer solves this architectural dilemma through server-side Customizations managed under AWS IAM Identity Center (formerly AWS SSO). When configured correctly, cloud teams enable Amazon Q Developer to generate inline code completions and conversational answers grounded in private repositories without exposing IP or permitting cross-departmental privilege escalation.

At 365Finds, our research and deployment benchmark leads to a definite stance: Amazon Q Developer is currently the most robust enterprise AI assistant for AWS-native organizations, but treating repository customization as an uncurated code dump is a critical operational error. Success requires strict curation of reference repositories, granular group-to-profile bindings, and a clear separation between server-side model customization and local project guidelines.


Key Requirements and Architecture

Before launching repository ingestion, infrastructure leads must establish the prerequisite security and license foundations:

ComponentPrerequisiteFunction in Architecture
Subscription TierAmazon Q Developer Pro ($19/user/month)Unlocks administrative profiles, customizations, and enterprise identity federation
Identity BackboneAWS IAM Identity Center (Organizations instance)Centralizes workforce identity, IdP directory sync, and user group assignments
Code SourceAWS CodeConnections or Amazon S3Secure transport layer connecting GitHub, GitLab, Bitbucket, or S3 code bundles
EncryptionAWS KMS (Default or Customer Managed Key)Enforces encryption at rest for indexed repository context and customization assets
IDE ClientsVS Code or JetBrains IDEs with AWS ToolkitConsumes customized inline completions and technical chat via SSO Start URL

Step 1: Provision Workforce Subscriptions in AWS IAM Identity Center

Amazon Q Developer Customizations cannot run on personal AWS Builder IDs; they require workforce identities managed through IAM Identity Center.

  1. Connect Corporate Directory: Federate your central identity provider (such as Microsoft Entra ID, Okta, or Google Workspace) with your AWS IAM Identity Center instance located in your AWS Organizations management account or delegated administrator account.
  2. Structure Workforce Groups: Establish dedicated user groups based on operational domain rather than blanket access. For example:
    • q-developer-platform-core: Engineers managing core internal SDKs and foundation libraries.
    • q-developer-backend-services: Application developers consuming internal APIs.
    • q-developer-frontend-apps: Client engineers with restricted backend visibility.
  3. Assign Pro Subscriptions: In the AWS Management Console, navigate to Amazon Q Developer > Subscriptions > Subscribe users. Select the designated IAM Identity Center groups or individual developers and assign the Amazon Q Developer Pro license.
  4. Retrieve Access URL: Note your organization's IAM Identity Center Start URL (e.g., https://d-xxxxxxxxxx.awsapps.com/start) and the primary AWS Region. Developers will use these parameters to authenticate their local IDEs.

Step 2: Configure Administrative IAM Policies for Customizations

Administrative roles managing customizations need explicit permissions across codewhisperer, sso-directory, and the underlying source connectors (codeconnections or s3).

Attach the following least-privilege IAM policy to your DevOps or Cloud Platform Administrator role:

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowDirectoryUserLookup",
      "Effect": "Allow",
      "Action": [
        "sso-directory:DescribeUsers",
        "sso-directory:DescribeGroups"
      ],
      "Resource": ["*"]
    },
    {
      "Sid": "ManageQDeveloperCustomizations",
      "Effect": "Allow",
      "Action": [
        "codewhisperer:CreateCustomization",
        "codewhisperer:DeleteCustomization",
        "codewhisperer:ListCustomizations",
        "codewhisperer:ListCustomizationVersions",
        "codewhisperer:UpdateCustomization",
        "codewhisperer:GetCustomization",
        "codewhisperer:ListCustomizationPermissions",
        "codewhisperer:AssociateCustomizationPermission",
        "codewhisperer:DisassociateCustomizationPermission"
      ],
      "Resource": ["*"]
    },
    {
      "Sid": "AccessRepositoryConnections",
      "Effect": "Allow",
      "Action": [
        "codeconnections:ListConnections",
        "codeconnections:ListOwners",
        "codeconnections:ListRepositories",
        "codeconnections:GetConnection"
      ],
      "Resource": ["*"]
    },
    {
      "Sid": "AccessS3CodeArchives",
      "Effect": "Allow",
      "Action": [
        "s3:GetObject*",
        "s3:GetBucket*",
        "s3:ListBucket*"
      ],
      "Resource": [
        "arn:aws:s3:::corporate-q-customizations-*",
        "arn:aws:s3:::corporate-q-customizations-*/*"
      ]
    }
  ]
}

Security Guardrail: Do not grant codewhisperer:* wildcards to non-administrative developers. The actions AssociateCustomizationPermission and DisassociateCustomizationPermission control which organizational identities can consume private codebase models and must remain locked down.


Step 3: Connect Private Codebases and Build Customizations

Amazon Q Developer allows administrators to index private code from Git providers via AWS CodeConnections (supporting GitHub, GitLab, and Bitbucket) or via zipped archives stored in Amazon S3.

Curating Code Before Ingestion

The accuracy of custom AI code generation is directly determined by the quality of reference code. Ingesting monolithic legacy repositories loaded with dead code or generated artifacts degrades suggestion relevance.

Creating the Customization

  1. In the AWS Management Console, open Amazon Q Developer and select Customizations from the navigation panel.
  2. Choose Create customization.
  3. Specify a distinct Customization name (e.g., Platform-Core-SDK-v1) and an optional description.
  4. Select your Data source:
    • If using a Git repository, select your existing AWS CodeConnection, choose the repository name, and select the target branch (e.g., main).
    • If using Amazon S3, point to the S3 URI containing your curated .zip codebase archive.
  5. Choose the AWS KMS key used for encrypting the customization index.
  6. Choose Create customization.

Step 4: Evaluate, Activate, and Scope Access Profiles

Once indexing finishes, Amazon Q Developer presents an Evaluation Score for the new customization version on a scale from 1 to 10:

[Repository Ingestion] -> [Index & Tokenization] -> [Evaluation Score Generated]
                                                               |
                     +-----------------------------------------+-----------------------------------------+
                     |                                                                                   |
             Score: 8 to 10 ("Very Good")                                                        Score: < 8 ("Fair / Poor")
                     |                                                                                   |
           [Activate Version]                                                                   [Refactor Reference Code]
                     |                                                                     - Remove auto-generated noise
         [Associate IAM Groups]                                                            - Add canonical SDK samples
                     |                                                                     - Re-run customization build
     [Deployed to IDE Clients via SSO]

Activating and Mapping Permissions

  1. Under the Versions tab of your customization, select the verified version and click Activate.
  2. Navigate to Access control or Permissions on the customization details page.
  3. Choose Add user or group.
  4. Select the matching workforce group from AWS IAM Identity Center (e.g., q-developer-platform-core).
  5. Confirm the association. The action executes codewhisperer:AssociateCustomizationPermission under the hood, restricting the proprietary customization strictly to authorized group members.

Step 5: Configure Developer IDEs (VS Code and JetBrains)

Once the administrator has activated and scoped the customization, engineers connect their local development environments directly to the corporate SSO portal.

  1. Install Extensions: Install the Amazon Q extension in Visual Studio Code or JetBrains IDEs (IntelliJ IDEA, PyCharm, WebStorm, etc.).
  2. Sign In with Pro License:
    • Open the Amazon Q panel in the IDE.
    • Choose Use with Pro license (or Sign in with IAM Identity Center).
    • Enter your enterprise Start URL and designated Region.
  3. Complete Browser SSO Authentication: A browser window opens automatically. The developer logs in using corporate single sign-on with MFA.
  4. Verify Customization Binding:
    • Upon successful sign-in, the Amazon Q status indicator in the IDE displays the assigned active customization.
    • If a developer belongs to multiple customizations across projects, they can switch between assigned customization profiles directly from the IDE status bar menu or Amazon Q settings.

Verifying Context-Aware Completions

To verify that internal context is operating:


Combining Server-Side Customizations with Local .amazonq/rules

A frequent mistake is attempting to enforce localized coding formatting rules through heavy server-side repository retraining. 365Finds strongly advises employing a hybrid governance model:

LayerImplementation ToolBest Used For
Global Architecture & SDKsServer-Side Customizations (Console + CodeConnections)Proprietary libraries, internal REST/gRPC client schemas, centralized authentication SDKs
Project & Repo Style StandardsLocal Markdown Rules (.amazonq/rules/*.md)Local linting rules, naming conventions, test coverage thresholds, framework constraints
Ad-Hoc Session ContextChat @workspace and CLI /contextImmediate debugging, multi-file refactoring, active branch context

Placing targeted Markdown rules inside .amazonq/rules/ within project repositories allows teams to refine prompt behavior dynamically without re-indexing the server-side customization.


Operational Governance, Auditability, and Security

For enterprise security officers and compliance auditors, maintaining control over AI interactions is non-negotiable:

By implementing this architecture, cloud teams eliminate the false tradeoff between developer velocity and code privacy, giving engineering organizations an intelligent, compliant AI assistant strictly aligned with internal systems.


References