Git Product home page Git Product logo

cform-vscode's People

Contributors

abemedia avatar alexfrosa avatar aws-scripting-guy avatar azure-pipelines[bot] avatar dabeah avatar emepetres avatar galmeida avatar gitter-badger avatar gunman808 avatar maurogestoso avatar pacohope avatar ssennettau avatar tac0x2a avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

cform-vscode's Issues

yaml template not working

After installing I typed start and press tab key, but it did not bring up the basic template. it works for .json file though.

SAM Support

Any plans on adding the "AWS::Serverless::Function" or SAM support for Resource Types?

S

Any plans on adding the "AWS::Serverless::Function" or SAM support for Resource Types?

Intellisense

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

YAML for ec2-instance Properties UserData generates an error when launching stack

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

Extension not working with YAML only recently

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.

Missing language tab.

The language UI element stops working for JSON (is missing).

Workaround to change the language when in file.

cmd+SHIFT+P > Change Language Mode

image

Proxy support

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)

YAML syntax error when using AWS intrinsic functions

Hi there,

Many thanks for adding YAML support to your extension.

I'm hitting the following issue in VS Code when using intrinsic functions:

capture

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

Custom yaml tag type need to be mentioned

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

cloudformation doesn't do auto complete

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

System Info
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%

CloudFormation specific constructs are shown as invalid.

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.

image

I suppose I am doing something wrong, but I can't determine what :)

Add support for SAM cli templates

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

Offline Installation

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.

Is there "show all allowed attributes" support?

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.

Does NOT work if ansible pugin is installed in vscode.

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.

NatGateway

This plugin doesn't have any of the NatGateway stuff.

Contribute

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

NatGatway no snippet

Seems like there is no snippet for AWS::EC2::NatGateway or am I missing something?

Support for Language Server Protocol?

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.

use yaml format with .template files

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?

Where to paste intrinsic function tags?

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.