Amazon Elastic VMware Service

2025/06/04 - Amazon Elastic VMware Service - 11 new api methods

Changes  Amazon Elastic VMware Service (Amazon EVS) allows you to run VMware Cloud Foundation (VCF) directly within your Amazon VPC including simplified self-managed migration experience with guided workflow in AWS console or via AWS CLI, get full access to their VCF deployment and VCF license portability.

GetEnvironment (new) Link ¶

Returns a description of the specified environment.

See also: AWS API Documentation

Request Syntax

client.get_environment(
    environmentId='string'
)
type environmentId:

string

param environmentId:

[REQUIRED]

A unique ID for the environment.

rtype:

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 requested 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.

ListEnvironmentHosts (new) Link ¶

List the hosts within an environment.

See also: AWS API Documentation

Request Syntax

client.list_environment_hosts(
    nextToken='string',
    maxResults=123,
    environmentId='string'
)
type nextToken:

string

param nextToken:

A unique pagination token for each page. If nextToken is returned, there are more results available. Make the call again using the returned token with all other arguments unchanged to retrieve the next page. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error.

type maxResults:

integer

param maxResults:

The maximum number of results to return. If you specify MaxResults in the request, the response includes information up to the limit specified.

type environmentId:

string

param environmentId:

[REQUIRED]

A unique ID for the environment.

rtype:

dict

returns:

Response Syntax

{
    'nextToken': 'string',
    'environmentHosts': [
        {
            'hostName': 'string',
            'ipAddress': 'string',
            'keyName': 'string',
            'instanceType': 'i4i.metal',
            'placementGroupId': 'string',
            'dedicatedHostId': 'string',
            'createdAt': datetime(2015, 1, 1),
            'modifiedAt': datetime(2015, 1, 1),
            'hostState': 'CREATING'|'CREATED'|'UPDATING'|'DELETING'|'DELETED'|'CREATE_FAILED'|'UPDATE_FAILED',
            'stateDetails': 'string',
            'ec2InstanceId': 'string',
            'networkInterfaces': [
                {
                    'networkInterfaceId': 'string'
                },
            ]
        },
    ]
}

Response Structure

  • (dict) --

    • nextToken (string) --

      A unique pagination token for next page results. Make the call again using this token to retrieve the next page.

    • environmentHosts (list) --

      A list of hosts in the environment.

      • (dict) --

        An ESXi host that runs on an Amazon EC2 bare metal instance. Four hosts are created in an Amazon EVS environment during environment creation. You can add hosts to an environment using the CreateEnvironmentHost operation. Amazon EVS supports 4-16 hosts per environment.

        • hostName (string) --

          The DNS hostname of the host. DNS hostnames for hosts must be unique across Amazon EVS environments and within VCF.

        • ipAddress (string) --

          The IP address of the host.

        • keyName (string) --

          The name of the SSH key that is used to access the host.

        • instanceType (string) --

          The EC2 instance type of 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.

        • createdAt (datetime) --

          The date and time that the host was created.

        • modifiedAt (datetime) --

          The date and time that the host was modified.

        • hostState (string) --

          The state of the host.

        • stateDetails (string) --

          A detailed description of the hostState of a host.

        • ec2InstanceId (string) --

          The unique ID of the EC2 instance that represents the host.

        • networkInterfaces (list) --

          The elastic network interfaces that are attached to the host.

          • (dict) --

            An elastic network interface (ENI) that connects hosts to the VLAN subnets. Amazon EVS provisions two identically configured ENIs in the VMkernel management subnet during host creation. One ENI is active, and the other is in standby mode for automatic switchover during a failure scenario.

            • networkInterfaceId (string) --

              The unique ID of the elastic network interface.

DeleteEnvironmentHost (new) Link ¶

Deletes a host from an Amazon EVS environment.

See also: AWS API Documentation

Request Syntax

client.delete_environment_host(
    clientToken='string',
    environmentId='string',
    hostName='string'
)
type clientToken:

string

param clientToken:

A unique, case-sensitive identifier that you provide to ensure the idempotency of the host deletion 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.

type environmentId:

string

param environmentId:

[REQUIRED]

A unique ID for the host's environment.

type hostName:

string

param hostName:

[REQUIRED]

The DNS hostname associated with the host to be deleted.

rtype:

dict

returns:

Response Syntax

{
    'environmentSummary': {
        'environmentId': 'string',
        'environmentName': 'string',
        'vcfVersion': 'VCF-5.2.1',
        'environmentStatus': 'PASSED'|'FAILED'|'UNKNOWN',
        'environmentState': 'CREATING'|'CREATED'|'DELETING'|'DELETED'|'CREATE_FAILED',
        'createdAt': datetime(2015, 1, 1),
        'modifiedAt': datetime(2015, 1, 1),
        'environmentArn': 'string'
    },
    'host': {
        'hostName': 'string',
        'ipAddress': 'string',
        'keyName': 'string',
        'instanceType': 'i4i.metal',
        'placementGroupId': 'string',
        'dedicatedHostId': 'string',
        'createdAt': datetime(2015, 1, 1),
        'modifiedAt': datetime(2015, 1, 1),
        'hostState': 'CREATING'|'CREATED'|'UPDATING'|'DELETING'|'DELETED'|'CREATE_FAILED'|'UPDATE_FAILED',
        'stateDetails': 'string',
        'ec2InstanceId': 'string',
        'networkInterfaces': [
            {
                'networkInterfaceId': 'string'
            },
        ]
    }
}

Response Structure

  • (dict) --

    • environmentSummary (dict) --

      A summary of the environment that the host was deleted from.

      • environmentId (string) --

        A unique ID for the environment.

      • environmentName (string) --

        The name of the environment.

      • vcfVersion (string) --

        The VCF version of the environment.

      • environmentStatus (string) --

        Reports impaired functionality that stems from issues internal to the environment, such as impaired reachability.

      • environmentState (string) --

        The state 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.

    • host (dict) --

      A description of the deleted host.

      • hostName (string) --

        The DNS hostname of the host. DNS hostnames for hosts must be unique across Amazon EVS environments and within VCF.

      • ipAddress (string) --

        The IP address of the host.

      • keyName (string) --

        The name of the SSH key that is used to access the host.

      • instanceType (string) --

        The EC2 instance type of 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.

      • createdAt (datetime) --

        The date and time that the host was created.

      • modifiedAt (datetime) --

        The date and time that the host was modified.

      • hostState (string) --

        The state of the host.

      • stateDetails (string) --

        A detailed description of the hostState of a host.

      • ec2InstanceId (string) --

        The unique ID of the EC2 instance that represents the host.

      • networkInterfaces (list) --

        The elastic network interfaces that are attached to the host.

        • (dict) --

          An elastic network interface (ENI) that connects hosts to the VLAN subnets. Amazon EVS provisions two identically configured ENIs in the VMkernel management subnet during host creation. One ENI is active, and the other is in standby mode for automatic switchover during a failure scenario.

          • networkInterfaceId (string) --

            The unique ID of the elastic network interface.

ListEnvironmentVlans (new) Link ¶

Lists environment VLANs that are associated with the specified environment.

See also: AWS API Documentation

Request Syntax

client.list_environment_vlans(
    nextToken='string',
    maxResults=123,
    environmentId='string'
)
type nextToken:

string

param nextToken:

A unique pagination token for each page. If nextToken is returned, there are more results available. Make the call again using the returned token with all other arguments unchanged to retrieve the next page. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error.

type maxResults:

integer

param maxResults:

The maximum number of results to return. If you specify MaxResults in the request, the response includes information up to the limit specified.

type environmentId:

string

param environmentId:

[REQUIRED]

A unique ID for the environment.

rtype:

dict

returns:

Response Syntax

{
    'nextToken': 'string',
    'environmentVlans': [
        {
            'vlanId': 123,
            'cidr': 'string',
            'availabilityZone': 'string',
            'functionName': 'string',
            'subnetId': 'string',
            'createdAt': datetime(2015, 1, 1),
            'modifiedAt': datetime(2015, 1, 1),
            'vlanState': 'CREATING'|'CREATED'|'DELETING'|'DELETED'|'CREATE_FAILED',
            'stateDetails': 'string'
        },
    ]
}

Response Structure

  • (dict) --

    • nextToken (string) --

      A unique pagination token for next page results. Make the call again using this token to retrieve the next page.

    • environmentVlans (list) --

      A list of VLANs that are associated with the specified environment.

      • (dict) --

        The VLANs that Amazon EVS creates during environment creation.

        • vlanId (integer) --

          The unique ID of the VLAN.

        • cidr (string) --

          The CIDR block of the VLAN.

        • availabilityZone (string) --

          The availability zone of the VLAN.

        • functionName (string) --

          The VMware VCF traffic type that is carried over the VLAN. For example, a VLAN with a functionName of hcx is being used to carry VMware HCX traffic.

        • subnetId (string) --

          The unique ID of the VLAN subnet.

        • createdAt (datetime) --

          The date and time that the VLAN was created.

        • modifiedAt (datetime) --

          The date and time that the VLAN was modified.

        • vlanState (string) --

          The state of the VLAN.

        • stateDetails (string) --

          The state details of the VLAN.

ListTagsForResource (new) Link ¶

Lists the tags for an Amazon EVS resource.

See also: AWS API Documentation

Request Syntax

client.list_tags_for_resource(
    resourceArn='string'
)
type resourceArn:

string

param resourceArn:

[REQUIRED]

The Amazon Resource Name (ARN) that identifies the resource to list tags for.

rtype:

dict

returns:

Response Syntax

{
    'tags': {
        'string': 'string'
    }
}

Response Structure

  • (dict) --

    • tags (dict) --

      The tags for the resource.

      • (string) --

        • (string) --

ListEnvironments (new) Link ¶

Lists the Amazon EVS environments in your Amazon Web Services account in the specified Amazon Web Services Region.

See also: AWS API Documentation

Request Syntax

client.list_environments(
    nextToken='string',
    maxResults=123,
    state=[
        'CREATING'|'CREATED'|'DELETING'|'DELETED'|'CREATE_FAILED',
    ]
)
type nextToken:

string

param nextToken:

A unique pagination token for each page. If nextToken is returned, there are more results available. Make the call again using the returned token with all other arguments unchanged to retrieve the next page. Each pagination token expires after 24 hours. Using an expired pagination token will return an HTTP 400 InvalidToken error.

type maxResults:

integer

param maxResults:

The maximum number of results to return. If you specify MaxResults in the request, the response includes information up to the limit specified.

type state:

list

param state:

The state of an environment. Used to filter response results to return only environments with the specified environmentState.

  • (string) --

rtype:

dict

returns:

Response Syntax

{
    'nextToken': 'string',
    'environmentSummaries': [
        {
            'environmentId': 'string',
            'environmentName': 'string',
            'vcfVersion': 'VCF-5.2.1',
            'environmentStatus': 'PASSED'|'FAILED'|'UNKNOWN',
            'environmentState': 'CREATING'|'CREATED'|'DELETING'|'DELETED'|'CREATE_FAILED',
            'createdAt': datetime(2015, 1, 1),
            'modifiedAt': datetime(2015, 1, 1),
            'environmentArn': 'string'
        },
    ]
}

Response Structure

  • (dict) --

    • nextToken (string) --

      A unique pagination token for next page results. Make the call again using this token to retrieve the next page.

    • environmentSummaries (list) --

      A list of environments with summarized environment details.

      • (dict) --

        A list of environments with summarized environment details.

        • environmentId (string) --

          A unique ID for the environment.

        • environmentName (string) --

          The name of the environment.

        • vcfVersion (string) --

          The VCF version of the environment.

        • environmentStatus (string) --

          Reports impaired functionality that stems from issues internal to the environment, such as impaired reachability.

        • environmentState (string) --

          The state 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.

TagResource (new) Link ¶

Associates the specified tags to an Amazon EVS resource with the specified resourceArn. If existing tags on a resource are not specified in the request parameters, they aren't changed. When a resource is deleted, the tags associated with that resource are also deleted. Tags that you create for Amazon EVS resources don't propagate to any other resources associated with the environment. For example, if you tag an environment with this operation, that tag doesn't automatically propagate to the VLAN subnets and hosts associated with the environment.

See also: AWS API Documentation

Request Syntax

client.tag_resource(
    resourceArn='string',
    tags={
        'string': 'string'
    }
)
type resourceArn:

string

param resourceArn:

[REQUIRED]

The Amazon Resource Name (ARN) of the resource to add tags to.

type tags:

dict

param tags:

[REQUIRED]

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 environment or Amazon Web Services resources.

  • (string) --

    • (string) --

rtype:

dict

returns:

Response Syntax

{}

Response Structure

  • (dict) --

UntagResource (new) Link ¶

Deletes specified tags from an Amazon EVS resource.

See also: AWS API Documentation

Request Syntax

client.untag_resource(
    resourceArn='string',
    tagKeys=[
        'string',
    ]
)
type resourceArn:

string

param resourceArn:

[REQUIRED]

The Amazon Resource Name (ARN) of the resource to delete tags from.

type tagKeys:

list

param tagKeys:

[REQUIRED]

The keys of the tags to delete.

  • (string) --

rtype:

dict

returns:

Response Syntax

{}

Response Structure

  • (dict) --

DeleteEnvironment (new) Link ¶

Deletes 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. Other associated Amazon Web Services resources are not deleted. These resources may continue to incur costs.

See also: AWS API Documentation

Request Syntax

client.delete_environment(
    clientToken='string',
    environmentId='string'
)
type clientToken:

string

param clientToken:

A unique, case-sensitive identifier that you provide to ensure the idempotency of the environment deletion 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.

type environmentId:

string

param environmentId:

[REQUIRED]

A unique ID associated with the environment to be deleted.

rtype:

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 deleted 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.

CreateEnvironment (new) Link ¶

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.

See also: AWS API Documentation

Request Syntax

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'
)
type clientToken:

string

param clientToken:

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.

type environmentName:

string

param environmentName:

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.

type kmsKeyId:

string

param kmsKeyId:

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.

type tags:

dict

param tags:

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) --

type serviceAccessSecurityGroups:

dict

param serviceAccessSecurityGroups:

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) --

type vpcId:

string

param vpcId:

[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.

type serviceAccessSubnetId:

string

param serviceAccessSubnetId:

[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.

type vcfVersion:

string

param vcfVersion:

[REQUIRED]

The VCF version to use for the environment. Amazon EVS only supports VCF version 5.2.1 at this time.

type termsAccepted:

boolean

param termsAccepted:

[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.

type licenseInfo:

list

param licenseInfo:

[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.

type initialVlans:

dict

param initialVlans:

[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.

type hosts:

list

param hosts:

[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.

    • 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.

type connectivityInfo:

dict

param connectivityInfo:

[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) --

type vcfHostnames:

dict

param vcfHostnames:

[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.

type siteId:

string

param siteId:

[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.

rtype:

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.

CreateEnvironmentHost (new) Link ¶

Creates an ESXi host and adds it to an Amazon EVS environment. Amazon EVS supports 4-16 hosts per environment.

This action can only be used after the Amazon EVS environment is deployed. All Amazon EVS hosts are created with the latest AMI release version for the respective VCF version of the environment.

You can use the dedicatedHostId parameter to specify an Amazon EC2 Dedicated Host for ESXi host creation.

You can use the placementGroupId parameter to specify a cluster or partition placement group to launch EC2 instances into.

See also: AWS API Documentation

Request Syntax

client.create_environment_host(
    clientToken='string',
    environmentId='string',
    host={
        'hostName': 'string',
        'keyName': 'string',
        'instanceType': 'i4i.metal',
        'placementGroupId': 'string',
        'dedicatedHostId': 'string'
    }
)
type clientToken:

string

param clientToken:

A unique, case-sensitive identifier that you provide to ensure the idempotency of the host 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.

type environmentId:

string

param environmentId:

[REQUIRED]

A unique ID for the environment that the host is added to.

type host:

dict

param host:

[REQUIRED]

The host that is created and added to the environment.

  • 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.

rtype:

dict

returns:

Response Syntax

{
    'environmentSummary': {
        'environmentId': 'string',
        'environmentName': 'string',
        'vcfVersion': 'VCF-5.2.1',
        'environmentStatus': 'PASSED'|'FAILED'|'UNKNOWN',
        'environmentState': 'CREATING'|'CREATED'|'DELETING'|'DELETED'|'CREATE_FAILED',
        'createdAt': datetime(2015, 1, 1),
        'modifiedAt': datetime(2015, 1, 1),
        'environmentArn': 'string'
    },
    'host': {
        'hostName': 'string',
        'ipAddress': 'string',
        'keyName': 'string',
        'instanceType': 'i4i.metal',
        'placementGroupId': 'string',
        'dedicatedHostId': 'string',
        'createdAt': datetime(2015, 1, 1),
        'modifiedAt': datetime(2015, 1, 1),
        'hostState': 'CREATING'|'CREATED'|'UPDATING'|'DELETING'|'DELETED'|'CREATE_FAILED'|'UPDATE_FAILED',
        'stateDetails': 'string',
        'ec2InstanceId': 'string',
        'networkInterfaces': [
            {
                'networkInterfaceId': 'string'
            },
        ]
    }
}

Response Structure

  • (dict) --

    • environmentSummary (dict) --

      A summary of the environment that the host is created in.

      • environmentId (string) --

        A unique ID for the environment.

      • environmentName (string) --

        The name of the environment.

      • vcfVersion (string) --

        The VCF version of the environment.

      • environmentStatus (string) --

        Reports impaired functionality that stems from issues internal to the environment, such as impaired reachability.

      • environmentState (string) --

        The state 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.

    • host (dict) --

      A description of the created host.

      • hostName (string) --

        The DNS hostname of the host. DNS hostnames for hosts must be unique across Amazon EVS environments and within VCF.

      • ipAddress (string) --

        The IP address of the host.

      • keyName (string) --

        The name of the SSH key that is used to access the host.

      • instanceType (string) --

        The EC2 instance type of 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.

      • createdAt (datetime) --

        The date and time that the host was created.

      • modifiedAt (datetime) --

        The date and time that the host was modified.

      • hostState (string) --

        The state of the host.

      • stateDetails (string) --

        A detailed description of the hostState of a host.

      • ec2InstanceId (string) --

        The unique ID of the EC2 instance that represents the host.

      • networkInterfaces (list) --

        The elastic network interfaces that are attached to the host.

        • (dict) --

          An elastic network interface (ENI) that connects hosts to the VLAN subnets. Amazon EVS provisions two identically configured ENIs in the VMkernel management subnet during host creation. One ENI is active, and the other is in standby mode for automatic switchover during a failure scenario.

          • networkInterfaceId (string) --

            The unique ID of the elastic network interface.