Skip to content

goolzerg/nuget-aws

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

My goal is create nuget private repository on AWS cloud with public IP using Terraform and Docker.

Installation

Manually create a new user on AWS account with full access permission to EC2. Important: during creation you need to check the checkbox programmatic access and save csv in secure place.

We will need create EC2 instance for our repository, so let's do it:

git clone https://github.com/goolzerg/nuget-aws.git
  1. Open nuget-to-aws.tf

  2. You have to replace access_key an secret_key on yours.

  3. Below you can see Security group block. Here ports are opened 80 and 22 for everyone (just for convenience in this example).

  4. Then SSH public key. The SSH key must be generated with 3rd party service, e.g puttygen.exe and replaced too.

If you've already installed Terraform, you should in the same folder where you've downloaded .tf file, start CLI and type:

$ terraform init
$ terraform apply

In this example was used docker image maintaining by BaGet. https://hub.docker.com/r/loicsharma/baget

That's it, our repository is installed and accessible throughout public IP address. Now we can push our packages to the repository:

dotnet nuget push -s http://34.232.277.57/v3/index.json -k NUGET-SERVER-API-KEY package.1.0.0.nupkg

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published