Launch & use a graviton instance in 5 seconds.

publish

gravitonctl

Launch & use a graviton instance in 5 seconds.

gravitonctl

Usage:

To start (and connect to) a Graviton instance:

gravitonctl start {name}

To connect to a Graviton instance:

gravitonctl connect {name}

To terminate a Graviton instance:

gravitonctl terminate {name}

Todos:

  • clean up SSH Connection code
  • handle duplicate names more gracefully
  • cleaner argument/flag handling
Owner
Mathis Van Eetvelde
Devops/SRE & Cloud
Mathis Van Eetvelde
Similar Resources

Our library to use the sendcloud API endpoints in golang.

gosendcloud With this library it should be possible to interact with the endpoints of the sendcloud API via golang functions. Since we can not impleme

Dec 3, 2021

Use grype to do Docker layer scanning on various AWS ECR repositories

grype-scan-aws-ecr Use https://github.com/anchore/grype/ to do Docker layer scanning on various AWS ECR repositories. kubectl get pods -o custom-colum

Jan 6, 2022

The Bhojpur.NET Platform automates the provisioning of ready-to-use Network, Security, and IT applications

Bhojpur.NET Platform The Bhojpur.NET Platform automates the provisioning of ready-to-use Network, Security, and IT applications Learn more 👉 The Bhoj

Nov 9, 2022

Easy to use API for Twitch emotes including 7TV, BetterTTV and FFZ

tEmotes API Easy to use API for Twitch emotes We support: Twitch 7TV BetterTTV F

Dec 23, 2022

Use go-github sdk in go.

go-github Use go-github sdk in go. Prerequisite GitHub API Token Installation clone the repo git clone [email protected]:siansiansu/go-github.git Simpil

Dec 27, 2021

Elastos.ELA.Rosetta.API - How to write a Rosetta server and use either the Client package or Fetcher package to communicate

Examples This folder demonstrates how to write a Rosetta server and how to use e

Jan 17, 2022

Clusterpedia-client - clusterpedia-client supports the use of native client-go mode to call the clusterpedia API

clusterpedia-client supports the use of native client-go mode to call the cluste

Jan 7, 2022

Mailctl - A non-TUI, easy-to-use, fun, modern console-based email app

mailctl (in alpha) modern console-based email app (not TUI!) Thanks for checking

Oct 5, 2022

Client-go - Clusterpedia-client supports the use of native client-go mode to call the clusterpedia API

clusterpedia-client supports the use of native client-go mode to call the cluste

Dec 5, 2022
Comments
  • Error when terminating instance with attached network interface

    Error when terminating instance with attached network interface

    I attached a network interface to this instance manually. This caused gravitonctl termiante to fail because the network interface is dependent on the instance.

    There should be a check in place to see if the instance has any dependent resources

    mathis@MacBook-Pro ~ % gravitonctl terminate instance
    INFO[0000] Terminating: i-0546d514990d2711f
    panic: DependencyViolation: resource sg-0e49b3c51acab7a5a has a dependent object
    	status code: 400, request id: 796b5740-b055-4ad9-9aed-b950c8493544
    
    goroutine 1 [running]:
    gravitonctl/cmd.glob..func5(0x105334400, {0x1400006def0, 0x1, 0x1})
    	/Users/mathis/git/gravitonctl/cmd/terminate.go:26 +0xd8
    github.com/spf13/cobra.(*Command).execute(0x105334400, {0x1400006dec0, 0x1, 0x1})
    	/Users/mathis/go/pkg/mod/github.com/spf13/[email protected]/command.go:860 +0x640
    github.com/spf13/cobra.(*Command).ExecuteC(0x14000330000)
    	/Users/mathis/go/pkg/mod/github.com/spf13/[email protected]/command.go:974 +0x410
    github.com/spf13/cobra.(*Command).Execute(...)
    	/Users/mathis/go/pkg/mod/github.com/spf13/[email protected]/command.go:902
    gravitonctl/cmd.Execute()
    	/Users/mathis/git/gravitonctl/cmd/root.go:21 +0xcc
    main.main()
    	/Users/mathis/git/gravitonctl/main.go:12 +0x20
    
  • Improves network interface detachment handling

    Improves network interface detachment handling

    Fixes #1

    Detaches network interfaces with index > 0.

    This makes it so that if you have manually attached a network interface to your instance, you can still shut it down gracefully.

    Signed-off-by: Mathis Van Eetvelde [email protected]

  • Feature Request: ability to use --region

    Feature Request: ability to use --region

    Right now the only way to configure your region is by doing

    gravitonctl configure
    

    This seems inefficient and could be solved by allowing a --region flag.

This is a single-instance streaming server with chat.

Table of Contents AlbertoBroadcast stream server Build requirements Older Go Versions Compile and install Docker build Building the Container Running

Dec 24, 2021
Go library to use the imgur.com API

go-imgur Go library to use the imgur.com API. At the moment only the anonymous part of the API is supported, but that is used in a production environm

Sep 27, 2022
An easy-to-use unofficial SDK for Feishu and Lark Open Platform

go-lark go-lark is an easy-to-use unofficial SDK for Feishu and Lark Open Platform. go-lark implements messaging APIs, with full-fledged supports on b

Jan 2, 2023
Use AWS SQS as a clipboard to copy and paste across different systems and platforms

sqs_clipboard Use AWS SQS as a clipboard to copy and paste across different systems and platforms. Clipboard contents are encrypted in transit and at

Oct 16, 2022
Use Google REST api to extract your personal Photo Library

Photo Go A better approach to extracting your photos from Google to your personal cloud. I'm moving my photos out of Google to a Synology NAS. create

Dec 7, 2021
Handle any SQS use case, monitor any queue. Reusable for any project! Invoke in a goroutine to process SQS messages.

GOSQS This package is intended to be a Go SQS listener that can be imported and invoked as a goroutine handled by the life cycle of your service. It's

Dec 22, 2021
This bot require you to run the GETH client + use ethers framework.

Mad Liquidity Sniper This bot require you to run the GETH client + use ethers framework. All addresses and private keys contained have been changed fo

Oct 19, 2021
go-whatsapp-rest-API is a Go library for the WhatsApp web which use Swagger as api interface

go-whatsapp-rest-API go-whatsapp-rest-API is a Go library for the WhatsApp web which use Swagger as api interface Multi-devices (MD) Support. This ver

Dec 15, 2022
This repository shows how can we use `AWS Lambda` to build serverless applications in golang.

Serverless Api in Go with AWS Lambda Here we are going to use AWS Lambda to build serverless applications in golang. Prerequisites You’ll need an AWS

Nov 3, 2021
Rewritten glusterfs csi driver to use with heketi API
Rewritten glusterfs csi driver to use with heketi API

Glusterfs-Heketi CSI driver The CSI (Container Storage Interface) is a universal way to provide storage for the applications. This version of the plug

Dec 8, 2022