# 6  How to Configure N2W with CloudFormation

{% hint style="info" %}
Configure CPM with CloudFormation will fail where the requested Instance type is not supported in the requested Availability Zone. Retry your request, but do not specify an Availability Zone or choose `us-east-1a`, `us-east-1b`, `us-east-1c`, `us-east-1d`, or `us-east-1f`.
{% endhint %}

* N2W provides several editions, all of which support CloudFormation.
* An IAM role will automatically be created with minimal permissions and assigned to the N2W instance.

### Get Started with CloudFormation

1. Go to <https://aws.amazon.com/marketplace>
2. Search for N2W Software.
3. Select the **AWS Free Trial & BYOL** edition, and then select **View purchase options**:

![](/files/RSAGf6VtSWs6j0vlH7CH)

&#x20;   4\. After reviewing the overview, select **View purchase options** again.

![](/files/gbSTMWH0UTw2dV2UpgTS)

&#x20;   5\. After purchasing N2W Backup & Recovery for AWS Free Trial/BYOL, select **Launch your software**.

![](/files/snO6rVXMxB0dNKqmrqi1)

&#x20;   6\. In the Setup section, select **AWS CloudFormation** for the **Service**. Select the relevant **Version** and **Region**, and then select **Launch with CloudFormation**.

![](/files/Xy8MqDgJvqxzhMS902LQ)

&#x20;   7\. In the Create Stack page:

* In the Prerequisite – Prepare template section, select **Choose an existing template**.
* In the Specify template section, select **Amazon S3 URL**. In the Amazon S3 URL window, the address of the template will appear.
* Select **View in Infrastructure Composer**.

&#x20;  8\.  Select **Next**. The **Configure stack options** page opens.   &#x20;

* If needed, select **Add new tag**.
* In the **Capabilities** section, select **I acknowledge that AWS CloudFormation might create IAM resources**.

![](/files/lDlsAss6lmCnLTTOFUJ1)

&#x20;   9\. Select **Next**. The **Specify stack details** page opens. Provide a stack name and parameters.

{% hint style="info" %}
For Inbound Access CIDR, security groups act as a firewall for associated instances, controlling both inbound and outbound traffic at the instance level. Configuring Inbound Access CIDR allows you to add rules to a security group that enable you to connect to your Linux instance from your IP address using SSH:

* If your IPv4 address is `203.0.113.25`, specify `203.0.113.25/32` to list this single IPv4 address in CIDR notation.
* If your company allocates addresses within a range, specify the entire range, such as `203.0.113.0/24`.
* If you specify `0.0.0.0/0`, it will enable all IPv4 addresses to access your instance using SSH.
* For further details, refer to “Adding a Rule for Inbound SSH Traffic to a Linux Instance” at <https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/authorizing-access-to-an-instance.html>
  {% endhint %}

![](/files/L8dqbLnqIgwDHz48Nvhk)

&#x20;   10\. Select **Nex**t. The **Review and create** page opens. Review and edit as necessary.

* Step 1, Specify template, and Step 2, Specify stack details:

![](/files/IOAdVC5n5coEu5AV0xKg)

* Step 2, Parameters, and Step 3 Configure stack options, such as Tags and Permissions:&#x20;

![](/files/NOkkwvaraS6xlpY1h6HG)

* Step 3, Stack failure options, Stack policy, and Rollback configuration:

![](/files/ntfurRMH0gIHWXUC5J5c)

* Step 3, Notification options, Stack create options, and Quick-create link:

![](/files/UQOWQOrZ3dJ4XAQz38sK)

&#x20;   11\.  After all sections are reviewed, select **Submit**. The last configuration page opens, where you can observe the progress of the stack creation.

<figure><img src="/files/GNS9gJePK6JAk4cosxir" alt=""><figcaption></figcaption></figure>

&#x20;   12\. Continue configuring N2W from section [3](/quick-start/3.-n2ws-server-instance-configuration.md).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.n2ws.com/quick-start/6.-configure-n2ws-with-cloudformation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
