Setting Up CodeArtifact from the CLI

45 minutes
  • 4 Learning Objectives

About this Hands-on Lab

This hands-on lab walks you through how to create CodeArtifact domains and repositories, and then populate the repositories using the AWS Command Line Interface.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Create a CodeArtifact Domain
  1. Install npm.
  2. Install Node.js.
  3. Create the CodeArtifact domain.
Create a Repository within the Domain
  • Create a CodeArtifact repository within the domain.
Create an Upstream Repository
  1. Create a second repository within the domain.
  2. Link the two repositories.
  3. Configure npm in demo-repo.
  4. Install npm packages in demo-repo.
Verify and Clean Up Resources
  1. Empty the created repositories.
  2. Delete the repositories.
  3. Delete the domain.

Additional Resources

Scenario

You have been tasked with getting your company started using AWS CodeArtifact. This entails creating a CodeArtifact domain, and two repositories within that domain. Additonally, one of your tasks is to link to a public repository to enable the use of packages from the public repository.

Lab Setup

Log in to the lab environment with the cloud_user credentials provided. Ensure you are using the us-east-1 Region throughout the lab.

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?