Socket
Socket
Sign inDemoInstall

@awspilot/cf-mock

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@awspilot/cf-mock

[![Build Status](https://travis-ci.org/awspilot/cf-mock.svg?branch=master)](https://travis-ci.org/awspilot/cf-mock)


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

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",
	});

FAQs

Package last updated on 18 Feb 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc