applications
Creates, updates, deletes or gets an application
resource or lists applications
in a region
Overview
Name | applications |
Type | Resource |
Description | The AWS::ElasticBeanstalk::Application resource specifies an Elastic Beanstalk application. |
Id | aws.elasticbeanstalk.applications |
Fields
Name | Datatype | Description |
---|---|---|
application_name | string | A name for the Elastic Beanstalk application. If you don't specify a name, AWS CloudFormation generates a unique physical ID and uses that ID for the application name. |
description | string | Your description of the application. |
resource_lifecycle_config | object | Specifies an application resource lifecycle configuration to prevent your application from accumulating too many versions. |
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,
description,
resource_lifecycle_config
FROM aws.elasticbeanstalk.applications
WHERE region = 'us-east-1';
Gets all properties from an individual application
.
SELECT
region,
application_name,
description,
resource_lifecycle_config
FROM aws.elasticbeanstalk.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.elasticbeanstalk.applications (
ApplicationName,
Description,
ResourceLifecycleConfig,
region
)
SELECT
'{{ ApplicationName }}',
'{{ Description }}',
'{{ ResourceLifecycleConfig }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.elasticbeanstalk.applications (
ApplicationName,
Description,
ResourceLifecycleConfig,
region
)
SELECT
'{{ ApplicationName }}',
'{{ Description }}',
'{{ ResourceLifecycleConfig }}',
'{{ 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: Description
value: '{{ Description }}'
- name: ResourceLifecycleConfig
value:
ServiceRole: '{{ ServiceRole }}'
VersionLifecycleConfig:
MaxAgeRule:
DeleteSourceFromS3: '{{ DeleteSourceFromS3 }}'
Enabled: '{{ Enabled }}'
MaxAgeInDays: '{{ MaxAgeInDays }}'
MaxCountRule:
DeleteSourceFromS3: '{{ DeleteSourceFromS3 }}'
Enabled: '{{ Enabled }}'
MaxCount: '{{ MaxCount }}'
DELETE
example
/*+ delete */
DELETE FROM aws.elasticbeanstalk.applications
WHERE data__Identifier = '<ApplicationName>'
AND region = 'us-east-1';
Permissions
To operate on the applications
resource, the following permissions are required:
Create
elasticbeanstalk:CreateApplication
Read
elasticbeanstalk:DescribeApplications
Update
elasticbeanstalk:UpdateApplication,
elasticbeanstalk:UpdateApplicationResourceLifecycle
Delete
elasticbeanstalk:DeleteApplication
List
elasticbeanstalk:DescribeApplications