File tree Expand file tree Collapse file tree 3 files changed +31
-19
lines changed Expand file tree Collapse file tree 3 files changed +31
-19
lines changed Original file line number Diff line number Diff line change @@ -953,6 +953,12 @@ export = {
953
953
} ,
954
954
"Outputs" : {
955
955
"MyStreamKeyKeyArn967BCB03" : {
956
+ "Value" : {
957
+ "Fn::GetAtt" : [
958
+ "MyStreamKey76F3300E" ,
959
+ "Arn"
960
+ ]
961
+ } ,
956
962
"Export" : {
957
963
"Name" : "MyStreamKeyKeyArn967BCB03"
958
964
}
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ export abstract class EncryptionKeyRef extends Construct {
75
75
*/
76
76
public export ( ) : EncryptionKeyRefProps {
77
77
return {
78
- keyArn : new Output ( this , 'KeyArn' ) . makeImportValue ( ) . toString ( )
78
+ keyArn : new Output ( this , 'KeyArn' , { value : this . keyArn } ) . makeImportValue ( ) . toString ( )
79
79
} ;
80
80
}
81
81
}
Original file line number Diff line number Diff line change @@ -304,29 +304,35 @@ export = {
304
304
305
305
expect ( stack1 ) . toMatch ( {
306
306
Resources : {
307
- MyKey6AB29FA6 : {
308
- Type : "AWS::KMS::Key" ,
309
- Properties : {
310
- KeyPolicy : {
311
- Statement : [
312
- {
313
- Effect : "Allow" ,
314
- Resource : "*"
315
- }
316
- ] ,
317
- Version : "2012-10-17"
307
+ MyKey6AB29FA6 : {
308
+ Type : "AWS::KMS::Key" ,
309
+ Properties : {
310
+ KeyPolicy : {
311
+ Statement : [
312
+ {
313
+ Effect : "Allow" ,
314
+ Resource : "*"
315
+ }
316
+ ] ,
317
+ Version : "2012-10-17"
318
+ }
319
+ } ,
320
+ DeletionPolicy : "Retain"
318
321
}
319
- } ,
320
- DeletionPolicy : "Retain"
321
- }
322
322
} ,
323
323
Outputs : {
324
- MyKeyKeyArn317F1332 : {
325
- Export : {
326
- Name : "MyKeyKeyArn317F1332"
324
+ MyKeyKeyArn317F1332 : {
325
+ Value : {
326
+ "Fn::GetAtt" : [
327
+ "MyKey6AB29FA6" ,
328
+ "Arn"
329
+ ]
330
+ } ,
331
+ Export : {
332
+ Name : "MyKeyKeyArn317F1332"
333
+ }
327
334
}
328
335
}
329
- }
330
336
} ) ;
331
337
332
338
const stack2 = new Stack ( ) ;
You can’t perform that action at this time.
0 commit comments