Skip to main content

services

Creates, updates, deletes or gets a service resource or lists services in a region

Overview

Nameservices
TypeResource
DescriptionThe AWS::AppRunner::Service resource specifies an AppRunner Service.
Idaws.apprunner.services

Fields

NameDatatypeDescription
service_namestringThe AppRunner Service Name.
service_idstringThe AppRunner Service Id
service_arnstringThe Amazon Resource Name (ARN) of the AppRunner Service.
service_urlstringThe Service Url of the AppRunner Service.
statusstringAppRunner Service status.
source_configurationobjectSource Code configuration
instance_configurationobjectInstance Configuration
tagsarray
encryption_configurationobjectEncryption configuration (KMS key)
health_check_configurationobjectHealth check configuration
observability_configurationobjectService observability configuration
auto_scaling_configuration_arnstringAutoscaling configuration ARN
network_configurationobjectNetwork configuration
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTSourceConfiguration, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all services in a region.

SELECT
region,
service_name,
service_id,
service_arn,
service_url,
status,
source_configuration,
instance_configuration,
tags,
encryption_configuration,
health_check_configuration,
observability_configuration,
auto_scaling_configuration_arn,
network_configuration
FROM aws.apprunner.services
WHERE region = 'us-east-1';

Gets all properties from an individual service.

SELECT
region,
service_name,
service_id,
service_arn,
service_url,
status,
source_configuration,
instance_configuration,
tags,
encryption_configuration,
health_check_configuration,
observability_configuration,
auto_scaling_configuration_arn,
network_configuration
FROM aws.apprunner.services
WHERE region = 'us-east-1' AND data__Identifier = '<ServiceArn>';

INSERT example

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

/*+ create */
INSERT INTO aws.apprunner.services (
SourceConfiguration,
region
)
SELECT
'{{ SourceConfiguration }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.apprunner.services
WHERE data__Identifier = '<ServiceArn>'
AND region = 'us-east-1';

Permissions

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

Create

apprunner:CreateService,
apprunner:TagResource,
iam:PassRole,
iam:CreateServiceLinkedRole,
logs:CreateLogGroup,
logs:PutRetentionPolicy,
logs:CreateLogStream,
logs:PutLogEvents,
logs:DescribeLogStreams,
events:PutRule,
events:PutTargets

Read

apprunner:DescribeService

Update

apprunner:UpdateService,
iam:PassRole

Delete

apprunner:DeleteService

List

apprunner:ListServices,
iam:PassRole