In CDP, an environment is a logical subset of your cloud provider account including a specific virtual private network. You can register as many environments as you require.
The “environment” concept of CDP is closely related to the virtual private network in your cloud provider account. Registering an environment provides CDP with access to your cloud provider account and identifies the resources in your cloud provider account that CDP services can access or provision. A single environment is contained within a single cloud provider region, so all resources deployed by CDP are deployed within that region within one specific virtual network. Once you’ve registered an environment in CDP, you can start provisioning CDP resources such as clusters, which run on the physical infrastructure in an AWS data center.
The following diagram enumerates the components of an environment:
The diagram illustrates all major user-created and CDP-created components of an environment:
- The items in dark blue boxes with orange outlines can either be automatically provisioned by CDP on your AWS account, or your can optionally pre-create them and provide them when registering an environment.
- The items in dark blue boxes must be pre-created by your CDP administrator prior to environment registration and then provided when registering an environment.
- The items in orange boxes are automatically provisioned on AWS by CDP as part of environment provisioning.
Note: The items that are user-created don’t get terminated during environment deletion.
As shown in the diagram, an environment consists of the following resources:
|Virtual network with subnets||An environment corresponds to one specific virtual network and two or more
subnets in which CDP resources are provisioned.
The network is located within one specified region; therefore, you also need to select a region for each environment.
|Security groups||Security groups act as a virtual firewall for your instances to control inbound
and outbound traffic.
All VM instances provisioned within an environment use your specified security access settings allowing inbound access to your instances from your organization’s computers.
|Credential||CDP uses the credential for authorization to provision resources (such as compute
instances) within your cloud provider account.
On AWS, the credential uses a cross-account IAM role with an attached IAM policy listing all required permissions.
|SSH public key||When registering an environment, a CDP administrator provides an SSH public key. This way, the administrator has root-level access to the Data Lake instance and Data Hub cluster instances.|
|Cloud storage location and instance profiles allowing access to that location||When registering an environment, you must provide one or more S3 buckets for
You must also provide IAM instance profiles that control access to the bucket(s).
|S3Guard||You must enable S3Guard by either providing an existing DynamoDB table or specifying a name for a new DynamoDB that CDP should create for it. This helps address S3’s eventual consistency problem.|
|Data lake||A data lake is automatically provisioned when an environment is created. It provides a mechanism for storing, accessing, organizing, securing, and managing data.|
|FreeIPA||A FreeIPA server is automatically provisioned when an environment is created. It is responsible for synchronizing your users and making them available to CDP services, Kerberos service principal management, and more.|
You may want to register multiple environments corresponding to different regions that your organization would like to use.