Skip to main content

environments

Creates, updates, deletes, gets or lists an environments resource.

Overview

Nameenvironments
TypeResource
Idaws.evs.environments

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
checksarrayA check on the environment to identify connector health.
connectivity_infoobjectThe 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.
created_atstring (date-time)The date and time that the environment was created.
credentialsarrayThe 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.
environment_arnstringThe Amazon Resource Name (ARN) that is associated with the environment. (pattern: <code>arn:aws:evs:[a-z]{2}-[a-z]+-[0-9]:[0-9]{12}:environment/[a-zA-Z0-9_-]+</code>)
environment_idstringThe unique ID for the environment. (pattern: <code>(env-[a-zA-Z0-9]{10})</code>)
environment_namestringThe name of the environment. (pattern: <code>[a-zA-Z0-9_-]+</code>)
environment_statestringThe state of an environment. (CREATING, CREATED, DELETING, DELETED, CREATE_FAILED)
environment_statusstringReports impaired functionality that stems from issues internal to the environment, such as impaired reachability. (PASSED, FAILED, UNKNOWN)
kms_key_idstringThe 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.
license_infoarrayThe 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. The VCF solution key must meet minimum core requirements, and the vSAN license key must meet minimum capacity requirements for your selected instance type. For information about minimum license requirements, see the VCF subscriptions section in the Amazon EVS User Guide.
modified_atstring (date-time)The date and time that the environment was modified.
service_access_security_groupsobjectThe 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.
service_access_subnet_idstringThe 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. (pattern: <code>subnet-[a-f0-9]{8}([a-f0-9]{9})?</code>)
site_idstringThe 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.
state_detailsstringA detailed description of the environmentState of an environment.
terms_acceptedbooleanCustomer confirmation that the customer has purchased and will continue to maintain the required number of VCF software licenses to cover all physical processor cores in the Amazon EVS environment. Information about your VCF software in Amazon EVS will be shared with Broadcom to verify license compliance. Amazon EVS does not validate license keys. To validate license keys, visit the Broadcom support portal.
vcf_hostnamesobjectThe 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.
vcf_versionstringThe VCF version of the environment. (VCF-5.2.1, VCF-5.2.2, SELF_DEPLOYED)
vpc_idstringThe VPC associated with the environment. (pattern: <code>vpc-[a-f0-9]{8}([a-f0-9]{9})?</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_environmentselectregionReturns a description of the specified environment.
list_environmentsselectregionLists the Amazon EVS environments in your Amazon Web Services account in the specified Amazon Web Services Region.
create_environmentinsertregion, vpcId, serviceAccessSubnetId, vcfVersion, termsAccepted, initialVlansCreates an Amazon EVS environment that runs VCF software, such as SDDC Manager, NSX Manager, and vCenter Server. When you specify SELF_DEPLOYED for vcfVersion, Amazon EVS provisions only the VLAN subnets; no hosts are added and no VCF installation is performed. After the environment is created, you can add hosts with CreateEnvironmentHost and install VCF yourself. The licenseInfo, hosts, vcfHostnames, siteId, and connectivityInfo parameters are not supported in this mode. When you specify any other VCF version, Amazon EVS installs and configures VCF for you. For more information, see Self-deployed mode in the Amazon EVS User Guide. When Amazon EVS installs VCF, the default ESX version for the selected VCF version will be used. After a host is added with a specific ESX version, it can only be upgraded using vCenter Lifecycle Manager. You cannot use the dedicatedHostId and placementGroupId parameters together in the same CreateEnvironment action. This results in a ValidationException response.
create_entitlementinsertregion, environmentId, connectorId, entitlementType, vmIdsCreates a Windows Server License entitlement for virtual machines in an Amazon EVS environment using the provided vCenter Server connector. This is an asynchronous operation. Amazon EVS validates the specified virtual machines before starting usage tracking.
associate_eip_to_vlanupdateregion, environmentId, vlanName, allocationIdAssociates an Elastic IP address with a public HCX VLAN. This operation is only allowed for public HCX VLANs at this time.
disassociate_eip_from_vlanupdateregion, environmentId, vlanName, associationIdDisassociates an Elastic IP address from a public HCX VLAN. This operation is only allowed for public HCX VLANs at this time.
delete_entitlementdeleteregionDeletes a Windows Server License entitlement for virtual machines in an Amazon EVS environment. Deleting an entitlement stops usage tracking for the specified virtual machines.
delete_environmentdeleteregionDeletes an Amazon EVS environment. Amazon EVS environments will only be enabled for deletion once the hosts are deleted. You can delete hosts using the DeleteEnvironmentHost action. Environment deletion also deletes the associated Amazon EVS VLAN subnets and Amazon Web Services Secrets Manager secrets that Amazon EVS created. Amazon Web Services resources that you create are not deleted. These resources may continue to incur costs.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Returns a description of the specified environment.

SELECT
checks,
connectivity_info,
created_at,
credentials,
environment_arn,
environment_id,
environment_name,
environment_state,
environment_status,
kms_key_id,
license_info,
modified_at,
service_access_security_groups,
service_access_subnet_id,
site_id,
state_details,
terms_accepted,
vcf_hostnames,
vcf_version,
vpc_id
FROM aws.evs.environments
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates an Amazon EVS environment that runs VCF software, such as SDDC Manager, NSX Manager, and vCenter Server. When you specify SELF_DEPLOYED for vcfVersion, Amazon EVS provisions only the VLAN subnets; no hosts are added and no VCF installation is performed. After the environment is created, you can add hosts with CreateEnvironmentHost and install VCF yourself. The licenseInfo, hosts, vcfHostnames, siteId, and connectivityInfo parameters are not supported in this mode. When you specify any other VCF version, Amazon EVS installs and configures VCF for you. For more information, see Self-deployed mode in the Amazon EVS User Guide. When Amazon EVS installs VCF, the default ESX version for the selected VCF version will be used. After a host is added with a specific ESX version, it can only be upgraded using vCenter Lifecycle Manager. You cannot use the dedicatedHostId and placementGroupId parameters together in the same CreateEnvironment action. This results in a ValidationException response.

INSERT INTO aws.evs.environments (
clientToken,
environmentName,
kmsKeyId,
tags,
serviceAccessSecurityGroups,
vpcId,
serviceAccessSubnetId,
vcfVersion,
termsAccepted,
initialVlans,
connectivityInfo,
licenseInfo,
hosts,
vcfHostnames,
siteId,
region
)
SELECT
'{{ clientToken }}',
'{{ environmentName }}',
'{{ kmsKeyId }}',
'{{ tags }}',
'{{ serviceAccessSecurityGroups }}',
'{{ vpcId }}' /* required */,
'{{ serviceAccessSubnetId }}' /* required */,
'{{ vcfVersion }}' /* required */,
{{ termsAccepted }} /* required */,
'{{ initialVlans }}' /* required */,
'{{ connectivityInfo }}',
'{{ licenseInfo }}',
'{{ hosts }}',
'{{ vcfHostnames }}',
'{{ siteId }}',
'{{ region }}'
RETURNING
environment
;

UPDATE examples

Associates an Elastic IP address with a public HCX VLAN. This operation is only allowed for public HCX VLANs at this time.

UPDATE aws.evs.environments
SET
clientToken = '{{ clientToken }}',
environmentId = '{{ environmentId }}',
vlanName = '{{ vlanName }}',
allocationId = '{{ allocationId }}'
WHERE
region = '{{ region }}' --required
AND environmentId = '{{ environmentId }}' --required
AND vlanName = '{{ vlanName }}' --required
AND allocationId = '{{ allocationId }}' --required
RETURNING
vlan;

DELETE examples

Deletes a Windows Server License entitlement for virtual machines in an Amazon EVS environment. Deleting an entitlement stops usage tracking for the specified virtual machines.

DELETE FROM aws.evs.environments
WHERE region = '{{ region }}' --required
;