Skip to main content

environment_templates

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

Overview

Nameenvironment_templates
TypeResource
Idaws.proton.environment_templates

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
namestringThe name of the environment template. (pattern: <code>^[0-9A-Za-z]+[0-9A-Za-z_-]*$</code>)
arnstringThe Amazon Resource Name (ARN) of the environment template.
created_atstring (date-time)The time when the environment template was created.
descriptionstringA description of the environment template.
display_namestringThe name of the environment template as displayed in the developer interface.
encryption_keystringThe customer provided encryption key for the environment template. (pattern: <code>^arn:(aws|aws-cn|aws-us-gov):[a-zA-Z0-9-]+:[a-zA-Z0-9-]:\d{12}:([\w+=,.@-]+[/:])[\w+=,.@-]+$</code>)
last_modified_atstring (date-time)The time when the environment template was last modified.
provisioningstringWhen included, indicates that the environment template is for customer provisioned and managed infrastructure. (CUSTOMER_MANAGED)
recommended_versionstringThe ID of the recommended version of the environment template. (pattern: <code>^(0|([1-9]{1}\d*)).(0|([1-9]{1}\d*))$</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_environment_templateselectregionGet detailed data for an environment template.
list_environment_templatesselectregionList environment templates.
create_environment_templateinsertregion, nameCreate an environment template for Proton. For more information, see Environment Templates in the Proton User Guide. You can create an environment template in one of the two following ways: Register and publish a standard environment template that instructs Proton to deploy and manage environment infrastructure. Register and publish a customer managed environment template that connects Proton to your existing provisioned infrastructure that you manage. Proton doesn't manage your existing provisioned infrastructure. To create an environment template for customer provisioned and managed infrastructure, include the provisioning parameter and set the value to CUSTOMER_MANAGED. For more information, see Register and publish an environment template in the Proton User Guide.
update_environment_templateupdateregion, nameUpdate an environment template.
delete_environment_templatedeleteregionIf no other major or minor versions of an environment template exist, delete the environment template.

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

Get detailed data for an environment template.

SELECT
name,
arn,
created_at,
description,
display_name,
encryption_key,
last_modified_at,
provisioning,
recommended_version
FROM aws.proton.environment_templates
WHERE region = '{{ region }}' -- required
;

INSERT examples

Create an environment template for Proton. For more information, see Environment Templates in the Proton User Guide. You can create an environment template in one of the two following ways: Register and publish a standard environment template that instructs Proton to deploy and manage environment infrastructure. Register and publish a customer managed environment template that connects Proton to your existing provisioned infrastructure that you manage. Proton doesn't manage your existing provisioned infrastructure. To create an environment template for customer provisioned and managed infrastructure, include the provisioning parameter and set the value to CUSTOMER_MANAGED. For more information, see Register and publish an environment template in the Proton User Guide.

INSERT INTO aws.proton.environment_templates (
description,
displayName,
encryptionKey,
name,
provisioning,
tags,
region
)
SELECT
'{{ description }}',
'{{ displayName }}',
'{{ encryptionKey }}',
'{{ name }}' /* required */,
'{{ provisioning }}',
'{{ tags }}',
'{{ region }}'
RETURNING
environment_template
;

UPDATE examples

Update an environment template.

UPDATE aws.proton.environment_templates
SET
description = '{{ description }}',
displayName = '{{ displayName }}',
name = '{{ name }}'
WHERE
region = '{{ region }}' --required
AND name = '{{ name }}' --required
RETURNING
environment_template;

DELETE examples

If no other major or minor versions of an environment template exist, delete the environment template.

DELETE FROM aws.proton.environment_templates
WHERE region = '{{ region }}' --required
;