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
Idaws.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.

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 applications in a region.

SELECT
region,
application_name,
compute_platform,
tags
FROM aws.codedeploy.applications
WHERE region = 'us-east-1';

Gets all properties from an individual application.

SELECT
region,
application_name,
compute_platform,
tags
FROM aws.codedeploy.applications
WHERE region = 'us-east-1' AND data__Identifier = '<ApplicationName>';

INSERT example

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

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

DELETE example

/*+ delete */
DELETE FROM aws.codedeploy.applications
WHERE data__Identifier = '<ApplicationName>'
AND region = 'us-east-1';

Permissions

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

Create

codedeploy:CreateApplication,
codedeploy:TagResource

Read

codedeploy:GetApplication,
codedeploy:ListTagsForResource

Delete

codedeploy:GetApplication,
codedeploy:DeleteApplication

Update

codedeploy:TagResource,
codedeploy:UntagResource

List

codedeploy:ListApplications