Skip to content

Instantly share code, notes, and snippets.

@mgjam
Created October 22, 2019 11:12
Show Gist options
  • Save mgjam/8249905adf638fc5f2286ef12bda1209 to your computer and use it in GitHub Desktop.
Save mgjam/8249905adf638fc5f2286ef12bda1209 to your computer and use it in GitHub Desktop.
private static createAccessKeyOutputs(scope: cdk.Construct, accessKey: iam.CfnAccessKey) {
new cdk.CfnOutput(scope, 'UserAccessKeyId', {
value: accessKey.ref
});
new cdk.CfnOutput(scope, 'UserSecretAccessKey', {
value: accessKey.attrSecretAccessKey
});
}
private static createS3BucketOutputs(scope: cdk.Construct, s3Bucket: s3.Bucket) {
const name = 'BucketName';
new cdk.CfnOutput(scope, name, {
value: s3Bucket.bucketName
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment