Skip to main content

applications

Creates, updates, deletes or gets an application resource or lists applications in a region

Overview

Nameapplications
TypeResource
DescriptionThe AWS::CodeDeploy::Application resource creates an AWS CodeDeploy application
Idawscc.codedeploy.applications

Fields

NameDatatypeDescription
application_namestringA name for the application. If you don't specify a name, AWS CloudFormation generates a unique physical ID and uses that ID for the application name.
compute_platformstringThe compute platform that CodeDeploy deploys the application to.
tagsarrayThe metadata that you apply to CodeDeploy applications to help you organize and categorize them. Each tag consists of a key and an optional value, both of which you define.
regionstringAWS region.

For more information, see AWS::CodeDeploy::Application.

Methods

NameResourceAccessible byRequired Params
create_resourceapplicationsINSERTregion
delete_resourceapplicationsDELETEIdentifier, region
update_resourceapplicationsUPDATEIdentifier, PatchDocument, region
list_resourcesapplications_list_onlySELECTregion
get_resourceapplicationsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual application.

SELECT
region,
application_name,
compute_platform,
tags
FROM awscc.codedeploy.applications
WHERE
region = 'us-east-1' AND
Identifier = '{{ application_name }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.codedeploy.applications (
ApplicationName,
ComputePlatform,
Tags,
region
)
SELECT
'{{ application_name }}',
'{{ compute_platform }}',
'{{ tags }}',
'{{ region }}';

UPDATE example

Use the following StackQL query and manifest file to update a application resource, using stack-deploy.

/*+ update */
UPDATE awscc.codedeploy.applications
SET PatchDocument = string('{{ {
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ application_name }}';

DELETE example

/*+ delete */
DELETE FROM awscc.codedeploy.applications
WHERE
Identifier = '{{ application_name }}' AND
region = 'us-east-1';

Permissions

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

codedeploy:CreateApplication,
codedeploy:TagResource