steampipe plugin install aws

Table: aws_app_runner_service - Query AWS App Runner Services using SQL

AWS App Runner is a fully managed service that makes it easy to build, deploy, and run containerized web applications and APIs at scale. The aws_app_runner_service table in Steampipe allows you to query information about your App Runner services in AWS, including their configurations, scaling policies, and network settings.

Table Usage Guide

The aws_app_runner_service table enables cloud administrators and DevOps engineers to gather detailed insights into their App Runner services. You can query various aspects of the services, such as their scaling configurations, network settings, health checks, and service URLs. This table is particularly useful for monitoring service health, managing configurations, and ensuring that your applications are running efficiently.

Examples

Basic service information

Retrieve basic information about your AWS App Runner services, including their name, ARN, and region.

select
service_name,
arn,
region,
created_at,
updated_at
from
aws_app_runner_service;
select
service_name,
arn,
region,
created_at,
updated_at
from
aws_app_runner_service;

List services with specific network configurations

Identify services that are configured with a specific network configuration, such as VPC or public network settings.

select
service_name,
arn,
network_configuration
from
aws_app_runner_service
where
(
network_configuration -> 'EgressConfiguration' ->> 'VpcConnectorArn'
) is not null;
select
service_name,
arn,
network_configuration
from
aws_app_runner_service
where
json_extract(network_configuration, '$.VpcConfiguration') is not null;

List services with auto-scaling configurations

Retrieve information about services that have specific auto-scaling configurations.

select
service_name,
arn,
auto_scaling_configuration_summary
from
aws_app_runner_service
where
jsonb_path_exists(
auto_scaling_configuration_summary,
'$.AutoScalingConfigurationArn'
);
select
service_name,
arn,
auto_scaling_configuration_summary
from
aws_app_runner_service
where
json_extract(
auto_scaling_configuration_summary,
'$.AutoScalingConfigurationArn'
) is not null;

List services with specific observability configurations

Identify services that have observability features enabled, such as logging or tracing.

select
service_name,
arn,
observability_configuration
from
aws_app_runner_service
where
(
observability_configuration ->> 'ObservabilityConfigurationArn'
) is not null;
select
service_name,
arn,
observability_configuration
from
aws_app_runner_service
where
json_extract(
observability_configuration,
'$.ObservabilityConfigurationArn'
) is not null;

List services created within a specific time frame

Fetch services that were created within a specific date range, which can be useful for auditing purposes.

select
service_name,
arn,
created_at
from
aws_app_runner_service
where
created_at >= '2023-01-01T00:00:00Z'
and created_at <= '2023-12-31T23:59:59Z';
select
service_name,
arn,
created_at
from
aws_app_runner_service
where
created_at >= '2023-01-01T00:00:00Z'
and created_at <= '2023-12-31T23:59:59Z';

Get service URLs for all services

Retrieve the service URLs for all App Runner services, which can be useful for accessing or sharing service endpoints.

select
service_name,
arn,
service_url
from
aws_app_runner_service;
select
service_name,
arn,
service_url
from
aws_app_runner_service;

Schema for aws_app_runner_service

NameTypeOperatorsDescription
_ctxjsonbSteampipe context in JSON form.
account_idtext=, !=, ~~, ~~*, !~~, !~~*The AWS Account ID in which the resource is located.
akasjsonbArray of globally unique identifier strings (also known as) for the resource.
arntext=The Amazon Resource Name (ARN) of this service.
auto_scaling_configuration_summaryjsonbSummary information for the App Runner automatic scaling configuration resource that's associated with this service.
created_attimestamp with time zoneThe time when the App Runner service was created. It's in the Unix time stamp format.
deleted_attimestamp with time zoneThe time when the App Runner service was deleted.
health_check_configurationjsonbThe settings for the health check that App Runner performs to monitor the health of this service.
instance_configurationjsonbThe runtime configuration of instances (scaling units) of this service.
kms_keytextThe ARN of the KMS key that's used for encryption.
network_configurationjsonbConfiguration settings related to network traffic of the web application that this service runs.
observability_configurationjsonbThe observability configuration of this service.
partitiontextThe AWS partition in which the resource is located (aws, aws-cn, or aws-us-gov).
policy_typetextThe policy type. Currently supported values are TargetTrackingScaling and StepScaling
regiontextThe AWS Region in which the resource is located.
service_idtextAn ID that App Runner generated for this service.
service_nametextThe customer-provided service name.
service_urltextA subdomain URL that App Runner generated for this service.
source_configurationjsonbThe source deployed to the App Runner service. It can be a code or an image repository.
sp_connection_nametext=, !=, ~~, ~~*, !~~, !~~*Steampipe connection name.
sp_ctxjsonbSteampipe context in JSON form.
titletextTitle of the resource.
updated_attimestamp with time zoneThe time when the App Runner service was last updated.

Export

This table is available as a standalone Exporter CLI. Steampipe exporters are stand-alone binaries that allow you to extract data using Steampipe plugins without a database.

You can download the tarball for your platform from the Releases page, but it is simplest to install them with the steampipe_export_installer.sh script:

/bin/sh -c "$(curl -fsSL https://steampipe.io/install/export.sh)" -- aws

You can pass the configuration to the command with the --config argument:

steampipe_export_aws --config '<your_config>' aws_app_runner_service