// Module included in the following assemblies:
//
// * cloud_experts_tutorials/cloud-experts-custom-dns-resolver.adoc

:_mod-docs-content-type: PROCEDURE
[id="cloud-experts-custom-dns-resolver-environment-setup_{context}"]
= Set up your environment

[role="_abstract"]
You can use environment variables to ensure consistency across the commands within this lab.

.Prerequisites
* You have access to the {rosa-cli-first}.
* You have access to the AWS CLI (`aws`).
ifdef::openshift-rosa[]
* You have manually created an AWS Virtual Private Cloud (VPC).
endif::openshift-rosa[]
ifdef::openshift-rosa-hcp[]
* You have manually created link:https://docs.redhat.com/en/documentation/red_hat_openshift_service_on_aws/4/html-single/install_clusters/index#rosa-hcp-creating-vpc_rosa-hcp-sts-creating-a-cluster-quickly[an AWS Virtual Private Cloud (VPC)].
endif::openshift-rosa-hcp[]
* You have configured a DHCP option set to point to a custom DNS server and set as the default for your VPC.

.Procedure
. In your terminal, configure the following environment variables:
+
[source,terminal]
----
$ export VPC_ID=<vpc_ID>
$ export REGION=<region>
$ export VPC_CIDR=<vpc_CIDR>
----
+
--
where:

`<vpc_ID>`:: Replace with the ID of the VPC you want to install your cluster into.
`<region>`:: Replace with the AWS region you want to install your cluster into.
`<vpc_CIDR>`:: Replace with the CIDR range of your VPC.
--
+
. Ensure all fields output correctly before moving to the next section:
+
[source,terminal]
----
$ echo "VPC ID: ${VPC_ID}, VPC CIDR Range: ${VPC_CIDR}, Region: ${REGION}"
----