Skip to content

Commit ab38399

Browse files
authored
Merge pull request #11 from alliander-opensource/adapt-for-multiple-deployments
add stackname to cfn exports to enable multiple deployments
2 parents f89284f + 0d13ad5 commit ab38399

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@alliander-opensource/aws-jwt-sts",
3-
"version": "0.2.8",
3+
"version": "0.2.9",
44
"author": {
55
"name": "Alliander NV"
66
},

src/index.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -435,20 +435,20 @@ export class AwsJwtSts extends Construct {
435435
new cdk.CfnOutput(this, 'tokenEndpoint', {
436436
value: 'https://' + tokenDomainName + '/token',
437437
description: 'Url of the token endpoint',
438-
exportName: 'tokenEndpoint'
438+
exportName: `${cdk.Stack.of(this)}-tokenEndpoint`
439439
})
440440
} else {
441441
new cdk.CfnOutput(this, 'tokenEndpoint', {
442442
value: api.url + 'token',
443443
description: 'Url of the token endpoint',
444-
exportName: 'tokenEndpoint'
444+
exportName: `${cdk.Stack.of(this)}-tokenEndpoint`
445445
})
446446
}
447447

448448
new cdk.CfnOutput(this, 'issuer', {
449449
value: issuer,
450450
description: 'Url of the issuer',
451-
exportName: 'issuer'
451+
exportName: `${cdk.Stack.of(this)}-issuer`
452452
})
453453

454454
/** ---------------------- WAF ----------------------- */

0 commit comments

Comments
 (0)