This extension adds L1 construct snippets from CDK into Visual Studio Code.
New
- Added support for Gitpod by publishing this extension to the Open VSX Registry
Features
- Supports all resources that are defined by CloudFormation in the form of L1 constructs in CDK
- Triggers autocomplete by invoking
l1-<cloudformation-resource>
- The construct snippets are automatically updated every week after AWS updates their CloudFormation Resource Specification.
- Has builtin support for placeholders. This means you can quickly jump from property to property in each resource by using
Tab
- The extension will show which property is required by adding a
// required
comment next to it. - The autocomplete prompt shows the matching CDK resource documentation URL in its description.
Usage
- Step 1. Install this extension
- Step 2. Start working in your CDK project (TypeScript)
- Step 3. Start adding L1 constructs in your code by using their prefix name e.g.
l1-s3-bucket
equals to L1 constructs3.CfnBucket
Note: Once you start typing a prefix (explained in step 3), the corresponding snippet shows up in the dropdown menu. If this doesn't happen automatically, press
ctrl + space
to invoke IntelliSense and search for the prefix of the resource type that you want to add (as listed in step 3).
Support
If you have a feature request or an issue, please let me know on Github
Contributing
If you want to add more snippets or support another programming language, your contribution is more than welcome!
Review the Contributing Guidelines.