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:
| Component | Prerequisite | Function in Architecture |
|---|---|---|
| Subscription Tier | Amazon Q Developer Pro ($19/user/month) | Unlocks administrative profiles, customizations, and enterprise identity federation |
| Identity Backbone | AWS IAM Identity Center (Organizations instance) | Centralizes workforce identity, IdP directory sync, and user group assignments |
| Code Source | AWS CodeConnections or Amazon S3 | Secure transport layer connecting GitHub, GitLab, Bitbucket, or S3 code bundles |
| Encryption | AWS KMS (Default or Customer Managed Key) | Enforces encryption at rest for indexed repository context and customization assets |
| IDE Clients | VS Code or JetBrains IDEs with AWS Toolkit | Consumes 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.
- 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.
- 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.
- 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.
- 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 actionsAssociateCustomizationPermissionandDisassociateCustomizationPermissioncontrol 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.
- Filter Out Noise: Purge build output (
/target,/dist,/build), minified files, lock files, vendored dependencies (node_modules/,vendor/), and auto-generated API clients. - Emphasize Canonical Patterns: Prioritize repositories containing production-grade base classes, centralized error handlers, security middleware, and typed SDK client implementations.
- Language Coverage: Supported languages include Java, Python, TypeScript, JavaScript, C#, C++, Go, and Bash/Shell. Ensure you have clean files that cleanly demonstrate internal interface usage.
Creating the Customization
- In the AWS Management Console, open Amazon Q Developer and select Customizations from the navigation panel.
- Choose Create customization.
- Specify a distinct Customization name (e.g.,
Platform-Core-SDK-v1) and an optional description. - 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
.zipcodebase archive.
- If using a Git repository, select your existing AWS CodeConnection, choose the repository name, and select the target branch (e.g.,
- Choose the AWS KMS key used for encrypting the customization index.
- 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]
- Evaluation Score >= 8 (Very Good): Indicates sufficient codebase volume, strong API definition clarity, and minimal noise. This version is production-ready.
- Evaluation Score < 8 (Needs Refinement): Indicates insufficient code volume, excessive unparsed file types, or conflicting patterns. Refactor your reference files before activating.
Activating and Mapping Permissions
- Under the Versions tab of your customization, select the verified version and click Activate.
- Navigate to Access control or Permissions on the customization details page.
- Choose Add user or group.
- Select the matching workforce group from AWS IAM Identity Center (e.g.,
q-developer-platform-core). - Confirm the association. The action executes
codewhisperer:AssociateCustomizationPermissionunder 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.
- Install Extensions: Install the Amazon Q extension in Visual Studio Code or JetBrains IDEs (IntelliJ IDEA, PyCharm, WebStorm, etc.).
- 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.
- Complete Browser SSO Authentication: A browser window opens automatically. The developer logs in using corporate single sign-on with MFA.
- 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:
- Inline Completions: Begin typing an internal SDK client instantiation (e.g.,
PrivateAuthClient.builder()...). Amazon Q Developer will suggest corporate-specific parameters, internal endpoints, and mandatory interceptors that do not exist in public open-source packages. - Conversational Chat: Open the Amazon Q chat panel and ask technical architecture queries:
Amazon Q Developer answers using your internal implementation semantics rather than standard Apache or Spring defaults.How do I configure retry parameters using our internal HttpRetryMiddleware in Java?
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:
| Layer | Implementation Tool | Best Used For |
|---|---|---|
| Global Architecture & SDKs | Server-Side Customizations (Console + CodeConnections) | Proprietary libraries, internal REST/gRPC client schemas, centralized authentication SDKs |
| Project & Repo Style Standards | Local Markdown Rules (.amazonq/rules/*.md) | Local linting rules, naming conventions, test coverage thresholds, framework constraints |
| Ad-Hoc Session Context | Chat @workspace and CLI /context | Immediate 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:
- Zero Foundation Model Training: AWS provides strict contractual isolation: code ingested for Amazon Q Developer Customizations and telemetry generated during IDE interactions are not used to train base foundation models for AWS or any other customer.
- Audit Logging via AWS CloudTrail: All administrative operations—such as customization creation, version deletion, and group permission mappings—are logged as CloudTrail management events under the
codewhisperernamespace. - Diagnostic Logging via Amazon CloudWatch Logs: Enable CloudWatch logging in the Amazon Q Developer console to track indexing errors, data connector synchronization failures, and permission discrepancies.
- De-provisioning Lifecycle: When a developer leaves a team or project, removing them from the IAM Identity Center group automatically revokes their access to the Amazon Q Developer Pro subscription and detaches the proprietary customization profile on their next token refresh cycle.
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.