aws-cdk icon indicating copy to clipboard operation
aws-cdk copied to clipboard

CfnInstance Metadata example.

Open PanoSui opened this issue 7 years ago • 1 comments

Dear AWS CDK developers,

I am trying to use the CfnInstance class documented here: https://docs.aws.amazon.com/cdk/api/latest/python/aws_cdk.aws_ec2/CfnInstance.html

This documentation is missing 1 critical example for the use of MetaData

I do not see the option of adding metadata to the CfnInstance class. Is that by design?

This is a 📕 documentation issue

PanoSui avatar Nov 19 '19 01:11 PanoSui

You would use the "escape hatch" functionality (addOverride) to add the proper metadata fields to your resource.

https://docs.aws.amazon.com/cdk/latest/guide/cfn_layer.html

rix0rrr avatar Nov 25 '19 14:11 rix0rrr