applications
Creates, updates, deletes or gets an application
resource or lists applications
in a region
Overview
Name | applications |
Type | Resource |
Description | The AWS::CodeDeploy::Application resource creates an AWS CodeDeploy application |
Id | aws.codedeploy.applications |
Fields
Name | Datatype | Description |
---|---|---|
application_name | string | A 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_platform | string | The compute platform that CodeDeploy deploys the application to. |
tags | array | The 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. |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | region |
delete_resource | DELETE | data__Identifier, region |
update_resource | UPDATE | data__Identifier, data__PatchDocument, region |
list_resources | SELECT | region |
get_resource | SELECT | data__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
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.codedeploy.applications (
ApplicationName,
ComputePlatform,
Tags,
region
)
SELECT
'{{ ApplicationName }}',
'{{ ComputePlatform }}',
'{{ Tags }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.codedeploy.applications (
ApplicationName,
ComputePlatform,
Tags,
region
)
SELECT
'{{ ApplicationName }}',
'{{ ComputePlatform }}',
'{{ Tags }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: application
props:
- name: ApplicationName
value: '{{ ApplicationName }}'
- name: ComputePlatform
value: '{{ ComputePlatform }}'
- name: Tags
value:
- Value: '{{ Value }}'
Key: '{{ Key }}'
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