better-dentist-3207
08/02/2023, 5:39 PMkeyId: string
prop that takes the string of ARN of KMS key
• cdk's aws.ssm.StringParameter has encryptionKey: IKey
prop that directly takes an KMS key object
◦ same IKey can be derived from something and applied directly to the StringParameter
◦ no stringly-typed foot-guns
◦ (and also has methods for .grant()
that allows easy minimum permissions)
AWS CDK has this stuff all over the place that enforces a proper type system between resources.
Is there a way to improve Pulumi's stringly-types in my codebase?quaint-hydrogen-7228
08/03/2023, 9:00 AM