aws-scripting-guy / cform-vscode Goto Github PK
View Code? Open in Web Editor NEWCloudFormation extension for Visual Studio Code
CloudFormation extension for Visual Studio Code
After installing I typed start
and press tab key
, but it did not bring up the basic template. it works for .json file though.
Any plans on adding the "AWS::Serverless::Function" or SAM support for Resource Types?
Any plans on adding the "AWS::Serverless::Function" or SAM support for Resource Types?
Hello,
I am new in using VSCode. I try to activate the plugin. But when I type "start" + [Tab] nothing happens.
I am on Mac. I have tried with JSON or YAML files (setting the type of format).
What I am I doing wrong ?
Thanks
When you input a ref using autocompletion, it writes it down in the next line instead of the current line.
Please refer to $subject
The template for an ec2-instance produces a property of Userdata.
This generates an error when trying to launch the stack. This is due to the official documentation for this property in YAML being case sensitive camel case. This should be UserData not Userdata.
This was tested by manually amending the template to UserData and the stack launched without error.
I confirmed the correct syntax using the Official documentation: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html
It would be great if the plugin supported cloud watch events.
I had this extension working less than a few days ago.
Just recently I started getting errors from the extension ...
vscode-yaml
and worked with that developer to fix those issues which are now gone.
However, now that I'm not getting errors from that.... this extension is still not working with YAML.
Open a JS file and type start
... it works
Open a YAML file and type start
.... it doesn't work.
After following the proxy instructions () I still get the following:
Settings have been updated...
Settings: {"cfnLint":{"path":"cfn-lint","appendRules":[],"ignoreRules":[],"overrideSpecPath":""}}
events.js:163
throw er; // Unhandled 'error' event
^
Error: spawn cfn-lint ENOENT
at exports._errnoException (util.js:1050:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32)
at onErrorNT (internal/child_process.js:367:16)
at _combinedTickCallback (internal/process/next_tick.js:80:11)
at process._tickCallback (internal/process/next_tick.js:104:9)
Is CFN: true
[Info - 1:42:03 PM] Connection to server got closed. Server will restart.
So: where should I enter the proxy url and certificates?
(env variables: http_proxy, https_proxy and cafile are all set)
Hi there,
Many thanks for adding YAML support to your extension.
I'm hitting the following issue in VS Code when using intrinsic functions:
I assume that this issue is being reported by the "YAML Support by Red Hat" plugin that your plugin now depends on?
I'm not sure how this issue should be resolved i.e. within your plugin, within the configuration of the Red Hat plugin or by changing the syntax of my YAML but obviously I'm conforming to the syntax used by AWS in their examples
Any assistance would be greatly appreciated!
Many thanks
Please use this custom tag with its type otherwise it may not work:
"yaml.customTags": [
"!Ref",
"!Base64 mapping",
"!Cidr sequence",
"!Condition",
"!FindInMap sequence",
"!GetAtt",
"!GetAZs",
"!ImportValue",
"!Join sequence",
"!Select sequence",
"!Split sequence",
"!Sub",
"!Transform mapping",
"!Not sequence",
"!And sequence",
"!Or sequence",
"!Equals sequence",
"!If sequence"
],
"yaml.format.enable": true
Issue Type: Bug
install YAML and CloudFormation extension, open a YAML file, connect to remote-WSL, type start, nothing shows up
Extension version: 0.0.23
VS Code version: Code 1.37.1 (f06011ac164ae4dc8e753a3fe7f9549844d15e35, 2019-08-15T16:17:55.855Z)
OS version: Windows_NT x64 10.0.18362
Remote OS version: Linux x64 4.4.0-18362-Microsoft
Item | Value |
---|---|
CPUs | Intel(R) Core(TM) i7-9700K CPU @ 3.60GHz (8 x 3600) |
GPU Status | 2d_canvas: enabled flash_3d: enabled flash_stage3d: enabled flash_stage3d_baseline: enabled gpu_compositing: enabled multiple_raster_threads: enabled_on native_gpu_memory_buffers: disabled_software oop_rasterization: disabled_off protected_video_decode: enabled rasterization: enabled skia_deferred_display_list: disabled_off skia_renderer: disabled_off surface_synchronization: enabled_on video_decode: enabled viz_display_compositor: disabled_off webgl: enabled webgl2: enabled |
Load (avg) | undefined |
Memory (System) | 15.87GB (11.08GB free) |
Process Argv | |
Screen Reader | no |
VM | 0% |
Item | Value |
---|---|
Remote | WSL: Ubuntu-18.04 |
OS | Linux x64 4.4.0-18362-Microsoft |
CPUs | Intel(R) Core(TM) i7-9700K CPU @ 3.60GHz (8 x 3600) |
Memory (System) | 15.87GB (11.08GB free) |
VM | 0% |
Add support for new CloudFormation YAML templates.
It is unclear under which license this extension is provided? Is it Apache License, Version 2.0. If so can you add a LICENSE file and clearify this.
Here is excerpt from my CloudFormation template for some Aurora stack:
AuroraClusterKey:
Type: AWS::KMS::Key
Properties:
Description: !Sub "KMS key for - ${DBName}"
EnableKeyRotation: true
KeyPolicy:
Statement:
- Sid: !Sub '${DBName} Aurora PG Cluster KMS key policy'
Effect: Allow
Principal:
AWS:
- !Sub arn:aws:iam::${AWS::AccountId}:root
Action:
- kms:*
Resource: "*"
But, all of the !Sub
sections are marked as 'Unresolved Tag'.
I am using v0.0.24, freshly installed into VSCode.
I suppose I am doing something wrong, but I can't determine what :)
Hey all,
Great plugin, really enjoy it. When I use SAM cli templates like:
DerpApi:
Type: AWS::Serverless::Api
Properties:
StageName: dev
Cors:
AllowHeaders: "'Accept, Content-Type, Content-Length, Accept-Encoding, X-CSRF-Token, Authorization'"
AllowOrigin: "'*'" # TODO dynamic
AllowMethods: "'POST, GET, OPTIONS'"
the plugin throws errors since the resource is an "invalid" value. Here are the docs around it:
https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md
The correct property is written in CamelCase, so BucketName
Hello,
I downloaded the visx and ran the "code --install-extension" but got a local cert error. My understanding is that has to do with a proxy server error but this environment is entirely offline hence the need for an offline install.
Am I correct? And if so is there visx that is entirely offline? I do have the RedHat YAML installed.
This might be possible, hence posing as question. Is there a way within a certain YAML/JSON CFN context to list schema-legal sub-attributes?
As an example, if I have an AWS::EC2::Instance
resource and I go to Properties:
(YAML), I get useful autocomplete suggestions when I type 'a', 'b', etc, but the ability to see an entire list of legal properties would be helpful to me.
If this isn't currently possible but is something that would better be a request to redhat.vscode-yaml
please let me know and I'll go do so.
This doesn't have a snippet for any ECS resources or ECR repositories. (Great tool, though!)
Hi,
After couple of days of frustration i found that this extension does not work ansible plugin is installed on vscode. Please disable ansible pugin for this to work. I think most of the others vscode cloudformation plugin does not work if ansible pulgin is enabled.
Request to support more resources using the plugin. Example: AWS::EC2::LaunchTemplate
This plugin doesn't have any of the NatGateway stuff.
EIP properties don't validate correctly because of YAML spacing
Hi
I would like to contribute to this project to add some of the new resources that have appeared in cloud formation would it be possible to add me as a collaborator?
Thanks
Seems like there is no snippet for AWS::EC2::NatGateway or am I missing something?
would be really great if this project supports lsp
https://langserver.org/
if it is just a documentation issue id love to use this with other lsp clients besides vscode.
Incase not to sell the reasoning, many other Vscode enabled languages are based on LSP which allows people to get the vscode implementation and run it directly for other clients which will help get the implementation more robust or for the implementor to only worry about answering the server side of the contract as the client will handle how to get all the features / snippets acting correctly visually.
After installing the template, in "Contributions" I find the following languages file extensions:
json -> .json .cform .template
yaml -> .yml .yaml
I am using .template files but yaml format. How do I tell the plugin to interpret my .template files as yaml and not json?
Readme says "After installation, open your User Settings (Ctrl + ,) and paste preferences below into your settings file." However, it's not completely clear to me where in the settings to paste. When I do "Ctrl+," it opens settings with so many expandable lists (Text Editor, Workbench, Window... etc...), could you please specify?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.