AWS CodeArtifact, NPM, PyPI, Twine, Django & Demo Project.

AWS Code Artifact


Step1: AWS Environment Setup

Step 2: Linux & Software installation

curl "" -o ""unzip awscliv2.zipsudo ./aws/installaws --version
"Version": "2012-10-17",
"Statement": [
"Effect": "Allow",
"Action": [
"Resource": "*"
"Effect": "Allow",
"Action": "sts:GetServiceBearerToken",
"Resource": "*",
"Condition": {
"StringEquals": {
"sts:AWSServiceName": ""

Step 3: Connect to you code artifact repo

aws codeartifact login --tool npm --repository varunArtifact --domain varunartifact --domain-owner 276701924684
yum install tree -ycurl -sL | sudo bash -
Yum install nodejs -y
npm --versionnode --versioncurl -o- | bashnvm --versioncd /opt/nvm --versionnvm install --ltsnode --versionnvm -lsyum install gcc-c++ make
nvm use 12npm install -g aws-cdk
mkdir npm_packagecd npm_package/npm initnpm publishnpm install maniknpm
cd ../mkdir npmtempcd npmcd npmtemp/npm install maniknpmtree
git clone
vim package-lock.json
"requires": true,
"lockfileVersion": 1,
"dependencies": {
"maniknpm": {
"version": "1.0.0",
"resolved": "",
"integrity": "sha512-Znm5+nCW+wwEqguBpR8a9fGV6gukdUC4Bdx7QiipXOWoR7Z8kjGoTL7DZhrO/5HaPUB3OHEAaougimSWgY2UaA=="


Step 4: Python installation & PyPi setup

aws codeartifact login --tool pip --repository pypi-store --domain varunartifact --domain-owner 276701924684
pip install django==2.2

Step 5: Create your own Python Package Twine

aws codeartifact login --tool twine --repository pypi-store --domain varunartifact --domain-owner 276701924684mkdir projectscd projects
git clone
python sdist bdist_wheel

Step 6: Artifact creation and upload AWS Code Artifact

pip install twine
twine upload --repository codeartifact dist/manik_notebookc-1.1.3.tar.gz

Step 7: Create a new Django project

django-admin startproject djangocodecd djangocode/
python runserver

Step 8: Verification

Step 9: Verify with New version of your Artifact

twine upload --repository codeartifact dist/manik_notebookc-1.1.4.tar.gz
pip install manik-notebookc==1.1.4
python runserver




Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store