EVS / Client / create_environment
create_environment¶
- EVS.Client.create_environment(**kwargs)¶
Creates an Amazon EVS environment that runs VCF software, such as SDDC Manager, NSX Manager, and vCenter Server.
During environment creation, Amazon EVS performs validations on DNS settings, provisions VLAN subnets and hosts, and deploys the supplied version of VCF.
It can take several hours to create an environment. After the deployment completes, you can configure VCF according to your unique requirements.
Note
You cannot use the
dedicatedHostId
andplacementGroupId
parameters together in the sameCreateEnvironment
action. This results in aValidationException
response.Note
EC2 instances created through Amazon EVS do not support associating an IAM instance profile.
See also: AWS API Documentation
Request Syntax
response = client.create_environment( clientToken='string', environmentName='string', kmsKeyId='string', tags={ 'string': 'string' }, serviceAccessSecurityGroups={ 'securityGroups': [ 'string', ] }, vpcId='string', serviceAccessSubnetId='string', vcfVersion='VCF-5.2.1', termsAccepted=True|False, licenseInfo=[ { 'solutionKey': 'string', 'vsanKey': 'string' }, ], initialVlans={ 'vmkManagement': { 'cidr': 'string' }, 'vmManagement': { 'cidr': 'string' }, 'vMotion': { 'cidr': 'string' }, 'vSan': { 'cidr': 'string' }, 'vTep': { 'cidr': 'string' }, 'edgeVTep': { 'cidr': 'string' }, 'nsxUplink': { 'cidr': 'string' }, 'hcx': { 'cidr': 'string' }, 'expansionVlan1': { 'cidr': 'string' }, 'expansionVlan2': { 'cidr': 'string' } }, hosts=[ { 'hostName': 'string', 'keyName': 'string', 'instanceType': 'i4i.metal', 'placementGroupId': 'string', 'dedicatedHostId': 'string' }, ], connectivityInfo={ 'privateRouteServerPeerings': [ 'string', ] }, vcfHostnames={ 'vCenter': 'string', 'nsx': 'string', 'nsxManager1': 'string', 'nsxManager2': 'string', 'nsxManager3': 'string', 'nsxEdge1': 'string', 'nsxEdge2': 'string', 'sddcManager': 'string', 'cloudBuilder': 'string' }, siteId='string' )
- Parameters:
clientToken (string) –
Note
This parameter is not used in Amazon EVS currently. If you supply input for this parameter, it will have no effect.
A unique, case-sensitive identifier that you provide to ensure the idempotency of the environment creation request. If you do not specify a client token, a randomly generated token is used for the request to ensure idempotency.
This field is autopopulated if not provided.
environmentName (string) – The name to give to your environment. The name can contain only alphanumeric characters (case-sensitive), hyphens, and underscores. It must start with an alphanumeric character, and can’t be longer than 100 characters. The name must be unique within the Amazon Web Services Region and Amazon Web Services account that you’re creating the environment in.
kmsKeyId (string) – A unique ID for the customer-managed KMS key that is used to encrypt the VCF credential pairs for SDDC Manager, NSX Manager, and vCenter appliances. These credentials are stored in Amazon Web Services Secrets Manager.
tags (dict) –
Metadata that assists with categorization and organization. Each tag consists of a key and an optional value. You define both. Tags don’t propagate to any other cluster or Amazon Web Services resources.
(string) –
(string) –
serviceAccessSecurityGroups (dict) –
The security group that controls communication between the Amazon EVS control plane and VPC. The default security group is used if a custom security group isn’t specified.
The security group should allow access to the following.
TCP/UDP access to the DNS servers
HTTPS/SSH access to the host management VLAN subnet
HTTPS/SSH access to the Management VM VLAN subnet
You should avoid modifying the security group rules after deployment, as this can break the persistent connection between the Amazon EVS control plane and VPC. This can cause future environment actions like adding or removing hosts to fail.
securityGroups (list) –
The security groups that allow service access.
(string) –
vpcId (string) –
[REQUIRED]
A unique ID for the VPC that connects to the environment control plane for service access.
Amazon EVS requires that all VPC subnets exist in a single Availability Zone in a Region where the service is available.
The VPC that you select must have a valid DHCP option set with domain name, at least two DNS servers, and an NTP server. These settings are used to configure your VCF appliances and hosts.
If you plan to use HCX over the internet, choose a VPC that has a primary CIDR block and a /28 secondary CIDR block from an IPAM pool. Make sure that your VPC also has an attached internet gateway.
Amazon EVS does not support the following Amazon Web Services networking options for NSX overlay connectivity: cross-Region VPC peering, Amazon S3 gateway endpoints, or Amazon Web Services Direct Connect virtual private gateway associations.
serviceAccessSubnetId (string) –
[REQUIRED]
The subnet that is used to establish connectivity between the Amazon EVS control plane and VPC. Amazon EVS uses this subnet to validate mandatory DNS records for your VCF appliances and hosts and create the environment.
vcfVersion (string) –
[REQUIRED]
The VCF version to use for the environment. Amazon EVS only supports VCF version 5.2.1 at this time.
termsAccepted (boolean) –
[REQUIRED]
Customer confirmation that the customer has purchased and maintains sufficient VCF software licenses to cover all physical processor cores in the environment, in compliance with VMware’s licensing requirements and terms of use.
licenseInfo (list) –
[REQUIRED]
The license information that Amazon EVS requires to create an environment. Amazon EVS requires two license keys: a VCF solution key and a vSAN license key. VCF licenses must have sufficient core entitlements to cover vCPU core and vSAN storage capacity needs.
VCF licenses can be used for only one Amazon EVS environment. Amazon EVS does not support reuse of VCF licenses for multiple environments.
VCF license information can be retrieved from the Broadcom portal.
(dict) –
The license information that Amazon EVS requires to create an environment. Amazon EVS requires two license keys: a VCF solution key and a vSAN license key.
solutionKey (string) – [REQUIRED]
The VCF solution key. This license unlocks VMware VCF product features, including vSphere, NSX, SDDC Manager, and vCenter Server.
vsanKey (string) – [REQUIRED]
The VSAN license key. This license unlocks vSAN features.
initialVlans (dict) –
[REQUIRED]
The initial VLAN subnets for the environment. You must specify a non-overlapping CIDR block for each VLAN subnet.
vmkManagement (dict) – [REQUIRED]
The VMkernel management VLAN subnet. This VLAN subnet carries traffic for managing ESXi hosts and communicating with VMware vCenter Server.
cidr (string) – [REQUIRED]
The CIDR block that you provide to create a VLAN subnet. VLAN CIDR blocks must not overlap with other subnets in the VPC.
vmManagement (dict) – [REQUIRED]
The VM management VLAN subnet. This VLAN subnet carries traffic for vSphere virtual machines.
cidr (string) – [REQUIRED]
The CIDR block that you provide to create a VLAN subnet. VLAN CIDR blocks must not overlap with other subnets in the VPC.
vMotion (dict) – [REQUIRED]
The vMotion VLAN subnet. This VLAN subnet carries traffic for vSphere vMotion.
cidr (string) – [REQUIRED]
The CIDR block that you provide to create a VLAN subnet. VLAN CIDR blocks must not overlap with other subnets in the VPC.
vSan (dict) – [REQUIRED]
The vSAN VLAN subnet. This VLAN subnet carries the communication between ESXi hosts to implement a vSAN shared storage pool.
cidr (string) – [REQUIRED]
The CIDR block that you provide to create a VLAN subnet. VLAN CIDR blocks must not overlap with other subnets in the VPC.
vTep (dict) – [REQUIRED]
The VTEP VLAN subnet. This VLAN subnet handles internal network traffic between virtual machines within a VCF instance.
cidr (string) – [REQUIRED]
The CIDR block that you provide to create a VLAN subnet. VLAN CIDR blocks must not overlap with other subnets in the VPC.
edgeVTep (dict) – [REQUIRED]
The edge VTEP VLAN subnet. This VLAN subnet manages traffic flowing between the internal network and external networks, including internet access and other site connections.
cidr (string) – [REQUIRED]
The CIDR block that you provide to create a VLAN subnet. VLAN CIDR blocks must not overlap with other subnets in the VPC.
nsxUplink (dict) – [REQUIRED]
The NSX uplink VLAN subnet. This VLAN subnet allows connectivity to the NSX overlay network.
cidr (string) – [REQUIRED]
The CIDR block that you provide to create a VLAN subnet. VLAN CIDR blocks must not overlap with other subnets in the VPC.
hcx (dict) – [REQUIRED]
The HCX VLAN subnet. This VLAN subnet allows the HCX Interconnnect (IX) and HCX Network Extension (NE) to reach their peers and enable HCX Service Mesh creation.
cidr (string) – [REQUIRED]
The CIDR block that you provide to create a VLAN subnet. VLAN CIDR blocks must not overlap with other subnets in the VPC.
expansionVlan1 (dict) – [REQUIRED]
An additional VLAN subnet that can be used to extend VCF capabilities once configured. For example, you can configure an expansion VLAN subnet to use NSX Federation for centralized management and synchronization of multiple NSX deployments across different locations.
cidr (string) – [REQUIRED]
The CIDR block that you provide to create a VLAN subnet. VLAN CIDR blocks must not overlap with other subnets in the VPC.
expansionVlan2 (dict) – [REQUIRED]
An additional VLAN subnet that can be used to extend VCF capabilities once configured. For example, you can configure an expansion VLAN subnet to use NSX Federation for centralized management and synchronization of multiple NSX deployments across different locations.
cidr (string) – [REQUIRED]
The CIDR block that you provide to create a VLAN subnet. VLAN CIDR blocks must not overlap with other subnets in the VPC.
hosts (list) –
[REQUIRED]
The ESXi hosts to add to the environment. Amazon EVS requires that you provide details for a minimum of 4 hosts during environment creation.
For each host, you must provide the desired hostname, EC2 SSH key, and EC2 instance type. Optionally, you can also provide a partition or cluster placement group to use, or use Amazon EC2 Dedicated Hosts.
(dict) –
An object that represents a host.
Note
You cannot use
dedicatedHostId
andplacementGroupId
together in the sameHostInfoForCreate``object. This results in a ``ValidationException
response.hostName (string) – [REQUIRED]
The DNS hostname of the host. DNS hostnames for hosts must be unique across Amazon EVS environments and within VCF.
keyName (string) – [REQUIRED]
The name of the SSH key that is used to access the host.
instanceType (string) – [REQUIRED]
The EC2 instance type that represents the host.
placementGroupId (string) –
The unique ID of the placement group where the host is placed.
dedicatedHostId (string) –
The unique ID of the Amazon EC2 Dedicated Host.
connectivityInfo (dict) –
[REQUIRED]
The connectivity configuration for the environment. Amazon EVS requires that you specify two route server peer IDs. During environment creation, the route server endpoints peer with the NSX edges over the NSX, providing BGP dynamic routing for overlay networks.
privateRouteServerPeerings (list) – [REQUIRED]
The unique IDs for private route server peers.
(string) –
vcfHostnames (dict) –
[REQUIRED]
The DNS hostnames for the virtual machines that host the VCF management appliances. Amazon EVS requires that you provide DNS hostnames for the following appliances: vCenter, NSX Manager, SDDC Manager, and Cloud Builder.
vCenter (string) – [REQUIRED]
The VMware vCenter hostname.
nsx (string) – [REQUIRED]
The VMware NSX hostname.
nsxManager1 (string) – [REQUIRED]
The hostname for the first VMware NSX Manager virtual machine (VM).
nsxManager2 (string) – [REQUIRED]
The hostname for the second VMware NSX Manager virtual machine (VM).
nsxManager3 (string) – [REQUIRED]
The hostname for the third VMware NSX Manager virtual machine (VM).
nsxEdge1 (string) – [REQUIRED]
The hostname for the first NSX Edge node.
nsxEdge2 (string) – [REQUIRED]
The hostname for the second NSX Edge node.
sddcManager (string) – [REQUIRED]
The hostname for SDDC Manager.
cloudBuilder (string) – [REQUIRED]
The hostname for VMware Cloud Builder.
siteId (string) –
[REQUIRED]
The Broadcom Site ID that is allocated to you as part of your electronic software delivery. This ID allows customer access to the Broadcom portal, and is provided to you by Broadcom at the close of your software contract or contract renewal. Amazon EVS uses the Broadcom Site ID that you provide to meet Broadcom VCF license usage reporting requirements for Amazon EVS.
- Return type:
dict
- Returns:
Response Syntax
{ 'environment': { 'environmentId': 'string', 'environmentState': 'CREATING'|'CREATED'|'DELETING'|'DELETED'|'CREATE_FAILED', 'stateDetails': 'string', 'createdAt': datetime(2015, 1, 1), 'modifiedAt': datetime(2015, 1, 1), 'environmentArn': 'string', 'environmentName': 'string', 'vpcId': 'string', 'serviceAccessSubnetId': 'string', 'vcfVersion': 'VCF-5.2.1', 'termsAccepted': True|False, 'licenseInfo': [ { 'solutionKey': 'string', 'vsanKey': 'string' }, ], 'siteId': 'string', 'environmentStatus': 'PASSED'|'FAILED'|'UNKNOWN', 'checks': [ { 'type': 'KEY_REUSE'|'KEY_COVERAGE'|'REACHABILITY'|'HOST_COUNT', 'result': 'PASSED'|'FAILED'|'UNKNOWN', 'impairedSince': datetime(2015, 1, 1) }, ], 'connectivityInfo': { 'privateRouteServerPeerings': [ 'string', ] }, 'vcfHostnames': { 'vCenter': 'string', 'nsx': 'string', 'nsxManager1': 'string', 'nsxManager2': 'string', 'nsxManager3': 'string', 'nsxEdge1': 'string', 'nsxEdge2': 'string', 'sddcManager': 'string', 'cloudBuilder': 'string' }, 'kmsKeyId': 'string', 'serviceAccessSecurityGroups': { 'securityGroups': [ 'string', ] }, 'credentials': [ { 'secretArn': 'string' }, ] } }
Response Structure
(dict) –
environment (dict) –
A description of the created environment.
environmentId (string) –
The unique ID for the environment.
environmentState (string) –
The state of an environment.
stateDetails (string) –
A detailed description of the
environmentState
of an environment.createdAt (datetime) –
The date and time that the environment was created.
modifiedAt (datetime) –
The date and time that the environment was modified.
environmentArn (string) –
The Amazon Resource Name (ARN) that is associated with the environment.
environmentName (string) –
The name of the environment.
vpcId (string) –
The VPC associated with the environment.
serviceAccessSubnetId (string) –
The subnet that is used to establish connectivity between the Amazon EVS control plane and VPC. Amazon EVS uses this subnet to perform validations and create the environment.
vcfVersion (string) –
The VCF version of the environment.
termsAccepted (boolean) –
Customer confirmation that the customer has purchased and maintains sufficient VCF software licenses to cover all physical processor cores in the environment, in compliance with VMware’s licensing requirements and terms of use.
licenseInfo (list) –
The license information that Amazon EVS requires to create an environment. Amazon EVS requires two license keys: a VCF solution key and a vSAN license key.
(dict) –
The license information that Amazon EVS requires to create an environment. Amazon EVS requires two license keys: a VCF solution key and a vSAN license key.
solutionKey (string) –
The VCF solution key. This license unlocks VMware VCF product features, including vSphere, NSX, SDDC Manager, and vCenter Server.
vsanKey (string) –
The VSAN license key. This license unlocks vSAN features.
siteId (string) –
The Broadcom Site ID that is associated with your Amazon EVS environment. Amazon EVS uses the Broadcom Site ID that you provide to meet Broadcom VCF license usage reporting requirements for Amazon EVS.
environmentStatus (string) –
Reports impaired functionality that stems from issues internal to the environment, such as impaired reachability.
checks (list) –
A check on the environment to identify instance health and VMware VCF licensing issues.
(dict) –
A check on the environment to identify environment health and validate VMware VCF licensing compliance.
type (string) –
The check type. Amazon EVS performs the following checks.
KEY_REUSE
: checks that the VCF license key is not used by another Amazon EVS environment. This check fails if a used license is added to the environment.KEY_COVERAGE
: checks that your VCF license key allocates sufficient vCPU cores for all deployed hosts. The check fails when any assigned hosts in the EVS environment are not covered by license keys, or when any unassigned hosts cannot be covered by available vCPU cores in keys.REACHABILITY
: checks that the Amazon EVS control plane has a persistent connection to SDDC Manager. If Amazon EVS cannot reach the environment, this check fails.HOST_COUNT
: Checks that your environment has a minimum of 4 hosts, which is a requirement for VCF 5.2.1. If this check fails, you will need to add hosts so that your environment meets this minimum requirement. Amazon EVS only supports environments with 4-16 hosts.
result (string) –
The check result.
impairedSince (datetime) –
The time when environment health began to be impaired.
connectivityInfo (dict) –
The connectivity configuration for the environment. Amazon EVS requires that you specify two route server peer IDs. During environment creation, the route server endpoints peer with the NSX uplink VLAN for connectivity to the NSX overlay network.
privateRouteServerPeerings (list) –
The unique IDs for private route server peers.
(string) –
vcfHostnames (dict) –
The DNS hostnames to be used by the VCF management appliances in your environment.
For environment creation to be successful, each hostname entry must resolve to a domain name that you’ve registered in your DNS service of choice and configured in the DHCP option set of your VPC. DNS hostnames cannot be changed after environment creation has started.
vCenter (string) –
The VMware vCenter hostname.
nsx (string) –
The VMware NSX hostname.
nsxManager1 (string) –
The hostname for the first VMware NSX Manager virtual machine (VM).
nsxManager2 (string) –
The hostname for the second VMware NSX Manager virtual machine (VM).
nsxManager3 (string) –
The hostname for the third VMware NSX Manager virtual machine (VM).
nsxEdge1 (string) –
The hostname for the first NSX Edge node.
nsxEdge2 (string) –
The hostname for the second NSX Edge node.
sddcManager (string) –
The hostname for SDDC Manager.
cloudBuilder (string) –
The hostname for VMware Cloud Builder.
kmsKeyId (string) –
The Amazon Web Services KMS key ID that Amazon Web Services Secrets Manager uses to encrypt secrets that are associated with the environment. These secrets contain the VCF credentials that are needed to install vCenter Server, NSX, and SDDC Manager.
By default, Amazon EVS use the Amazon Web Services Secrets Manager managed key
aws/secretsmanager
. You can also specify a customer managed key.serviceAccessSecurityGroups (dict) –
The security groups that allow traffic between the Amazon EVS control plane and your VPC for service access. If a security group is not specified, Amazon EVS uses the default security group in your account for service access.
securityGroups (list) –
The security groups that allow service access.
(string) –
credentials (list) –
The VCF credentials that are stored as Amazon EVS managed secrets in Amazon Web Services Secrets Manager.
Amazon EVS stores credentials that are needed to install vCenter Server, NSX, and SDDC Manager.
(dict) –
A managed secret that contains the credentials for installing vCenter Server, NSX, and SDDC Manager. During environment creation, the Amazon EVS control plane uses Amazon Web Services Secrets Manager to create, encrypt, validate, and store secrets. If you choose to delete your environment, Amazon EVS also deletes the secrets that are associated with your environment. Amazon EVS does not provide managed rotation of secrets. We recommend that you rotate secrets regularly to ensure that secrets are not long-lived.
secretArn (string) –
The Amazon Resource Name (ARN) of the secret.
Exceptions