Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@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

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

  • 0.0.29
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

cf-mock

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 23 Feb 2019

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

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc