Skip to main content

observability_configurations

Creates, updates, deletes, gets or lists an observability_configurations resource.

Overview

Nameobservability_configurations
TypeResource
Idaws.apprunner.observability_configurations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
created_atstring (date-time)The time when the observability configuration was created. It's in Unix time stamp format.
deleted_atstring (date-time)The time when the observability configuration was deleted. It's in Unix time stamp format.
latestbooleanIt's set to true for the configuration with the highest Revision among all configurations that share the same ObservabilityConfigurationName. It's set to false otherwise.
observability_configuration_arnstringThe Amazon Resource Name (ARN) of this observability configuration. (pattern: <code>arn:aws(-[\w]+)*:[a-z0-9-\.]{0,63}:[a-z0-9-\.]{0,63}:[0-9]{12}:(\w|/|-){1,1011}</code>)
observability_configuration_namestringThe customer-provided observability configuration name. It can be used in multiple revisions of a configuration. (pattern: <code>[A-Za-z0-9][A-Za-z0-9-_]{3,31}</code>)
observability_configuration_revisionintegerThe revision of this observability configuration. It's unique among all the active configurations ("Status": "ACTIVE") that share the same ObservabilityConfigurationName.
statusstringThe current state of the observability configuration. If the status of a configuration revision is INACTIVE, it was deleted and can't be used. Inactive configuration revisions are permanently removed some time after they are deleted. (ACTIVE, INACTIVE)
trace_configurationobjectThe configuration of the tracing feature within this observability configuration. If not specified, tracing isn't enabled.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_observability_configurationselectregionReturn a full description of an App Runner observability configuration resource.
list_observability_configurationsselectregionReturns a list of active App Runner observability configurations in your Amazon Web Services account. You can query the revisions for a specific configuration name or the revisions for all active configurations in your account. You can optionally query only the latest revision of each requested name. To retrieve a full description of a particular configuration revision, call and provide one of the ARNs returned by ListObservabilityConfigurations.
create_observability_configurationinsertregion, ObservabilityConfigurationNameCreate an App Runner observability configuration resource. App Runner requires this resource when you create or update App Runner services and you want to enable non-default observability features. You can share an observability configuration across multiple services. Create multiple revisions of a configuration by calling this action multiple times using the same ObservabilityConfigurationName. The call returns incremental ObservabilityConfigurationRevision values. When you create a service and configure an observability configuration resource, the service uses the latest active revision of the observability configuration by default. You can optionally configure the service to use a specific revision. The observability configuration resource is designed to configure multiple features (currently one feature, tracing). This action takes optional parameters that describe the configuration of these features (currently one parameter, TraceConfiguration). If you don't specify a feature parameter, App Runner doesn't enable the feature.
delete_observability_configurationdeleteregionDelete an App Runner observability configuration resource. You can delete a specific revision or the latest active revision. You can't delete a configuration that's used by one or more App Runner services.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Return a full description of an App Runner observability configuration resource.

SELECT
created_at,
deleted_at,
latest,
observability_configuration_arn,
observability_configuration_name,
observability_configuration_revision,
status,
trace_configuration
FROM aws.apprunner.observability_configurations
WHERE region = '{{ region }}' -- required
;

INSERT examples

Create an App Runner observability configuration resource. App Runner requires this resource when you create or update App Runner services and you want to enable non-default observability features. You can share an observability configuration across multiple services. Create multiple revisions of a configuration by calling this action multiple times using the same ObservabilityConfigurationName. The call returns incremental ObservabilityConfigurationRevision values. When you create a service and configure an observability configuration resource, the service uses the latest active revision of the observability configuration by default. You can optionally configure the service to use a specific revision. The observability configuration resource is designed to configure multiple features (currently one feature, tracing). This action takes optional parameters that describe the configuration of these features (currently one parameter, TraceConfiguration). If you don't specify a feature parameter, App Runner doesn't enable the feature.

INSERT INTO aws.apprunner.observability_configurations (
ObservabilityConfigurationName,
TraceConfiguration,
Tags,
region
)
SELECT
'{{ ObservabilityConfigurationName }}' /* required */,
'{{ TraceConfiguration }}',
'{{ Tags }}',
'{{ region }}'
RETURNING
observability_configuration
;

DELETE examples

Delete an App Runner observability configuration resource. You can delete a specific revision or the latest active revision. You can't delete a configuration that's used by one or more App Runner services.

DELETE FROM aws.apprunner.observability_configurations
WHERE region = '{{ region }}' --required
;