@gradientedge/cdk-utils 8.85.0 → 8.87.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -34,7 +34,7 @@ export declare class LambdaWithIamAccess extends CommonConstruct {
|
|
|
34
34
|
lambdaIamUser: iam.User;
|
|
35
35
|
lambdaUserAccessKey: iam.CfnAccessKey;
|
|
36
36
|
lambdaUserAccessSecret: secretsManager.Secret;
|
|
37
|
-
|
|
37
|
+
constructor(parent: Construct, id: string, props: LambdaWithIamAccessProps);
|
|
38
38
|
/**
|
|
39
39
|
* @summary Initialise and provision resources
|
|
40
40
|
* @protected
|
|
@@ -114,7 +114,7 @@ class AppConfigManager {
|
|
|
114
114
|
throw `AppConfig props undefined for ${id}`;
|
|
115
115
|
const environment = new appconfig.CfnEnvironment(scope, `${id}`, {
|
|
116
116
|
applicationId: applicationId,
|
|
117
|
-
name: scope.props.stage,
|
|
117
|
+
name: props.environment.name ?? scope.props.stage,
|
|
118
118
|
description: props.environment.description,
|
|
119
119
|
monitors: props.environment.monitors,
|
|
120
120
|
tags: props.environment.tags,
|
package/package.json
CHANGED
|
@@ -39,7 +39,7 @@ export class LambdaWithIamAccess extends CommonConstruct {
|
|
|
39
39
|
lambdaUserAccessKey: iam.CfnAccessKey
|
|
40
40
|
lambdaUserAccessSecret: secretsManager.Secret
|
|
41
41
|
|
|
42
|
-
|
|
42
|
+
constructor(parent: Construct, id: string, props: LambdaWithIamAccessProps) {
|
|
43
43
|
super(parent, id, props)
|
|
44
44
|
|
|
45
45
|
this.props = props
|
|
@@ -105,7 +105,7 @@ export class AppConfigManager {
|
|
|
105
105
|
|
|
106
106
|
const environment = new appconfig.CfnEnvironment(scope, `${id}`, {
|
|
107
107
|
applicationId: applicationId,
|
|
108
|
-
name: scope.props.stage,
|
|
108
|
+
name: props.environment.name ?? scope.props.stage,
|
|
109
109
|
description: props.environment.description,
|
|
110
110
|
monitors: props.environment.monitors,
|
|
111
111
|
tags: props.environment.tags,
|