Skip to main content

environments

Creates, updates, deletes or gets an environment resource or lists environments in a region

Overview

Nameenvironments
TypeResource
DescriptionAn environment created within the EVS service
Idawscc.evs.environments

Fields

NameDatatypeDescription
environment_namestringThe name of an EVS environment
kms_key_idstring
vpc_idstring
service_access_subnet_idstring
vcf_versionstring
terms_acceptedboolean
license_infoobjectThe license information for an EVS environment
initial_vlansobjectThe initial Vlan configuration only required upon creation. Modification after creation will have no effect
hostsarrayThe initial hosts for environment only required upon creation. Modification after creation will have no effect
connectivity_infoobject
vcf_hostnamesobject
site_idstring
environment_idstring
environment_arnstring
environment_statestring
state_detailsstring
checksarray
credentialsarray
service_access_security_groupsobject
tagsarrayAn array of key-value pairs to apply to this resource.
created_atstring
regionstringAWS region.

For more information, see AWS::EVS::Environment.

Methods

NameAccessible byRequired Params
create_resourceINSERTVpcId, ServiceAccessSubnetId, VcfVersion, TermsAccepted, LicenseInfo, ConnectivityInfo, VcfHostnames, SiteId, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all properties from an individual environment.

SELECT
region,
environment_name,
kms_key_id,
vpc_id,
service_access_subnet_id,
vcf_version,
terms_accepted,
license_info,
initial_vlans,
hosts,
connectivity_info,
vcf_hostnames,
site_id,
environment_id,
environment_arn,
environment_state,
state_details,
checks,
credentials,
service_access_security_groups,
tags,
created_at,
modified_at
FROM awscc.evs.environments
WHERE region = 'us-east-1' AND data__Identifier = '<EnvironmentId>';

INSERT example

Use the following StackQL query and manifest file to create a new environment resource, using stack-deploy.

/*+ create */
INSERT INTO awscc.evs.environments (
VpcId,
ServiceAccessSubnetId,
VcfVersion,
TermsAccepted,
LicenseInfo,
ConnectivityInfo,
VcfHostnames,
SiteId,
region
)
SELECT
'{{ VpcId }}',
'{{ ServiceAccessSubnetId }}',
'{{ VcfVersion }}',
'{{ TermsAccepted }}',
'{{ LicenseInfo }}',
'{{ ConnectivityInfo }}',
'{{ VcfHostnames }}',
'{{ SiteId }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM awscc.evs.environments
WHERE data__Identifier = '<EnvironmentId>'
AND region = 'us-east-1';

Permissions

To operate on the environments resource, the following permissions are required:

Create

evs:CreateEnvironment,
evs:GetEnvironment,
evs:TagResource,
evs:ListTagsForResource,
iam:CreateServiceLinkedRole,
support:DescribeServices,
support:DescribeSupportLevel,
servicequotas:GetServiceQuota,
servicequotas:ListServiceQuotas,
ec2:CreateNetworkInterface,
ec2:AllocateHosts,
ec2:ModifyNetworkInterfaceAttribute,
ec2:DeleteNetworkInterface,
ec2:RunInstances,
ec2:CreatePlacementGroup,
ec2:CreateSubnet,
ec2:CreateTags,
secretsmanager:GetRandomPassword,
secretsmanager:CreateSecret,
secretsmanager:GetSecretValue,
secretsmanager:BatchGetSecretValue,
secretsmanager:TagResource,
kms:ListKeysForService,
kms:DescribeKey,
secretsmanager:UpdateSecret,
ec2:DeleteVolume,
ec2:DetachVolume

Read

evs:GetEnvironment,
evs:ListTagsForResource

Update

evs:TagResource,
evs:UntagResource,
evs:ListTagsForResource,
evs:GetEnvironment

Delete

evs:DeleteEnvironment,
evs:GetEnvironment,
evs:UntagResource,
ec2:TerminateInstances,
ec2:ReleaseHosts,
ec2:DescribeHosts,
ec2:DeleteSubnet,
ec2:DetachNetworkInterface,
ec2:DeletePlacementGroup,
secretsmanager:DeleteSecret

List

evs:ListEnvironments