Coder Social home page Coder Social logo

go-awsctr's People

Contributors

komapotter avatar ymgyt avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

komapotter

go-awsctr's Issues

assume role command

need assume role command like that

awsctr assume <target_role> exec awsctr logs list

mfa option

awsctr assume --mfa=<mfa_arn> <target_role> exec awsctr logs list

with this command, we could wrap other aws operation commands

awsctr assume tf-role exec terraform apply

[ECS] interface変更

呼び出し側でawsctrを使っているのに、import "github.com/aws/aws-sdk-go/service/ecs" をしたくないので、awsctr側でecsのstructをaliasとして定義して公開してあげたい。

ref.
https://github.com/howtv/howtv_server_resources/commit/21ab7be38e43fbcfedbf2a06e38f0988a9055702#diff-366f18828b64f41a7063a5521c83e876L15

https://github.com/howtv/howtv_server_resources/commit/21ab7be38e43fbcfedbf2a06e38f0988a9055702#diff-366f18828b64f41a7063a5521c83e876L68

panic awsctr logs watch

awsctr logs watch <logGroup> -format=ecs                                                [master]
"LogStreamName:" "*************************************"
panic: interface conversion: interface {} is nil, not string

goroutine 1 [running]:
main.(*logsWatchCommand).formatECSMessage(0xc42008a660, 0xc4204d4000, 0xaa, 0x0, 0xc4204a5c01)
	/Users/yuta.yamaguchi/go/src/github.com/howtv/go-awsctr/cmd/awsctr/logs_watch_command.go:86 +0xe6
main.(*logsWatchCommand).format(0xc42008a660, 0xc4204d4000, 0xaa, 0x0, 0x13)
	/Users/yuta.yamaguchi/go/src/github.com/howtv/go-awsctr/cmd/awsctr/logs_watch_command.go:93 +0x64
main.(*logsWatchCommand).run(0xc42008a660, 0x7ffeefbff34a, 0x13, 0x0, 0x0)
	/Users/yuta.yamaguchi/go/src/github.com/howtv/go-awsctr/cmd/awsctr/logs_watch_command.go:132 +0x39a
main.(*logsWatchCommand).Run(0xc42008a660, 0xc42001e170, 0x2, 0x2, 0x14e5b20)
	/Users/yuta.yamaguchi/go/src/github.com/howtv/go-awsctr/cmd/awsctr/logs_watch_command.go:69 +0x6d
github.com/mitchellh/cli.(*CLI).Run(0xc4200d2b40, 0xc420169bf0, 0x14ccb31, 0x9)
	/Users/yuta.yamaguchi/go/src/github.com/mitchellh/cli/cli.go:255 +0x1eb
main.main()
	/Users/yuta.yamaguchi/go/src/github.com/howtv/go-awsctr/cmd/awsctr/main.go:18 +0x166

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.