bright / cloudform

TypeScript-based imperative way to define AWS CloudFormation templates
MIT License
153 stars 27 forks source link

EC2.Instance.Metadata #12

Open rob-myers opened 6 years ago

rob-myers commented 6 years ago

Thanks for the great module, I'm using it extensively.

Please consider supporting EC2.Instance.Metadata.AWS::CloudFormation::Init as described here.

DenSpirit commented 6 years ago

Metadata key is already present on all Resource/ResourceBase derivatives. And as all definition files are built from AWS exports, it looks like AWS does not emit that specific typing.

You can plainly use instance.Metadata = { 'AWS::CloudFormation::Init': {/* ... */}} currently.

NOtherDev commented 6 years ago

I'd hope to have it solved in the source, that is CloudFormation-provided schema. I've asked on the AWS forum.