@aws-cdk_aws-apprunner-alpha.Service: (serviceName property returns apprunner ARN instead of apprunner service name) #23351
Labels
@aws-cdk/aws-apprunner
Related to the apprunner package
bug
This issue is a bug.
effort/small
Small work item – less than a day of effort
p2
Describe the issue
When using the class Service [1] in cdk to create Apprunner Service and further using serviceName property [2] it returns apprunner ARN instead of apprunner service name.
The serviceName property translates to !Ref on the logical id of the Apprunner Service resource in CFN template. On checking the "AWS::AppRunner::Service" return value in CFN doc, we can see: [3] , !Ref returns the following: i.e ARN of the App Runner service.
++++++++++++++++++++
Ref
When the logical ID of this resource is provided to the Ref intrinsic function, Ref returns the ARN of the App Runner service.
++++++++++++++++++++
Links
[1] https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-apprunner-alpha.Service.html
[2] https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-apprunner-alpha.Service.html#servicenamespan-classapi-icon-api-icon-experimental-titlethis-api-element-is-experimental-it-may-change-without-noticespan-1
[3] https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apprunner-service.html#aws-resource-apprunner-service-return-values
The text was updated successfully, but these errors were encountered: