Skip to content

Commit 86647d2

Browse files
fixed issue while doing upgrade to 1.2.1 from 1.2.0 (#422)
1 parent 387aa7d commit 86647d2

File tree

1 file changed

+5
-4
lines changed
  • src/deployments/cdk/src/deployments/defaults

1 file changed

+5
-4
lines changed

src/deployments/cdk/src/deployments/defaults/outputs.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import { StackOutput } from '@aws-accelerator/common-outputs/src/stack-output';
99
import { StructuredOutput, createCfnStructuredOutput } from '../../common/structured-output';
1010
import { EbsKmsOutput } from '@aws-accelerator/common-outputs/src/ebs';
1111
import { SsmKmsOutput } from '@aws-accelerator/common-outputs/src/ssm';
12+
import { optional } from '@aws-accelerator/common-types';
1213

1314
export const CfnEbsKmsOutput = createCfnStructuredOutput(EbsKmsOutput);
1415

@@ -43,8 +44,8 @@ const AccountBucketOutputType = t.interface(
4344
bucketArn: t.string,
4445
encryptionKeyArn: t.string,
4546
region: t.string,
46-
encryptionKeyName: t.string,
47-
encryptionKeyId: t.string,
47+
encryptionKeyName: optional(t.string),
48+
encryptionKeyId: optional(t.string),
4849
},
4950
'AccountBucket',
5051
);
@@ -57,8 +58,8 @@ const LogBucketOutputType = t.interface(
5758
bucketArn: t.string,
5859
encryptionKeyArn: t.string,
5960
region: t.string,
60-
encryptionKeyName: t.string,
61-
encryptionKeyId: t.string,
61+
encryptionKeyName: optional(t.string),
62+
encryptionKeyId: optional(t.string),
6263
},
6364
'LogBucket',
6465
);

0 commit comments

Comments
 (0)