CodeArtifact
💡 Definition
AWS CodeArtifact is a fully managed artifact repository service that makes it easy for organizations of any size to securely store, publish, and share software packages used in their software development process.
🔑 Key Concepts
- Package Management: Stores packages for Maven, Gradle, npm, yarn, twine, pip, and NuGet.
- Secure: Works within your VPC.
- Dependency Management: Acts as a proxy for public repositories (like npmjs.com), caching packages for security and reliability.
⚙️ How it Works
Developers configure their package managers (e.g., npm, pip) to point to the CodeArtifact repository endpoint. When they install a package, CodeArtifact serves it (fetching it from a public repo if needed and caching it).
🎯 Use Cases
- Sharing Code: Sharing private libraries across teams within an organization.
- Security: Controlling which external packages are allowed to be used.
- Availability: Ensuring builds don't fail if a public repository goes down.
💰 Pricing Model
- Storage: Charged per GB of storage.
- Requests: Charged for API requests.
📝 Exam Tips (CLF-C02)
- "Artifact repository".
- "Store and share software packages".
- Replaces tools like Nexus or Artifactory.
See Also: * CodeBuild * CodePipeline