aws-sam-helper-commands
A CLI tool to make certain common AWS SAM commands easier to use
Last updated a month ago by ericallam .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install aws-sam-helper-commands 
SYNC missed versions from official npm registry.

aws-sam-helper-commands

A CLI tool to make certain common AWS SAM commands easier to use

oclif Version Downloads/week License

Commands

Deploy

Deploys a SAM stack to AWS using the stack definition in stack-config.json.

To use, first create a stack-config.json file in the root of your repository, e.g.:

{
  "namespace": "Services",
  "service": "FeedApi",
  "name": "feed-api",
  "capabilities": ["CAPABILITY_IAM"],
  "stages": {
    "dev": {
      "profile": "dev",
      "regions": {
        "eu-west-2": {
          "bucket": "solve-dev-source-code-eu-west-2"
        }
      }
    }
  },
  "secrets": {
    "FeatureFlagService": {
      "token": "api-1234",
      "projectKey": "app"
    }
  }
}

Note As you can see above, this file may contain secrets. For that reason, make sure to add stack-config.json to your .gitignore file to avoid publishing the file to a remote repo.

Then, to deploy, run deploy and pass in the stage name and the region to deploy to:

$ npx sam-helper deploy --stage dev --region eu-west-2

The above command will deploy a stack named feed-api-dev and will make sure the /Services/FeedApi/FeatureFlagService secret exists, if not it will be created.

You can skip running sam build by passing the skip-build flag:

$ npx sam-helper deploy --stage dev --region eu-west-2 --skip-build

Current Tags

  • 0.1.5                                ...           latest (a month ago)

15 Versions

  • 0.1.5                                ...           a month ago
  • 0.1.4                                ...           a month ago
  • 0.1.3                                ...           2 months ago
  • 0.1.2                                ...           3 months ago
  • 0.1.1                                ...           3 months ago
  • 0.1.0                                ...           3 months ago
  • 0.0.9                                ...           3 months ago
  • 0.0.8                                ...           3 months ago
  • 0.0.7                                ...           3 months ago
  • 0.0.6                                ...           3 months ago
  • 0.0.5                                ...           3 months ago
  • 0.0.4                                ...           5 months ago
  • 0.0.3                                ...           5 months ago
  • 0.0.2                                ...           5 months ago
  • 0.0.1                                ...           6 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 50
Dependencies (11)
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |