

# Create a network package in AWS TNB
<a name="create-network-package"></a>

A network package consists of a network service descriptor (NSD) file (required) and any additional files (optional), such as scripts specific to your needs. For example, if you have multiple function packages in your network package, you can use the NSD to define which network functions should run in certain VPCs, subnets, or Amazon EKS clusters.

Create a network package after creating function packages. Once you've created a network package, you need to create a network instance.

------
#### [ Console ]

**To create a network package using the console**

1. Open the AWS TNB console at [https://console.aws.amazon.com/tnb/](https://console.aws.amazon.com/tnb/).

1. In the navigation pane, choose **Network packages**.

1. Choose **Create network package**.

1. Choose **Choose files** and upload each NSD as a `.zip` file. You can upload a maximum of 10 files.

1. Choose **Next**.

1. Review the package details.

1. Choose **Create network package**.

------
#### [ AWS CLI ]

**To create a network package using the AWS CLI**

1. Use the [create-sol-network-package](https://docs.aws.amazon.com/cli/latest/reference/tnb/create-sol-network-package.html) command to create a network package.

   ```
   aws tnb create-sol-network-package
   ```

1. Use the [put-sol-network-package-content](https://docs.aws.amazon.com/cli/latest/reference/tnb/put-sol-network-package-content.html) command to upload network package content. For example:

   ```
   aws tnb put-sol-network-package-content \
   --nsd-info-id ^np-[a-f0-9]{17}$ \
   --content-type application/zip \
   --file "fileb://free5gc-core-1.0.9.zip" \
   --endpoint-url "https://tnb.us-west-2.amazonaws.com" \
   --region us-west-2
   ```

------