@awspilot/cf-mock
[![Build Status](https://travis-ci.org/awspilot/cf-mock.svg?branch=master)](https://travis-ci.org/awspilot/cf-mock)
Last updated 4 months ago by adrian.praja .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @awspilot/cf-mock 
SYNC missed versions from official npm registry.

cf-mock

Build Status

Not much value in here, just a subproject of @awspilot/dynamodb-ui

It's main purpose is to expose a minimal api that mimic the AWS Cloudformation functionality

Why ? Manage tables inside dynamodb-local using cloudformation templates

cf-mock uses dynamodb as storage

	npm install @awspilot/cf-mock
	export CF_DYNAMODB_ENDPOINT="http://localhost:8000/us-east-1"
	export CF_DYNAMODB_KEY="myKeyId"
	export CF_DYNAMODB_SECRET="secretKey"
	# CF_DYNAMODB_REGION - will be taken from "new AWS.Cloudformation()" endpoint's path

	export DYNAMODB_ENDPOINT="http://localhost:8000"
	export DYNAMODB_KEY="myKeyId"
	export DYNAMODB_SECRET="secretKey"
	# DYNAMODB_REGION - will be taken from "new AWS.Cloudformation()" endpoint's path

 	cf-mock &
	const AWS = require('aws-sdk')
	var cloudformation = new AWS.CloudFormation({
		endpoint: 'http://localhost:10001/us-east-1',

		// region is required by aws-sdk to build the endpoint host when endpoint is not passwd
		// we passed an endpoint so it does not really matter what we write in region
		region: 'xyz',

		accessKeyId: "myKeyId",
		secretAccessKey: "secretKey",
	});

Current Tags

  • 0.11.0                                ...           latest (4 months ago)

9 Versions

  • 0.11.0                                ...           4 months ago
  • 0.9.5                                ...           4 months ago
  • 0.9.2                                ...           7 months ago
  • 0.9.0                                ...           a year ago
  • 0.2.5 [deprecated]           ...           a year ago
  • 0.2.4 [deprecated]           ...           a year ago
  • 0.2.3 [deprecated]           ...           a year ago
  • 0.0.29 [deprecated]           ...           a year ago
  • 0.0.25 [deprecated]           ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 9
Last Month 19
Dependencies (6)
Dev Dependencies (2)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |