examples/

directory
v0.0.0-...-46547a1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 1, 2019 License: ISC

README

Examples

Running these examples

On Mac OS X, you will need to use Docker to run the cwlink_bridge example since the tap interface is not supported by default in Mac OS X.

Otherwise, everything can be run as a process. MAC and IP addresses of endpoints are specified in code.

    go run examples/cwlink_client/main.go

Standard AWS environment variables need to be set to read/write to the appropriate AWS services (Amazon Cloudwatch or AWS Lambda tagS): AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY.

Examples running in AWS Lambda

There is a SAM template available for deploying a test network to your AWS account.

    sam package --s3-bucket [your-bucket] > packaged.yaml
    sam deploy --template-file packaged.yaml --stack-name [your-stack] --capabilities CAPABILITY_IAM

Standalone examples

These examples can run anywhere, they just need to be able to read/write to specific AWS services.

Amazon Cloudwatch-based network stack designed to be bridged with a local tun or tap interface.

Amazon Cloudwatch-based network stack designed to be run in an unpriviliged environment where interfaces cannot be created (i.e. AWS Lambda)

AWS Lambda Tag-based network stack.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL