Skip to content

Commit 824634e

Browse files
authored
chore(release): 2.189.1 (#34135)
See CHANGELOG ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
2 parents 45da43c + e7432ee commit 824634e

File tree

30 files changed

+668
-275
lines changed

30 files changed

+668
-275
lines changed

CHANGELOG.v2.alpha.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
44

5+
## [2.189.1-alpha.0](https://github.com/aws/aws-cdk/compare/v2.189.0-alpha.0...v2.189.1-alpha.0) (2025-04-14)
6+
57
## [2.189.0-alpha.0](https://github.com/aws/aws-cdk/compare/v2.188.0-alpha.0...v2.189.0-alpha.0) (2025-04-09)
68

79

CHANGELOG.v2.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
44

5+
## [2.189.1](https://github.com/aws/aws-cdk/compare/v2.189.0...v2.189.1) (2025-04-14)
6+
7+
8+
### Bug Fixes
9+
10+
* **core:** implicit Aspect applications do not override custom Aspect applications ([#34132](https://github.com/aws/aws-cdk/issues/34132)) ([b7f4bc7](https://github.com/aws/aws-cdk/commit/b7f4bc7aee1d99b70e4d9d3cedea53e910ee37ef))
11+
512
## [2.189.0](https://github.com/aws/aws-cdk/compare/v2.188.0...v2.189.0) (2025-04-09)
613

714

packages/@aws-cdk/aws-servicecatalogappregistry-alpha/lib/application-associator.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import * as cdk from 'aws-cdk-lib/core';
2+
import * as cxapi from 'aws-cdk-lib/cx-api';
23
import { Construct } from 'constructs';
34
import { IApplication } from './application';
45
import { CheckedStageStackAssociator } from './aspects/stack-associator';
@@ -50,7 +51,9 @@ export class ApplicationAssociator extends Construct {
5051
this.associateCrossAccountStacks = targetBindResult.associateCrossAccountStacks;
5152
cdk.Aspects.of(scope).add(new CheckedStageStackAssociator(this, {
5253
associateCrossAccountStacks: this.associateCrossAccountStacks,
53-
}), { priority: cdk.AspectPriority.MUTATING });
54+
}), {
55+
priority: cdk.FeatureFlags.of(this).isEnabled(cxapi.ASPECT_PRIORITIES_MUTATING) ? cdk.AspectPriority.MUTATING : undefined,
56+
});
5457
}
5558

5659
/**
@@ -61,7 +64,9 @@ export class ApplicationAssociator extends Construct {
6164
this.associatedStages.add(stage);
6265
cdk.Aspects.of(stage).add(new CheckedStageStackAssociator(this, {
6366
associateCrossAccountStacks: this.associateCrossAccountStacks,
64-
}), { priority: cdk.AspectPriority.MUTATING });
67+
}), {
68+
priority: cdk.FeatureFlags.of(this).isEnabled(cxapi.ASPECT_PRIORITIES_MUTATING) ? cdk.AspectPriority.MUTATING : undefined,
69+
});
6570
return stage;
6671
}
6772

packages/aws-cdk-lib/aws-autoscaling/lib/auto-scaling-group.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import * as iam from '../../aws-iam';
1717
import * as sns from '../../aws-sns';
1818
import {
1919
Annotations,
20-
AspectPriority,
2120
Aspects,
2221
Aws,
2322
CfnAutoScalingRollingUpdate, CfnCreationPolicy, CfnUpdatePolicy,
@@ -26,6 +25,7 @@ import {
2625
Tokenization, UnscopedValidationError, ValidationError, withResolved,
2726
} from '../../core';
2827
import { addConstructMetadata, MethodMetadata } from '../../core/lib/metadata-resource';
28+
import { mutatingAspectPrio32333 } from '../../core/lib/private/aspect-prio';
2929
import { AUTOSCALING_GENERATE_LAUNCH_TEMPLATE } from '../../cx-api';
3030

3131
/**
@@ -1608,7 +1608,9 @@ export class AutoScalingGroup extends AutoScalingGroupBase implements
16081608
this.spotPrice = props.spotPrice;
16091609

16101610
if (props.requireImdsv2) {
1611-
Aspects.of(this).add(new AutoScalingGroupRequireImdsv2Aspect(), { priority: AspectPriority.MUTATING });
1611+
Aspects.of(this).add(new AutoScalingGroupRequireImdsv2Aspect(), {
1612+
priority: mutatingAspectPrio32333(this),
1613+
});
16121614
}
16131615

16141616
this.node.addValidation({ validate: () => this.validateTargetGroup() });

packages/aws-cdk-lib/aws-backup/lib/selection.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ import { BackupableResourcesCollector } from './backupable-resources-collector';
44
import { IBackupPlan } from './plan';
55
import { BackupResource, TagOperation } from './resource';
66
import * as iam from '../../aws-iam';
7-
import { Lazy, Resource, Aspects, AspectPriority } from '../../core';
7+
import { Lazy, Resource, Aspects } from '../../core';
88
import { addConstructMetadata } from '../../core/lib/metadata-resource';
9+
import { mutatingAspectPrio32333 } from '../../core/lib/private/aspect-prio';
910

1011
/**
1112
* Options for a BackupSelection
@@ -143,7 +144,9 @@ export class BackupSelection extends Resource implements iam.IGrantable {
143144
}
144145

145146
if (resource.construct) {
146-
Aspects.of(resource.construct).add(this.backupableResourcesCollector, { priority: AspectPriority.MUTATING });
147+
Aspects.of(resource.construct).add(this.backupableResourcesCollector, {
148+
priority: mutatingAspectPrio32333(resource.construct),
149+
});
147150
// Cannot push `this.backupableResourcesCollector.resources` to
148151
// `this.resources` here because it has not been evaluated yet.
149152
// Will be concatenated to `this.resources` in a `Lazy.list`

packages/aws-cdk-lib/aws-ec2/lib/instance.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@ import { UserData } from './user-data';
1515
import { BlockDevice } from './volume';
1616
import { IVpc, Subnet, SubnetSelection } from './vpc';
1717
import * as iam from '../../aws-iam';
18-
import { Annotations, AspectPriority, Aspects, Duration, FeatureFlags, Fn, IResource, Lazy, Resource, Stack, Tags, Token } from '../../core';
18+
import { Annotations, Aspects, Duration, FeatureFlags, Fn, IResource, Lazy, Resource, Stack, Tags, Token } from '../../core';
1919
import { md5hash } from '../../core/lib/helpers-internal';
2020
import { addConstructMetadata, MethodMetadata } from '../../core/lib/metadata-resource';
21+
import { mutatingAspectPrio32333 } from '../../core/lib/private/aspect-prio';
2122
import * as cxapi from '../../cx-api';
2223

2324
/**
@@ -671,7 +672,9 @@ export class Instance extends Resource implements IInstance {
671672
}));
672673

673674
if (props.requireImdsv2) {
674-
Aspects.of(this).add(new InstanceRequireImdsv2Aspect(), { priority: AspectPriority.MUTATING });
675+
Aspects.of(this).add(new InstanceRequireImdsv2Aspect(), {
676+
priority: mutatingAspectPrio32333(this),
677+
});
675678
}
676679
}
677680

0 commit comments

Comments
 (0)