Skip to main content

environment_templates

Creates, updates, deletes or gets an environment_template resource or lists environment_templates in a region

Overview

Nameenvironment_templates
TypeResource
DescriptionDefinition of AWS::Proton::EnvironmentTemplate Resource Type
Idaws.proton.environment_templates

Fields

NameDatatypeDescription
arnstring

The Amazon Resource Name (ARN) of the environment template.

descriptionstring

A description of the environment template.

display_namestring

The environment template name as displayed in the developer interface.

encryption_keystring

A customer provided encryption key that Proton uses to encrypt data.

namestring
provisioningstring
tagsarray

An optional list of metadata items that you can associate with the Proton environment template. A tag is a key-value pair.


For more information, see Proton resources and tagging in the
Proton User Guide.

regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTregion
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all environment_templates in a region.

SELECT
region,
arn,
description,
display_name,
encryption_key,
name,
provisioning,
tags
FROM aws.proton.environment_templates
WHERE region = 'us-east-1';

Gets all properties from an individual environment_template.

SELECT
region,
arn,
description,
display_name,
encryption_key,
name,
provisioning,
tags
FROM aws.proton.environment_templates
WHERE region = 'us-east-1' AND data__Identifier = '<Arn>';

INSERT example

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

/*+ create */
INSERT INTO aws.proton.environment_templates (
Description,
DisplayName,
EncryptionKey,
Name,
Provisioning,
Tags,
region
)
SELECT
'{{ Description }}',
'{{ DisplayName }}',
'{{ EncryptionKey }}',
'{{ Name }}',
'{{ Provisioning }}',
'{{ Tags }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.proton.environment_templates
WHERE data__Identifier = '<Arn>'
AND region = 'us-east-1';

Permissions

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

Create

proton:CreateEnvironmentTemplate,
proton:TagResource,
proton:GetEnvironmentTemplate,
kms:*

Read

proton:GetEnvironmentTemplate,
proton:ListTagsForResource,
kms:*

Update

proton:CreateEnvironmentTemplate,
proton:ListTagsForResource,
proton:TagResource,
proton:UntagResource,
proton:UpdateEnvironmentTemplate,
proton:GetEnvironmentTemplate,
kms:*

Delete

proton:DeleteEnvironmentTemplate,
proton:GetEnvironmentTemplate,
kms:*

List

proton:ListEnvironmentTemplates