codeartifact-domain-deployer
Provisions AWS CodeArtifact domains with production defaults: domain creation (create-domain), repository creation within a domain (create-repository), upstream repository configuration (npm, pip, maven, nuget), external connection cascade (npmjs.com, pypi.org, mavencentral, nuget.org), package ingest via publish/copy-package, package consumption via authorization token (aws codeartifact login, 12-hour expiry), repository policy (cross-account read/write), domain owner vs repository admin separation, asset retention and lifecycle policy, package version immutability, VPC interface endpoint for private access, KMS encryption (customer managed key), CloudWatch metrics. Triggers: codeartifact domain, codeartifact external connection, codeartifact upstream cascade, codeartifact login, codeartifact authorization token, codeartifact VPC endpoint, codeartifact KMS encryption, codeartifact repository policy, codeartifact lifecycle policy, codeartifact package immutability, codeartifact cross-account.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-24
- Stars
- ★ 4
- Forks
- 0
01 前言 Front Matter
- name
- codeartifact-domain-deployer
- license
- Apache-2.0
- metadata
- { "tags": "aws, codeartifact, domain, devtools, cloudops, deploy, provisioning, upstream, external-connection, kms, vpc-endpoint, lifecycle, cross-account", "phase": "1", "author": "Jacky Chan — AWS Community Builder", "domain": "aws-cloudops", "family": "DevTools", "version": "0.1.0", "keywords": "aws, codeartifact, domain, devtools, cloudops, deploy, provisioning, upstream, external-connection, authorization-token, kms, vpc-endpoint, lifecycle, immutability, cross-account, repository-policy, package-registry", "task_type": "deploy", "complexity": "high", "entry_point": "false", "skill_class": "capability", "when_to_use": "Invoke when the user wants to create a CodeArtifact domain, configure the upstream and external-connection cascade for dependency resolution, set up package consumption authorization tokens (aws codeartifact login), share repositories cross-account via repository policy, enable private access via VPC interface endpoint, configure KMS encryption, set lifecycle/retention policies, or enforce package version immutability. Do NOT invoke for CodeArtifact repository-only operations without domain context (use codeartifact-repository-deployer), plain S3-backed package storage, or GitHub Packages (separate service).", "dependencies": "aws-orchestrator", "requires_llm": "true", "verdict_shape": "READY_TO_DEPLOY | PREREQUISITES_MISSING", "lifecycle_status": "active", "supports_pipeline": "true" }
- description
- Provisions AWS CodeArtifact domains with production defaults: domain creation (create-domain), repository creation within a domain (create-repository), upstream repository configuration (npm, pip, maven, nuget), external connection cascade (npmjs.com, pypi.org, mavencentral, nuget.org), package ingest via publish/copy-package, package consumption via authorization token (aws codeartifact login, 12-hour expiry), repository policy (cross-account read/write), domain owner vs repository admin separation, asset retention and lifecycle policy, package version immutability, VPC interface endpoint for private access, KMS encryption (customer managed key), CloudWatch metrics. Triggers: codeartifact domain, codeartifact external connection, codeartifact upstream cascade, codeartifact login, codeartifact authorization token, codeartifact VPC endpoint, codeartifact KMS encryption, codeartifact repository policy, codeartifact lifecycle policy, codeartifact package immutability, codeartifact cross-account.
- compatibility
- Agent runtime that reads SKILL.md (Claude Code, Cursor, Windsurf, Codex, Gemini). For live deployment: AWS CLI v2 with codeartifact, iam, kms, ec2 (VPC endpoint), and sts access. Works with Terraform aws_codeartifact_domain / aws_codeartifact_repository / aws_codeartifact_domain_permissions_policy resources, CloudFormation AWS::CodeArtifact::Domain / AWS::CodeArtifact::Repository templates, and the CodeArtifact login CLI for npm / pip / maven / nuget.
02 资源文件 20
- 参考文档eval/test-cases.yaml5.6 KB
- 参考文档evals/baselines/cross-account-repository-policy.md825 B
- 参考文档evals/baselines/kms-encryption-custom-key.md778 B
- 参考文档evals/baselines/missing-domain-prerequisite.md546 B
- 参考文档evals/baselines/npm-domain-with-external-connection.md883 B
- 参考文档evals/baselines/vpc-endpoint-private-access.md870 B
- 参考文档evals/eval_config.yaml1.8 KB
- 参考文档evals/evals.json9.7 KB
- 参考文档evals/prompts/cross-account-repository-policy.md541 B
- 参考文档evals/prompts/kms-encryption-custom-key.md488 B
- 参考文档evals/prompts/missing-domain-prerequisite.md332 B
- 参考文档evals/prompts/npm-domain-with-external-connection.md563 B
- 参考文档evals/prompts/vpc-endpoint-private-access.md516 B
- 参考文档examples/README.md6.3 KB
- 参考文档references/advanced-patterns.md4.1 KB
- 参考文档references/diagnostic-commands.md6.4 KB
- 参考文档references/encryption-vpc-endpoint-and-metrics.md10.9 KB
- 参考文档references/error-handling.md1.7 KB
- 参考文档references/upstream-cascade-and-auth-tokens.md12.0 KB
- 参考文档skill.usf.yaml4.5 KB
03 SKILL.md 正文
CodeArtifact Domain Deployer
An AWS CloudOps agent skill that provisions AWS CodeArtifact domains
with correct production defaults. The skill walks the domain-as-IAM-
boundary model, the upstream and external-connection cascade for
dependency resolution, authorization token lifecycle (12-hour expiry
via aws codeartifact login), cross-account repository policy,
VPC interface endpoint for private access, KMS encryption, lifecycle
policy, and package version immutability, captures governance and
dependency-resolution decisions, explains why each default matters,
and emits a READY_TO_DEPLOY checklist with copy-pasteable verification
commands.
Activation keywords
codeartifact domain, codeartifact external connection, codeartifact upstream cascade, codeartifact login, codeartifact authorization token, codeartifact VPC endpoint, codeartifact KMS encryption, codeartifact repository policy, codeartifact lifecycle policy, codeartifact package immutability, codeartifact cross-account.
STRICT output contract
When this skill is invoked with a CodeArtifact-domain-provisioning
request (create a domain, configure upstream/external-connection cascade,
set up auth tokens, share cross-account, enable VPC endpoint, configure
KMS, set lifecycle, enforce immutability, or a partial configuration),
the agent MUST respond with the READY_TO_DEPLOY checklist defined in
the "Output format" section using the literal all-caps labels
CODEARTIFACT_DOMAIN:, VERDICT:, CHECKLIST:, and
VERIFICATION_COMMANDS:. Do NOT preface the checklist with prose,
headings, or disclaimers — emit the block as the first lines of the
response. This contract is what assertion-based evals and downstream
provisioning pipelines rely on; deviating from the literal labels
breaks automation silently.
If any prerequisite is missing, the verdict is PREREQUISITES_MISSING
with a specific gap citation in the checklist (marked [✗]), and
READY_TO_DEPLOY MUST NOT also appear.
Quick navigation
| Section | When to read |
|---|---|
| Prerequisites | Always — verify before provisioning |
| Step 1 — Domain as IAM boundary | Core domain model |
| Step 2 — Repository creation within domain | Repository setup |
| Step 3 — Upstream repository cascade | Dependency resolution chain |
| Step 4 — External connection (public registry) | npmjs.com, pypi.org, etc. |
| Step 5 — Authorization token (aws codeartifact login) | Package consumption auth |
| Step 6 — Package ingest (publish / copy-package) | Publishing packages |
| Step 7 — Cross-account repository policy | Sharing repositories |
| Step 8 — VPC interface endpoint (private access) | Network isolation |
| Step 9 — KMS encryption | Encryption at rest |
| Step 10 — Lifecycle policy and immutability | Retention governance |
| Step 11 — CloudWatch metrics | Monitoring |
| Step 12 — Recent features | Latest |
| NEVER do these things | Review before signing off |
| Output format | The literal checklist template |
| references/upstream-cascade-and-auth-tokens.md | Upstream + auth detail |
| references/encryption-vpc-endpoint-and-metrics.md | KMS + VPCe + metrics |
Mindset
One-line takeaway: The CodeArtifact domain is the IAM and
encryption boundary. Every repository lives inside a domain. The
upstream and external-connection cascade determines how package
dependencies are resolved — a package not found locally cascades
through the upstream chain to public registries. The authorization
token from aws codeartifact login expires every 12 hours and MUST
be refreshed by CI/CD pipelines.
The three-misconception deep-dive (repository-is-NOT-the-boundary, upstream vs external connection, token permanence): Advanced patterns.
Configuration dependency graph (novel heuristic)
CodeArtifact domain configurations are NOT independent. The domain must exist before repositories. External connections are domain-level resources. Upstream chains must form a valid cascade. VPC endpoints require DNS private hostnames. Use this graph to sequence provisioning.
| Configuration | Hard dependencies (API error without) | Silent failure / immutability | Enables downstream |
|---|---|---|---|
| Domain | KMS key (if encryption-key arn specified); caller has codeartifact:CreateDomain | domain encryption CANNOT be changed after creation — the KMS key is immutable | repository creation, external connections |
| Repository | Parent domain exists; caller has codeartifact:CreateRepository | repository domain association CANNOT be changed — a repo cannot move domains | upstream configuration, package publish/consume |
| Upstream repository | Repository exists; upstream repository exists in same domain or shared domain | upstream order matters — cascade traverses in list order | internal dependency resolution |
| External connection | Domain exists; only ONE external connection per external source per domain | external connection connects to public registry — cannot be scoped or filtered | public package resolution (npmjs.com, pypi.org, etc.) |
| Authorization token | Domain or repository exists; caller has codeartifact:GetAuthorizationToken | token expires after 12 hours — MUST be refreshed | package consumption (npm install, pip install, etc.) |
| Repository policy (cross-account) | Repository exists; target account ID known; caller has codeartifact:PutRepositoryPermissionsPolicy | policy CANNOT be set at domain level for repository access — must be per-repository | cross-account read/write to specific repositories |
| VPC interface endpoint | VPC exists; private DNS enabled for codeartifact.<region>.amazonaws.com | without private DNS, the endpoint does NOT intercept the default CodeArtifact hostname | private package access without internet gateway |
| KMS encryption | KMS CMK exists; domain being created (NOT updateable post-creation) | encryption CANNOT be changed after domain creation — default AWS-managed key vs CMK is a create-time decision | encryption-at-rest governance |
| Lifecycle policy | Repository exists; caller has codeartifact:PutLifecyclePolicy | lifecycle rules apply to future package versions — existing versions are NOT retroactively affected | automated package retention/cleanup |
| Package immutability | Domain exists; immutability enforced at domain level | published package versions CANNOT be overwritten or deleted (unless lifecycle policy removes them) | supply-chain integrity |
The domain-is-the-boundary row is the one a baseline model misses. A model that treats the repository as the primary entity will try to change encryption at the repo level (impossible), set domain-wide access at the repo level (wrong scope), or forget that the domain owner pays for all storage. The procedure below forces an explicit decision on the domain boundary first.
Cross-dependency gotchas:
- The domain KMS key is immutable. If you create the domain with the default AWS-managed key, you CANNOT switch to a CMK later without recreating the domain and all repositories.
- External connections are domain-scoped, not repository-scoped. One external connection to npmjs.com serves ALL repositories in the domain that reference it as an upstream.
- Upstream cascade order determines resolution. If repo-A has upstreams [repo-B, ext:npmjs], a package not in repo-A is searched in repo-B first, then npmjs. Reversing the order changes behavior.
- The auth token is scoped to a domain (or a specific repository). A domain-scoped token grants access to ALL repositories in the domain. A repository-scoped token is more restrictive.
Expert heuristic: the upstream and external-connection cascade
Full cascade heuristic with the package-resolution walk and the supply-chain-security implication: Upstream cascade and auth tokens.
Expert heuristic: the 12-hour authorization token
Token lifecycle, CI/CD implication, and domain- vs repository-scoped tokens: Upstream cascade and auth tokens.
Expert heuristic: domain owner vs repository admin
Account topology and cross-account sharing flow (the domain owner pays for all storage): Advanced patterns.
Prerequisites (verify before provisioning)
Before emitting provisioning commands, verify these prerequisites. If any are missing, the verdict is PREREQUISITES_MISSING.
| Prerequisite | Why it matters | How to verify |
|---|---|---|
| Domain name decided | Domain names are immutable identifiers | Confirm domain name (unique per account per region) |
| KMS key ARN (if custom encryption) | Encryption key is immutable at domain creation | aws kms describe-key --key-id <key-id> |
| Package format identified (npm, pip, maven, nuget) | Determines external connection and login tool | Confirm format(s) needed |
| External connection source (if consuming public packages) | External connection must exist in the domain | aws codeartifact list-external-connections |
| Target account ID (if cross-account repository policy) | Repository policy needs the consumer account ID | aws sts get-caller-identity (consumer account) |
| VPC ID and subnet (if VPC interface endpoint) | VPC endpoint needs a VPC and subnet | aws ec2 describe-vpcs --vpc-ids <vpc-id> |
| IAM permissions (codeartifact:CreateDomain, CreateRepository) | Caller must have permissions | aws iam get-user + check attached policies |
| CI/CD token refresh strategy | Auth token expires every 12 hours | Confirm pipeline can run login per build |
If any prerequisite is missing, output VERDICT: PREREQUISITES_MISSING
and cite the specific gap.
Step 1 — Domain as IAM boundary
The CodeArtifact domain is the top-level container. It owns the encryption key, the domain permissions policy, and all repositories within it. The domain cannot be renamed or moved — it is immutable.
| Property | Domain-level | Repository-level |
|---|---|---|
| KMS encryption key | Owned by domain (immutable at creation) | Inherited from domain |
| Permissions policy | Domain permissions policy (who can create/manage repos) | Repository policy (who can read/write packages) |
| Storage cost | Borne by domain owner account | N/A (domain owner pays) |
| External connections | Domain-scoped (one per public registry) | Referenced as upstream |
| Lifecycle policy | N/A | Per-repository |
| Deletion | Deletes ALL repositories and packages | Deletes one repo and its packages |
Create a domain:
Create-domain commands (AWS-managed key and custom CMK — encryption is immutable at creation): Diagnostic commands.
Domain permissions policy (controls who can administer the domain):
put-domain-permissions-policy command: Diagnostic commands.
Where domain-policy.json grants domain administration to specific
principals.
Step 2 — Repository creation within domain
Repositories are created within a domain. Each repository has a package format (npm, pip, maven, nuget, etc.) and can have upstreams.
create-repository command: Diagnostic commands.
Repository description is mutable. Repository name is immutable.
Step 3 — Upstream repository cascade
Upstream repositories form the dependency resolution chain. When a package is requested from a repository, CodeArtifact searches the local repository first, then traverses upstreams in order.
update-repository upstreams command (order matters — first match wins): Diagnostic commands.
Cascade order is a security control. Internal repositories should come before external connections to prevent dependency confusion attacks.
Step 4 — External connection (public registry)
External connections link the domain to a PUBLIC package registry. They are created at the DOMAIN level and referenced by repositories as upstreams.
list-external-connections command and the common external connections: Diagnostic commands.
External connections do NOT require creation — they are pre-provisioned by AWS. You reference them as an upstream:
update-repository with external-connection upstream (LAST in the cascade): Diagnostic commands.
Key rule: only ONE external connection per public source per domain. You cannot have two npmjs connections in the same domain.
Step 5 — Authorization token (aws codeartifact login)
Package consumption requires an authorization token. The aws codeartifact login command generates a token (valid for 12 hours)
and configures the package manager.
Login commands (npm, pip) and the get-authorization-token CI/CD pattern (12-hour expiry): Diagnostic commands.
Critical: the token expires after 12 hours. CI/CD pipelines MUST
run aws codeartifact login (or call get-authorization-token) on
every build. Caching the token across runs causes silent auth failures.
Step 6 — Package ingest (publish / copy-package)
Packages can be published directly (npm publish, twine upload) or copied from upstream repositories.
Direct publish (npm):
npm publish sequence after login: Diagnostic commands.
Copy from upstream (ingest from public without consuming in CI):
copy-package-versions ingest command: Diagnostic commands.
Package version immutability: once a package version is published, it CANNOT be overwritten. A new version number is required for updates. This is a supply-chain integrity guarantee.
Step 7 — Cross-account repository policy
Repository policies grant cross-account access to specific repositories. The domain owner account sets the policy; the consumer account uses the token to access.
put-repository-permissions-policy cross-account policy command: Diagnostic commands.
Consumer account access flow:
Consumer-account login command (uses the DOMAIN OWNER's --domain-owner): Diagnostic commands.
Key distinction: domain permissions policy controls who can administer the domain (create/delete repos). Repository policy controls who can read/write packages in a specific repository. These are separate scopes.
Step 8 — VPC interface endpoint (private access)
By default, CodeArtifact is accessed over the public internet. For network isolation, a VPC interface endpoint routes traffic through AWS PrivateLink.
VPC interface-endpoint creation commands (both endpoints, --private-dns-enabled required): Diagnostic commands.
Critical: --private-dns-enabled is REQUIRED for the endpoint to
intercept the default CodeArtifact hostname. Without it, the package
manager resolves to the public IP. Two endpoints are needed: one for
the API (codeartifact.api) and one for repositories
(codeartifact.repositories).
Step 9 — KMS encryption
CodeArtifact encrypts all data at rest. The encryption key is set at DOMAIN CREATION and is IMMUTABLE.
| Option | Description | When to use |
|---|---|---|
| Default (AWS-managed) | CodeArtifact uses an AWS-managed KMS key | Simple setups, no key rotation control needed |
| Customer-managed key (CMK) | Domain created with a specific KMS CMK ARN | Enterprise compliance, key rotation control, cross-account key access |
CMK creation and CMK-encrypted domain creation commands (immutable at creation): Diagnostic commands.
Key policy for the CMK must allow CodeArtifact service to use the key (kms:Encrypt, kms:Decrypt, kms:ReEncrypt, kms:GenerateDataKey, kms:DescribeKey).
Step 10 — Lifecycle policy and immutability
Lifecycle policies automate package version retention. Package versions are immutable once published — lifecycle policies are the only way to remove old versions.
put-lifecycle-configuration command (retain last 50 versions): Diagnostic commands.
Immutability guarantee: published package versions CANNOT be overwritten, modified, or selectively deleted (only lifecycle policies remove them based on rules). This prevents supply-chain tampering.
Step 11 — CloudWatch metrics
CodeArtifact emits CloudWatch metrics for monitoring:
| Metric | Description |
|---|---|
DownloadPackageVersion |
Number of package version downloads |
PublishPackageVersion |
Number of package version publishes |
AssetSizeBytes |
Storage consumed by assets |
CloudWatch get-metric-statistics monitoring command: Diagnostic commands.
Set CloudWatch alarms for abnormal publish/download patterns (security monitoring for supply-chain anomalies).
Step 12 — Recent features
Swift/Cargo support, lifecycle GA, cross-region replication, VPC endpoint private DNS, package origin controls, Terraform maturity: Advanced patterns.
NEVER do these things
-
NEVER create a domain without deciding on KMS encryption first. The encryption key is IMMUTABLE at domain creation. If you start with the default AWS-managed key, you CANNOT switch to a CMK later without recreating the domain and all repositories.
-
NEVER assume the authorization token is permanent. The token from
aws codeartifact loginexpires after 12 hours. CI/CD pipelines MUST regenerate it on every build. Caching the token causes silent auth failures after expiry. -
NEVER put external connections before internal upstreams in the cascade. The cascade order is a supply-chain security control. Internal repos must come before public registries to prevent dependency confusion attacks.
-
NEVER confuse domain permissions policy with repository policy. Domain permissions policy controls who can administer the domain (create/delete repos). Repository policy controls who can read/write packages in a specific repo. These are separate scopes and must be configured independently.
-
NEVER create a VPC endpoint without private DNS enabled. Without
--private-dns-enabled, the endpoint does NOT intercept the default CodeArtifact hostname. Package managers will resolve to the public IP, bypassing the endpoint. -
NEVER forget that TWO VPC endpoints are needed. CodeArtifact requires separate endpoints for the API (codeartifact.api) and repositories (codeartifact.repositories). Creating only one breaks either login or package download.
-
NEVER assume package versions can be overwritten. Published versions are IMMUTABLE. A new version number is required for every change. Use lifecycle policies to clean up old versions — manual deletion of specific versions is not supported (only lifecycle rules remove them).
-
NEVER assume the domain owner and repository admin are the same account. The domain owner account pays for ALL storage. Repository admins (potentially different accounts) do not pay. Plan cost allocation and billing alerts on the domain owner account.
-
NEVER create multiple external connections for the same public registry in one domain. Only ONE external connection per public source per domain is allowed. Duplicate attempts fail.
-
NEVER assume lifecycle policies apply retroactively. Lifecycle rules apply to FUTURE package versions. Existing versions are NOT affected until the policy evaluates them. Plan the transition carefully.
Output format
CODEARTIFACT_DOMAIN: <domain-name> (<domain-owner-account>)
VERDICT: READY_TO_DEPLOY | PREREQUISITES_MISSING
CHECKLIST:
[✓|✗] Domain: <domain-name> — encryption: <aws-managed | CMK <key-arn>>
[✓|✗] Repository: <repo-name> (format: <npm|pip|maven|nuget>)
[✓|✗] Upstream cascade: <repo-1> → <repo-2> → <external-connection>
[✓|✗] External connection: <npmjs|pypi|mavencentral|nuget-org> (domain-scoped)
[✓|✗] Authorization token: aws codeartifact login (12-hour expiry — CI refresh required)
[✓|✗] Package ingest: <publish | copy-package> — immutability enforced
[✓|✗] Cross-account repository policy: <account-id> (read | read+write)
[✓|✗] VPC endpoint: <vpce-id> (api + repositories, private DNS enabled)
[✓|✗] KMS encryption: <aws-managed | CMK> — immutable at domain creation
[✓|✗] Lifecycle policy: <retain N versions | delete after N days>
[✓|✗] Package immutability: enforced (published versions cannot be overwritten)
[✓|✗] CloudWatch metrics: DownloadPackageVersion, PublishPackageVersion
[✓|✗] Tags: <key=value list>
VERIFICATION_COMMANDS:
aws codeartifact describe-domain --domain <domain-name> --region <region>
aws codeartifact describe-repository --domain <domain-name> --repository <repo-name> --region <region>
aws codeartifact list-repositories-in-domain --domain <domain-name> --region <region>
Worked example — npm domain with external connection and cross-account access
CODEARTIFACT_DOMAIN: my-domain (123456789012)
VERDICT: READY_TO_DEPLOY
CHECKLIST:
[✓] Domain: my-domain — encryption: CMK arn:aws:kms:us-east-1:123456789012:key/abcd1234
[✓] Repository: my-team-packages (format: npm)
[✓] Upstream cascade: my-team-packages → shared-team-packages → ext:npmjs
[✓] External connection: npmjs (domain-scoped)
[✓] Authorization token: aws codeartifact login (12-hour expiry — CI refresh required)
[✓] Package ingest: npm publish — immutability enforced
[✓] Cross-account repository policy: 999999999999 (read)
[✓] VPC endpoint: vpce-aaa111 (api + repositories, private DNS enabled)
[✓] KMS encryption: CMK — immutable at domain creation
[✓] Lifecycle policy: retain last 50 versions
[✓] Package immutability: enforced (published versions cannot be overwritten)
[✓] CloudWatch metrics: DownloadPackageVersion, PublishPackageVersion
[✓] Tags: Environment=production, Team=platform
VERIFICATION_COMMANDS:
aws codeartifact describe-domain --domain my-domain --region us-east-1
aws codeartifact describe-repository --domain my-domain --repository my-team-packages --region us-east-1
aws codeartifact list-repositories-in-domain --domain my-domain --region us-east-1
Error handling
Deep dives (domain-creation encryption-key error, CI/CD token expiry, cross-account access denied, package not found despite upstream, VPC endpoint not intercepting): Error handling.
References (load on demand)
- Diagnostic commands — per-step provisioning commands (Steps 1-11)
- Error handling — error-handling deep dives
- Advanced patterns — mindset misconceptions, domain-owner vs repository-admin heuristic, recent AWS features
- Upstream cascade and auth tokens — full upstream/token reference, plus the cascade and token heuristics moved from this SKILL.md
- Encryption, VPC endpoint, and metrics — KMS, VPC endpoint, lifecycle, and metrics detail
Domain
AWS CloudOps / AWS CodeArtifact Domain Provisioning & Package Registry Governance.
AWS documentation
- CodeArtifact domains — https://docs.aws.amazon.com/codeartifact/latest/ug/domains.html
- Domain creation — https://docs.aws.amazon.com/codeartifact/latest/ug/create-domain.html
- Upstream repositories — https://docs.aws.amazon.com/codeartifact/latest/ug/repo-upstream.html
- External connections — https://docs.aws.amazon.com/codeartifact/latest/ug/external-connection.html
- Auth tokens and login — https://docs.aws.amazon.com/codeartifact/latest/ug/using-private-npm-repo.html
- Repository policies — https://docs.aws.amazon.com/codeartifact/latest/ug/repo-policies.html
- VPC endpoints — https://docs.aws.amazon.com/codeartifact/latest/ug/vpc-endpoints.html
- Lifecycle policies — https://docs.aws.amazon.com/codeartifact/latest/ug/lifecycle-policies.html
- CloudWatch metrics — https://docs.aws.amazon.com/codeartifact/latest/ug/metrics.html
- Package origin controls — https://docs.aws.amazon.com/codeartifact/latest/ug/package-origin-controls.html
04 同仓库更多 Skills
xray-tracing-deployer
Deploys AWS X-Ray distributed tracing with production-grade configuration: X-Ray daemon deployment (EC2 systemd, ECS sidecar, EKS DaemonSet, Lambda built-in), SDK instrumentation (Java, Python, Node.js, Go, .NET) with annotations and metadata, sampling rules (default reservoir + rate vs custom rules with URL / method / service-name predicates), service map generation, trace query and retrieval, groups and insights, CloudWatch ServiceLens integration, IAM permissions (PutTraceSegments, GetSamplingRules), and latest features (Lambda Powertools tracing, OpenTelemetry / ADOT Collector support, W3C trace context). Emits a READY_TO_DEPLOY checklist with every configuration item verified. Use when enabling X-Ray on a new application, adding tracing to ECS / EKS / Lambda, validating a sampling configuration, or generating daemon deployment CLI and IaC templates. Triggers: X-Ray, distributed tracing, X-Ray daemon, sampling rules, service map, X-Ray SDK, OpenTelemetry, ADOT, Lambda Powertools, CloudWatch ServiceLens.
wellarchitected-workload-auditor
Audits AWS Well-Architected Tool workloads for review staleness, per-pillar high-risk issue counts, milestone tracking gaps, and remediation plan completeness. Emits a deterministic verdict (STALE_REVIEW | HIGH_RISK | CONFIG_GAP | OK) per workload with per-pillar risk breakdown, milestone trend analysis, and specific remediation. Use when reviewing Well-Architected workloads, checking WA review freshness, auditing high-risk issues per pillar, validating milestone coverage, or tracking remediation plans.
wellarchitected-review-operator
Operates AWS Well-Architected Tool reviews end-to-end — creates workloads, runs pillar reviews (operational excellence, security, reliability, performance, cost optimization, sustainability, Prosperity), answers questions with risk-tier rationale, generates reports and improvement plans, creates milestones, and integrates with Trusted Advisor and Well-Architected Labs. Runs deterministic pre-checks (workload existence, lens availability, pillar coverage), emits the exact update-answer / get-consolidated-report CLI behind a CONFIRM gate, and verifies risk-tier transitions. Emits READY | BLOCKED | COMPLETED. Use when creating a workload, answering pillar questions, generating an improvement plan, creating a milestone, or integrating with Trusted Advisor. Triggers: well-architected tool, well architected review, workload review, pillar, operational excellence, security, reliability, performance, cost optimization, sustainability, prosperity, improvement plan, milestone, trusted advisor.
wafv2-web-acl-deployer
Provisions AWS WAFv2 Web ACLs with correct production defaults: scope selection (CLOUDFRONT vs REGIONAL), managed rule groups (AWSManagedRulesCommonRuleSet, SQLiRuleSet, LinuxRuleSet, WindowsRuleSet, IPReputationList, BotControlRuleSet, AmazonIpReputationList, ATP), custom rules (byte match, IP set, regex pattern, geo match, size constraint, rate-based), rule priority ordering, logging destinations (Kinesis Firehose, CloudWatch Logs, S3), resource association (ALB, API Gateway, CloudFront), rate-based rules with aggregate keys (IP, forwarded IP), Challenge and CAPTCHA actions, and account takeover prevention. Emits a READY_TO_DEPLOY checklist. Use when creating a Web ACL, attaching managed rules, configuring rate limiting, enabling WAF logging, associating a Web ACL with an ALB/API Gateway/CloudFront, or configuring CAPTCHA/Challenge actions. Triggers: create WAF Web ACL, WAFv2, managed rule groups, WAF rate limiting, WAF logging, WAF CAPTCHA, WAF Challenge action, bot control, ATP managed rules.
wafv2-web-acl-auditor
Audits AWS WAFv2 Web ACL configurations to determine whether the ACL provides effective protection: default-action posture (Allow vs Block), managed-rule-group coverage gaps, rule effectiveness (BLOCK vs COUNT, shadow/bypass rules, stale exclusions), rate-based rule correctness, logging and visibility configuration, and text-transformation bypass vectors. Emits a deterministic verdict per Web ACL. Use when reviewing a WAFv2 Web ACL for security posture, checking managed-rule coverage, validating rate-limit configuration, auditing WAF logging, or hardening a WAF before production deployment. Triggers: WAF, WAFv2, Web ACL, managed rule group, AWSManagedRules, rate-based rule, CAPTCHA, Challenge, OverrideAction, Count mode, forwarded IP, Bot Control, ATP, text transformation, WAF logging, WAF visibility, OWASP, SQLi, XSS, RFI.
waf-rule-deployer
Provisions AWS WAFv2 rule sets with production defaults: Web ACL creation (CloudFront scope in us-east-1 vs Regional scope), rule groups (managed vs custom) with capacity planning in WCU (Web ACL Capacity Units, 1500 default per ACL), managed rule groups (AWSManagedRulesCommonRuleSet, AWSManagedRulesSQLiRuleSet, AWSManagedRulesAmazonIpReputationList, AWSManagedRulesLinuxRuleSet, AWSManagedRulesWindowsRuleSet, AWSManagedRulesUnixRuleSet), custom rules (byte-match, regex pattern set, geo-match, rate-based), IP set and regex pattern set resources, rule priority ordering (lowest number evaluated first), action types (allow, block, count, CAPTCHA, Challenge), bot control managed rule group, account takeover. Triggers: create WAF rule, WAF managed rule group, WAF custom rule, WAF byte match, WAF geo match, WAF rate based rule, WAF IP set, WAF regex pattern set, WAF WCU budget, WAF CloudFront ACL, WAF logging Kinesis Firehose, WAF bot control, WAF ATP, WAF label matching, WAF Challenge action, WAF CAPTCHA.