How to use the yaml-cfn.yamlDump function in yaml-cfn

To help you get started, we’ve selected a few yaml-cfn examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github SnappyTutorials / aws-sam-webpack-plugin / src / index.ts View on Github external
compiler.hooks.afterEmit.tap("SamPlugin", (compilation: any) => {
      if (this.samConfigs && this.launchConfig) {
        for (const samConfig of this.samConfigs) {
          fs.writeFileSync(`${samConfig.buildRoot}/template.yaml`, yamlDump(samConfig.samConfig));
        }
        if (this.options.vscodeDebug) {
          if (!fs.existsSync(".vscode")) {
            fs.mkdirSync(".vscode");
          }
          fs.writeFileSync(".vscode/launch.json", JSON.stringify(this.launchConfig));
        }
      } else {
        console.log("It looks like SamPlugin.entry() was not called");
      }
    });
  }

yaml-cfn

Parser and schema for CloudFormation YAML template tags.

Apache-2.0
Latest version published 2 years ago

Package Health Score

47 / 100
Full package analysis

Popular yaml-cfn functions