# Best Practices \*

### PierCloud K8s Module

{% hint style="warning" %}
For the integration with the **Prometheus** Data Connector, this configuration becomes mandatory to ensure its successful execution.”
{% endhint %}

#### **Objective**

This documentation describes how to configure a hostname of type "Resource Name" on AWS resources (such as EC2 instances) to ensure correct data mapping in integration systems with the k8s module.

{% hint style="danger" %}
If this configuration is applied after the cluster has been created, the instances must be deleted for the change to take effect.
{% endhint %}

#### Step-by-Step – Configuration via AWS Console

{% stepper %}
{% step %}

#### Access the VPC Service

* Log in to the AWS Console
* In the Services menu, select **VPC**
  {% endstep %}

{% step %}

#### Locate the Subnet

* In the left-hand menu, click **Subnets**
* Find the desired subnet in the list (e.g., `subnet-0e0b28b1709a8e215`)
* Click the **subnet ID** to open its details
  {% endstep %}

{% step %}

#### Edit Subnet Settings

* In the **Details** tab, click the **Actions** button in the upper-right corner
* Select **Edit subnet settings**

**Example**:
{% endstep %}
{% endstepper %}

<figure><img src="https://1687673077-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ9sinLUl52lDK1vg6b8g%2Fuploads%2F1Mc6ta0F0K56iLSWdVqy%2Fimage.png?alt=media&#x26;token=30db5d03-2a1b-4fb0-a8ca-e1157a518420" alt=""><figcaption></figcaption></figure>

{% hint style="success" %}
&#x20;**Reference**:

[EC2 instance hostnames and domains - Amazon Elastic Compute Cloud](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-naming.html)
{% endhint %}
