Skip to main content

applications

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

Overview

Nameapplications
TypeResource
DescriptionResource schema for AWS::ApplicationInsights::Application
Idaws.applicationinsights.applications

Fields

NameDatatypeDescription
resource_group_namestringThe name of the resource group.
application_arnstringThe ARN of the ApplicationInsights application.
cwe_monitor_enabledbooleanIndicates whether Application Insights can listen to CloudWatch events for the application resources.
ops_center_enabledbooleanWhen set to true, creates opsItems for any problems detected on an application.
ops_item_sns_topic_arnstringThe SNS topic provided to Application Insights that is associated to the created opsItem.
sns_notification_arnstringApplication Insights sends notifications to this SNS topic whenever there is a problem update in the associated application.
tagsarrayThe tags of Application Insights application.
custom_componentsarrayThe custom grouped components.
log_pattern_setsarrayThe log pattern sets.
auto_configuration_enabledbooleanIf set to true, application will be configured with recommended monitoring configuration.
component_monitoring_settingsarrayThe monitoring settings of the components.
grouping_typestringThe grouping type of the application
attach_missing_permissionbooleanIf set to true, the managed policies for SSM and CW will be attached to the instance roles if they are missing
regionstringAWS region.

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

Methods

NameAccessible byRequired Params
create_resourceINSERTResourceGroupName, region
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,
resource_group_name,
application_arn,
cwe_monitor_enabled,
ops_center_enabled,
ops_item_sns_topic_arn,
sns_notification_arn,
tags,
custom_components,
log_pattern_sets,
auto_configuration_enabled,
component_monitoring_settings,
grouping_type,
attach_missing_permission
FROM aws.applicationinsights.applications
WHERE region = 'us-east-1';

Gets all properties from an individual application.

SELECT
region,
resource_group_name,
application_arn,
cwe_monitor_enabled,
ops_center_enabled,
ops_item_sns_topic_arn,
sns_notification_arn,
tags,
custom_components,
log_pattern_sets,
auto_configuration_enabled,
component_monitoring_settings,
grouping_type,
attach_missing_permission
FROM aws.applicationinsights.applications
WHERE region = 'us-east-1' AND data__Identifier = '<ApplicationARN>';

INSERT example

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

/*+ create */
INSERT INTO aws.applicationinsights.applications (
ResourceGroupName,
region
)
SELECT
'{{ ResourceGroupName }}',
'{{ region }}';

DELETE example

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

Permissions

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

Create

applicationinsights:CreateApplication,
applicationinsights:DescribeApplication,
applicationinsights:CreateComponent,
applicationinsights:DescribeComponent,
applicationinsights:CreateLogPattern,
applicationinsights:DescribeLogPattern,
applicationinsights:DescribeComponentConfigurationRecommendation,
applicationinsights:UpdateComponentConfiguration,
applicationinsights:ListComponents,
applicationinsights:TagResource,
ec2:DescribeInstances,
ec2:DescribeVolumes,
rds:DescribeDBInstances,
rds:DescribeDBClusters,
sqs:ListQueues,
elasticloadbalancing:DescribeLoadBalancers,
elasticloadbalancing:DescribeTargetGroups,
elasticloadbalancing:DescribeTargetHealth,
autoscaling:DescribeAutoScalingGroups,
lambda:ListFunctions,
dynamodb:ListTables,
s3:ListAllMyBuckets,
sns:ListTopics,
states:ListStateMachines,
apigateway:GET,
ecs:ListClusters,
ecs:DescribeTaskDefinition,
ecs:ListServices,
ecs:ListTasks,
eks:ListClusters,
eks:ListNodegroups,
fsx:DescribeFileSystems,
logs:DescribeLogGroups,
elasticfilesystem:DescribeFileSystems

Read

applicationinsights:DescribeApplication,
applicationinsights:ListTagsForResource,
applicationinsights:DescribeComponent,
applicationinsights:ListComponents,
applicationinsights:DescribeLogPattern,
applicationinsights:ListLogPatterns,
applicationinsights:ListLogPatternSets

Update

applicationinsights:CreateApplication,
applicationinsights:DescribeApplication,
applicationinsights:UpdateApplication,
applicationinsights:TagResource,
applicationinsights:UntagResource,
applicationinsights:ListTagsForResource,
applicationinsights:CreateComponent,
applicationinsights:DescribeComponent,
applicationinsights:DeleteComponent,
applicationinsights:ListComponents,
applicationinsights:CreateLogPattern,
applicationinsights:DeleteLogPattern,
applicationinsights:DescribeLogPattern,
applicationinsights:ListLogPatterns,
applicationinsights:ListLogPatternSets,
applicationinsights:UpdateLogPattern,
applicationinsights:DescribeComponentConfiguration,
applicationinsights:DescribeComponentConfigurationRecommendation,
applicationinsights:UpdateComponentConfiguration

Delete

applicationinsights:DeleteApplication,
applicationinsights:DescribeApplication

List

applicationinsights:ListApplications,
applicationinsights:DescribeApplication,
applicationinsights:ListTagsForResource,
applicationinsights:DescribeComponent,
applicationinsights:ListComponents,
applicationinsights:DescribeLogPattern,
applicationinsights:ListLogPatterns,
applicationinsights:ListLogPatternSets