apprunner:CreateService

Write

apprunner:CreateService is a Write access-level action in the apprunner service. Grants permission to create an AWS App Runner service resource

Resource types

ARNs that apprunner:CreateService can be scoped to in an IAM policy.

arn:${Partition}:apprunner:${Region}:${Account}:autoscalingconfiguration/${AutoscalingConfigurationName}/${AutoscalingConfigurationVersion}/${AutoscalingConfigurationId}
autoscalingconfiguration
arn:${Partition}:apprunner:${Region}:${Account}:connection/${ConnectionName}/${ConnectionId}
connection
arn:${Partition}:apprunner:${Region}:${Account}:observabilityconfiguration/${ObservabilityConfigurationName}/${ObservabilityConfigurationVersion}/${ObservabilityConfigurationId}
observabilityconfiguration
arn:${Partition}:apprunner:${Region}:${Account}:service/${ServiceName}/${ServiceId} required
service
arn:${Partition}:apprunner:${Region}:${Account}:vpcconnector/${VpcConnectorName}/${VpcConnectorVersion}/${VpcConnectorId}
vpcconnector

Condition keys

Keys you can use in the Condition block of a policy that grants apprunner:CreateService.

apprunner:AutoScalingConfigurationArn ARN

Filters access by the CreateService and UpdateService actions based on the ARN of an associated AutoScalingConfiguration resource

apprunner:ConnectionArn ARN

Filters access by the CreateService and UpdateService actions based on the ARN of an associated Connection resource

apprunner:ObservabilityConfigurationArn ARN

Filters access by the CreateService and UpdateService actions based on the ARN of an associated ObservabilityConfiguration resource

apprunner:VpcConnectorArn ARN

Filters access by the CreateService and UpdateService actions based on the ARN of an associated VpcConnector resource

aws:RequestTag/${TagKey} String

Filters access by actions based on the presence of tag key-value pairs in the request

aws:TagKeys ArrayOfString

Filters access by actions based on the presence of tag keys in the request

aws:ResourceTag/${TagKey} String

Filters access by actions based on tag key-value pairs attached to the resource

Example IAM policy

A minimal policy that allows apprunner:CreateService. Replace "Resource": "*" with a specific ARN to follow least privilege.

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowApprunnerCreateService",
      "Effect": "Allow",
      "Action": "apprunner:CreateService",
      "Resource": "*"
    }
  ]
}

Related actions in apprunner

View all apprunner actions →