@edo1792/env-files
TypeScript icon, indicating that this package has built-in type declarations

1.1.7 • Public • Published

Usage

const Artifacts = require("../dist");

const configs = {
  files: {
    appSpec: {
      template: "./appSpec.yml",
      filename: "appSpec",
      ext: "yml",
      buildTo: "../",
    },
    taskdef: {
      template: "./taskdef.json",
      filename: "taskdef",
      ext: "json",
      buildTo: "../",
    },
  },
};

const envs = {
  $AWS_ACCOUNT_ID: process.argv[2],
  $AWS_DEFAULT_REGION: process.argv[3],
  $SERVICE_NAME: "dockerapp-task-def",
  $SERVICE_VERSION: "12",
  $CONTAINER_NAME: "nginx",
  $CONTAINER_PORT: 80,
};

const atfs = new Artifacts();
atfs.create(configs, envs);

Package Sidebar

Install

npm i @edo1792/env-files

Weekly Downloads

1

Version

1.1.7

License

MIT

Unpacked Size

7.32 kB

Total Files

10

Last publish

Collaborators

  • edo1792