aws / aws/aws-cdk

aws-gamelift-alpha: minSize and maxSize don't work

Open
#28,359 2 comments 0 reactions 0 assignees View on GitHub
@aws-cdk/aws-ec2 bug p2
Dominant language
TypeScript
Stars
12.9k
Forks
4.6k
Avg merge
2d 3h
Merged PRs (30d)
83

Description

### Describe the bug

Setting `minSize` and `maxSize` on `BuildFleet` don't seem to take effect. Example:

```
const fleet = new gamelift.BuildFleet(this, "Game server fleet", {
fleetName: id,
content: build,
instanceType: ec2.InstanceType.of(
ec2.InstanceClass.R5,
ec2.InstanceSize.LARGE
),
desiredCapacity: 1,
minSize: 1,
maxSize: 2,
runtimeConfiguration: {
serverProcesses: [
{
launchPath: "/local/game/GameServer",
concurrentExecutions: 4,
},
],
},
});
```

When deployed, they don't take effect when viewed in the console:

![Screenshot 2023-12-13 171232](https://github.com/aws/aws-cdk/assets/3341874/aa28036f-3ddf-4ff8-8eec-948b8cd73f50)

### Expected Behavior

`minSize` and `maxSize` should work.

### Current Behavior

`minSize` and `maxSize` don't effect anything when deployed.

### Reproduction Steps

See example above.

### Possible Solution

_No response_

### Additional Information/Context

_No response_

### CDK CLI Version

2.101.1

### Framework Version

_No response_

### Node.js Version

v20.8.1

### OS

Ubuntu (WSL2 on Windows 11)

### Language

TypeScript

### Language Version

5.2.2

### Other information

_No response_

Contributor guide

Open the contributing guide

Research direction

Start at the BuildFleet construct and reproduce the example with CDK CLI 2.101.1, then inspect the synthesized GameLift fleet configuration for minSize and maxSize. Done means the deployed fleet reflects minSize 1 and maxSize 2 in the console.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, typescript
Domain
cloud
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.