howtv / go-awsctr Goto Github PK
View Code? Open in Web Editor NEWaws api utility package
aws api utility package
awsctr ec2 start/stop id
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
呼び出し側でawsctrを使っているのに、import "github.com/aws/aws-sdk-go/service/ecs"
をしたくないので、awsctr側でecsのstructをaliasとして定義して公開してあげたい。
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
https://github.com/google/go-cloud
bata越えたら考えてもいいかも。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.