# Deploying Lineaje SCA360

Lineaje SCA360 can be deployed in multiple ways to fit different environments and requirements. You can launch the application through AWS Marketplace, set it up using the Lineaje Portal, or configure it on a virtual machine.

<details>

<summary>Deploying SCA360 Through the Lineaje Portal</summary>

Deploy Lineaje SCA360 through the Lineaje Portal by initiating the deployment and configuring essential settings.

To deploy SCA360 through the Lineaje Portal:

1. Log in to the [Lineaje Portal](https://app.veedna.com/).
2. In the left-hand navigation, select **Integrations**.

   <div align="left"><figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2Fxmi7ykeHBrSgU7GNEOMI%2FLineaje-portal-integrations-1.jpg?alt=media&#x26;token=376d90ea-c06f-4fc1-851b-ea041b591912" alt="Integrations tab in Lineaje Portal"><figcaption></figcaption></figure></div>
3. Under **SCA360**, click **Deploy to Public Cloud**, and select **Deploy in AWS.**

   <figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2FPSFlWQeIqIfcDyuoJKiy%2Fintegrations-section-deploy-public-0.jpg?alt=media&#x26;token=e9ffd4d9-6b24-494d-8932-9fa3294ded40" alt="Select Deploy in Public Cloud option"><figcaption></figcaption></figure>
4. In the window that appears, from the drop-down menu, choose the **AWS Region** and click **Deploy**. You are directed to the latest CloudFormation Stacks page in AWS.

   <div align="left"><figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2Fcsh9Sa2mUoBRqkXoRTXN%2Fdeploy-screen-1.jpg?alt=media&#x26;token=390cf959-a3f5-43b1-afe2-65c328b44a6d" alt="Select AWS region and click Deploy"><figcaption></figcaption></figure></div>
5. On the **Stacks** page, enter the following information:

   * **Stack name**: The stack identifier. The Stack name is automatically populated.
   * **Lineaje Unified Scanner Hub Code**: This code is automatically populated.
   * **Instance Type**: Select `c5-xlarge` from the drop-down menu. Instance type determines the CPU and Memory allocation for the Lineaje Virtual Machine (VM).
   * **VPC ID**: Choose your preferred VPC to define the network boundary of your AWS resources. VPC ID must be created prior to deployment. To learn more, see [Prerequisites](https://docs.veedna.com/sca360-flexible-deployment-for-data-center-cloud-integrated-environments/prerequisites).
   * **Subnet ID**: Choose a subnet where your resources will be launched within the VPC. Subnet ID must be created prior to deployment. To learn more, see [Prerequisites](https://docs.veedna.com/sca360-flexible-deployment-for-data-center-cloud-integrated-environments/prerequisites).
   * **CIDR IP Range**: Enter `0.0.0.0/0`. Accesses the VM or EC2 instance to allow access of all IP addresses. To allow a specific IP address access, set CIDR to `x.x.x.x/32`.
   * **Key Pair**: Select the Key Pair. Key Pair must be created prior to deployment. To learn more, see [Prerequisites](https://docs.veedna.com/sca360-flexible-deployment-for-data-center-cloud-integrated-environments/prerequisites).
   * **Volume Size of VM**: Enter `500 GB`. The root volume size for the Lineaje Unified Scanner VM.
   * **Discover the ECR Images**: Select `No` from the drop-down menu. To have Lineaje SCA360 scan all images in the current AWS Account and Region, select **Yes**.

   <figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2FTjTsHuxuvo3tBY0k0aZW%2Faws-stack-1.jpg?alt=media&#x26;token=a970b7cc-057c-4973-af34-00b02e983a42" alt="AWS stack"><figcaption></figcaption></figure>
6. Under **Capabilities**, check **I acknowledge that that AWS CloudFormation might create IAM resources**.
7. Click **Create stack**. Wait for the stack to complete.

   <figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2FmvHBiFW458joYliX2lib%2Facknowledge-1.jpg?alt=media&#x26;token=be8675dd-068b-4fce-9a23-e6492502082f" alt="Acknowledge to create stack"><figcaption></figcaption></figure>
8. Under the **Resources** tab, click on the **Physical ID’s** link for the stack you just created and click **Instant ID**.
9. Click **Connect**.
10. Under the **Session Manager** tab, click **Connect**.

</details>

<details>

<summary>Deploying SCA360 Through AWS Marketplace</summary>

You can deploy Lineaje SCA360 in your AWS environment by subscribing to the Lineaje service and creating a stack and then configuring the instance in the Lineaje Portal.

### Step 1: Deploying Lineaje SCA360 Through AWS Marketplace

1. Log in to the AWS Marketplace and search for `Lineaje SCA360` in the AWS Marketplace products.

   <figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2FHT6FzdA3tbJxLOqXDj1i%2Faws-market-place-search-lineaje-1.png?alt=media&#x26;token=dfead68a-960b-4bad-b5d5-e7ef3990b742" alt="Search for Lineaje in AWS Marketplace"><figcaption></figcaption></figure>
2. Click on **View purchase options** and click **Subscribe**.

   <figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2FSP5SUJ85HrIVh3PqDmZw%2Faws-market-place-view-purchase-option-1.png?alt=media&#x26;token=33ed447e-744c-4688-aee4-48573c4b682d" alt="Lineaje purchase options"><figcaption></figcaption></figure>
3. Click **Set up your account** and enter the details.

   <figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2FNy967qjgw6XYDPpeWOeK%2Faws-market-place-set-up-account-1.png?alt=media&#x26;token=ecd527a6-87d7-41da-95dd-75183365e928" alt="Enter account details"><figcaption></figcaption></figure>
4. Click **Next**.
5. Click **Deploy** to set up SCA360 in your preferred AWS region.
6. On the **Stacks** page, a pre-filled CloudFormation template is displayed. Enter the following information:

   * **VPC ID**: Choose your preferred VPC to define the network boundary of your AWS resources. VPC ID must be created prior to deployment. To learn more, see [Prerequisites](https://veedna.atlassian.net/wiki/spaces/~712020229c992a6cc548239d3993932adc913d/pages/1024163841/Tech+Writer+Copy+Lineaje+SCA360+Installation#Prerequisites).
   * **Subnet ID**: Choose a subnet where your resources will be launched within the VPC. Subnet ID must be created prior to deployment. To learn more, see [Prerequisites](https://veedna.atlassian.net/wiki/spaces/~712020229c992a6cc548239d3993932adc913d/pages/1024163841/Tech+Writer+Copy+Lineaje+SCA360+Installation#Prerequisites).
   * **CIDR IP Range**: Enter `0.0.0.0/0`. Accesses the VM or EC2 instance to allow access of all IP addresses. To allow a specific IP address access, set CIDR to `x.x.x.x/32`.
   * **Key Pair**: Select the Key Pair. Key Pair must be created prior to deployment. To learn more, see [Prerequisites](https://veedna.atlassian.net/wiki/spaces/~712020229c992a6cc548239d3993932adc913d/pages/1024163841/Tech+Writer+Copy+Lineaje+SCA360+Installation#Prerequisites).

   <figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2FaVcyjf0qvhxud7T0ZvBG%2Faws-market-place-cloudformation-1.png?alt=media&#x26;token=5c36dc6a-b8b6-4582-94f9-0fa277c58060" alt="Aws stacks page"><figcaption></figcaption></figure>
7. Under **Capabilities**, check **I acknowledge that that AWS CloudFormation might create IAM resources**.
8. Click **Create stack.**

### Step 2: Configuring Lineaje SCA360 in the Lineaje Portal

1. Log in to the [Lineaje Portal](https://app.veedna.com/).
2. In the left-hand navigation, select **Integrations**.
3. Click **Scan Remotely** to create an SBOM by connecting to your relevant SCM or Container Registry. Click **Upload and Scan** > **Upload Manifest File** if you want to generate SBOM by uploading a Manifest File.

   <figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2FL9LDVPcKPdwFnHlsdh1d%2Flineaje-portal-scan-remotely-1.png?alt=media&#x26;token=07ed670d-5e8b-4822-ac9d-4e51e03cef14" alt="Scan remotely"><figcaption></figcaption></figure>
4. To create an SBOM using your GitHub repository:

   1. In **Scan Remotely**, select **GitHub**.
   2. In the **Details** section, enter a name for your integration and enter a GitHub link.
   3. Click **Next**.

   <figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2FqbtFXsDHeKAZqeA6PfFt%2Flineaje-portal-github-1.png?alt=media&#x26;token=aba77a5f-7b02-4b5a-bf0d-65a38737411d" alt="Add details"><figcaption></figcaption></figure>
5. In the **Repositories** section, select the tag or branch you want to scan from your GitHub repository and click **Save Configuration**.

   <figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2FxNREvqNxqVcP0RpEOfdO%2Flineaje-portal-github-select-repo-1.png?alt=media&#x26;token=9f458185-b82c-4eab-8d13-fe90eb81af3d" alt="Select tag or branch"><figcaption></figcaption></figure>
6. Under **Project Name**, click on your project to view the enriched SBOM.
7. Click **Actions** to download the SBOM.

   <figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2F8TmKZ0K9zZlvhIZyA7Ez%2Flineaje-portal-github-select-repo-download-sbom-1.png?alt=media&#x26;token=1fc63828-978e-46f5-88ca-4893002ab167" alt="Download the SBOM"><figcaption></figcaption></figure>

</details>

<details>

<summary>Deploying SCA360 Through Open Virtual Applicance (OVA)</summary>

Set up your Windows 11 environment to deploy Lineaje SCA360. Install the required components, configure a virtual machine, and deploy SCA360 using Gitbash.

### **Step 1: Installing the Required Components**&#x20;

Install the following on your Windows 11 system (use default settings):

* [Python 3](https://www.python.org/downloads/windows/)
* [Git Bash](https://git-scm.com/install/windows)
* [Oracle VirtualBox](https://www.virtualbox.org/wiki/Downloads)

### **Step 2: Setting Up a Virtual Machine**

1. Download the OVA file from the SharePoint link sent to your email address.
2. Open **Oracle VirtualBox** > **File** > **Import Virtual Application**.
3. Select the OVA file and click **Finish**.
4. After import, go to **Settings**.

   <div align="left"><figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2FH6FtJ0HkoAJgC3wSrsNd%2FOVA-settings.png?alt=media&#x26;token=cf981485-b685-46f3-a91b-840d736d1779" alt="Settings"><figcaption></figcaption></figure></div>
5. In the **System** section, set **Base Memory** to **4096 MB**.

   <figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2FDHMT5zLKGdau8dCxXAdE%2Fova-system.png?alt=media&#x26;token=8acb9e21-67ed-40f9-b18f-c1e1c9e1eb70" alt="System section"><figcaption></figcaption></figure>
6. In the **Network** section, click on **Port Forwarding**.

   <figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2FGDT2zcU4Bu0SEMoM17Y0%2Fova-port-forwarding.png?alt=media&#x26;token=ec44c84f-796b-451e-8fbb-c0fa7cfdb562" alt="Port forwarding"><figcaption></figcaption></figure>
7. Create a new rule with the following configuration:
   * **Name**: SSH
   * **Protocol**: TCP
   * **Host IP**: 127.0.0.1
   * **Host Port**: 2222
   * **Guest Port**: 22

<figure><img src="https://2983949833-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzRZpxg1UUX5iPuJAfelm%2Fuploads%2FJhDgo3ClL7IUlsl3d4Ki%2Fova-port-forwarding-rules.png?alt=media&#x26;token=9f7c66bc-dd1b-449f-b129-275a66413e0b" alt="New rule configuration"><figcaption></figcaption></figure>

8. Click **OK**.
9. Click **OK** to save the settings.
   8\. Start the virtual machine.
   9\. Log in using the following credentials:
   * Username: `lineaje`
   * Password: `lineaje`

{% hint style="info" %}
The default host key is the right Ctrl key. The minimum disk space is 20 GB. For POC, a minimum 100 GB is recommended.
{% endhint %}

10. Confirm that the CLI is installed correctly by checking its version.

`./veecli --version`

{% hint style="info" %}
If SSH or download fails, type the command sudo dhclient. Verify that the virtual machine has internet connectivity by performing a simple network check, such as sending a ping request to a reliable website (e.g., Google).
{% endhint %}

</details>

After deploying SCA360, you must also [register](https://docs.veedna.com/sca360-flexible-deployment-for-data-center-cloud-integrated-environments/registering-lineaje-sca360) and [configure](https://docs.veedna.com/sca360-flexible-deployment-for-data-center-cloud-integrated-environments/configuring-lineaje-sca360) it.
