Skip to content

aws-apprunner-alpha: serviceName return service ARN instead name #26002

@sonit1810

Description

@sonit1810

Describe the bug

After i create App Runner service using new apprunner.Service

I export service name by

new cdk.CfnOutput(this, 'AppRunnerServiceName', {
            value: service.serviceName ,
            exportName: 'service-name'
        });

Some how it exported the Service ARN, not the Service Name

Expected Behavior

Service Name exported.

Current Behavior

Service ARN exported

Reproduction Steps

Create App Runner service using const service = new apprunner.Service``

Then try export service.serviceName

It will return Service ARN of App Runner Instance, not the Service Name.

Possible Solution

No response

Additional Information/Context

No response

CDK CLI Version

2.81.0-alpha.0

Framework Version

2.81.0-alpha.0

Node.js Version

20

OS

Ubuntu

Language

Typescript

Language Version

4.9.5

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/aws-apprunnerRelated to the apprunner packagebugThis issue is a bug.effort/smallSmall work item – less than a day of effortp1

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions