Skip to main content

environments

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

Overview

Nameenvironments
TypeResource
Idaws.cloud9.environments

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
environmentsarrayInformation about the environments that are returned.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_environmentsselectregionGets information about Cloud9 development environments. Cloud9 is no longer available to new customers. Existing customers of Cloud9 can continue to use the service as normal. Learn more"
list_environmentsselectregionGets a list of Cloud9 development environment identifiers. Cloud9 is no longer available to new customers. Existing customers of Cloud9 can continue to use the service as normal. Learn more" Cloud9 is no longer available to new customers. Existing customers of Cloud9 can continue to use the service as normal. Learn more"
create_environment_ec2insertregion, name, instanceType, imageIdCreates an Cloud9 development environment, launches an Amazon Elastic Compute Cloud (Amazon EC2) instance, and then connects from the instance to the environment. Cloud9 is no longer available to new customers. Existing customers of Cloud9 can continue to use the service as normal. Learn more"
update_environmentupdateregion, environmentIdChanges the settings of an existing Cloud9 development environment. Cloud9 is no longer available to new customers. Existing customers of Cloud9 can continue to use the service as normal. Learn more"
delete_environmentdeleteregionDeletes an Cloud9 development environment. If an Amazon EC2 instance is connected to the environment, also terminates the instance. Cloud9 is no longer available to new customers. Existing customers of Cloud9 can continue to use the service as normal. Learn more"

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

Gets information about Cloud9 development environments. Cloud9 is no longer available to new customers. Existing customers of Cloud9 can continue to use the service as normal. Learn more"

SELECT
environments
FROM aws.cloud9.environments
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates an Cloud9 development environment, launches an Amazon Elastic Compute Cloud (Amazon EC2) instance, and then connects from the instance to the environment. Cloud9 is no longer available to new customers. Existing customers of Cloud9 can continue to use the service as normal. Learn more"

INSERT INTO aws.cloud9.environments (
name,
description,
clientRequestToken,
instanceType,
subnetId,
imageId,
automaticStopTimeMinutes,
ownerArn,
tags,
connectionType,
dryRun,
region
)
SELECT
'{{ name }}' /* required */,
'{{ description }}',
'{{ clientRequestToken }}',
'{{ instanceType }}' /* required */,
'{{ subnetId }}',
'{{ imageId }}' /* required */,
{{ automaticStopTimeMinutes }},
'{{ ownerArn }}',
'{{ tags }}',
'{{ connectionType }}',
{{ dryRun }},
'{{ region }}'
RETURNING
environment_id
;

UPDATE examples

Changes the settings of an existing Cloud9 development environment. Cloud9 is no longer available to new customers. Existing customers of Cloud9 can continue to use the service as normal. Learn more"

UPDATE aws.cloud9.environments
SET
environmentId = '{{ environmentId }}',
name = '{{ name }}',
description = '{{ description }}',
managedCredentialsAction = '{{ managedCredentialsAction }}'
WHERE
region = '{{ region }}' --required
AND environmentId = '{{ environmentId }}' --required;

DELETE examples

Deletes an Cloud9 development environment. If an Amazon EC2 instance is connected to the environment, also terminates the instance. Cloud9 is no longer available to new customers. Existing customers of Cloud9 can continue to use the service as normal. Learn more"

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