aws / aws/aws-cdk

aws_apprunner: can't retrieve AutoScalingConfigurationArn attribute

Open
#34,275 4 comments 0 reactions 0 assignees View on GitHub
@aws-cdk/aws-apprunner bug p2
Dominant language
TypeScript
Stars
12.9k
Forks
4.6k
Avg merge
1d 19h
Merged PRs (30d)
71

Description

### Describe the bug

Until now, I had been defining aws_apprunner’s AutoScalingConfiguration and using that definition during the creation of the App Runner service via CDK without any problems. However, starting today, I began encountering the following error and the deployment is now failing

### Regression Issue

- [ ] Select this option if this issue appears to be a regression.

### Last Known Working CDK Version

2.1012.0

### Expected Behavior

pass this code

### Current Behavior

*Error*
```
Unable to retrieve AutoScalingConfigurationArn attribute for AWS::AppRunner::AutoScalingConfiguration, with error message Error occurred during operation 'Failed to list tags'.
```

### Reproduction Steps

*autoScalingConf definition*
```typescript
const autoScalingConf = new aws_apprunner.CfnAutoScalingConfiguration(
this,
"AppRunnerAutoScalingConfiguration",
{
autoScalingConfigurationName: "apprunner-autoscaling",
minSize: 1,
maxSize: env.APP_RUNNER_MAX_SIZE,
}
)
```

*use autoScalingConf to AppRunner definition*
```typescript
new aws_apprunner.CfnService(this, "AppRunnerService", {
...
autoScalingConfigurationArn:
autoScalingConf.attrAutoScalingConfigurationArn,
...
}
```

### Possible Solution

_No response_

### Additional Information/Context

_No response_

### CDK CLI Version

2.1012.0 (build e4c1f15)

### Framework Version

_No response_

### Node.js Version

v22.12.0

### OS

macOS Sequoia

### Language

TypeScript

### Language Version

TypeScript (5.6.3)

### Other information

_No response_

Contributor guide

Open the contributing guide

Research direction

No repository files or tests are named. Reproduce the failure with the shown CfnAutoScalingConfiguration and CfnService definitions, then trace resolution of attrAutoScalingConfigurationArn and the failed tag-list operation in the App Runner implementation. Done means the attribute resolves and the App Runner service deployment succeeds.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, typescript
Domain
cloud, infrastructure
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.