DevopsArtFactory / goployer

AWS Deployer with Go
https://goployer.dev
Apache License 2.0
72 stars 13 forks source link

add security group information to status command #105

Closed GwonsooLee closed 3 years ago

GwonsooLee commented 3 years ago

Fixes: #104 Related: Relevant tracking issues, for context Merge before/after: Dependent or prerequisite PRs

Description Add security group information in goployer status This could help users to find the ingress/egress information with api call

Sample result

$ ./goployer status hello
? Choose autoscaling group: hello-dev_apnortheast2-v001
Name:           hello-dev_apnortheast2-v001
Created Time:   2020-09-17 07:06:58.908 +0000 UTC

πŸ“¦ Capacity
MINIMUM    DESIRED    MAXIMUM
1          1          2

πŸ–₯ Instance Statistics
 βˆ™ t3a.medium: 1

βš“ Tags
 βˆ™ Name=hello-dev_apnortheast2-v001
 βˆ™ ansible-tags=all
 βˆ™ app=hello
 βˆ™ project=test
 βˆ™ repo=hello-deploy
 βˆ™ stack=_apnortheast2
 βˆ™ stack-name=artd
 βˆ™ test=test

πŸš₯ Inbound Rules
ID                        PROTOCOL   FROM    TO      SOURCE                 DESCRIPTION
 βˆ™ sg-0d2c6874708e46db0   tcp        80      80      sg-066e526d93370530e   Port Open for hello
 βˆ™ sg-0630dcb93f961fa8f   tcp        10080   10080   10.0.0.0/8             inbound rule for jmx exporter
 βˆ™ sg-0630dcb93f961fa8f   tcp        9100    9100    10.0.0.0/8             inbound rule for node exporter
 βˆ™ sg-0630dcb93f961fa8f   tcp        9100    9100    10.1.0.0/16

πŸš₯ Outbound Rules
ID                        PROTOCOL   FROM   TO     SOURCE      DESCRIPTION
 βˆ™ sg-0d2c6874708e46db0   ALL        ALL    ALL    0.0.0.0/0   Internal outbound traffic
 βˆ™ sg-0630dcb93f961fa8f   tcp        80     80     0.0.0.0/0   https any outbound
 βˆ™ sg-0630dcb93f961fa8f   tcp        443    443    0.0.0.0/0   https any outbound
 βˆ™ sg-0630dcb93f961fa8f   tcp        9200   9200   0.0.0.0/0   ElasticSearch any outbound
 βˆ™ sg-0630dcb93f961fa8f   tcp        9092   9092   0.0.0.0/0   kafka any outbound

Release Note

- Add security group information in `goployer status` command
codecov[bot] commented 3 years ago

Codecov Report

Merging #105 into main will decrease coverage by 0.08%. The diff coverage is 0.00%.

Impacted file tree graph

@@           Coverage Diff            @@
##            main    #105      +/-   ##
========================================
- Coverage   6.36%   6.27%   -0.09%     
========================================
  Files         24      24              
  Lines       2908    2949      +41     
========================================
  Hits         185     185              
- Misses      2712    2753      +41     
  Partials      11      11              
Impacted Files Coverage Ξ”
pkg/aws/cloudwatch.go 0.54% <ΓΈ> (+0.01%) :arrow_up:
pkg/aws/dynamodb.go 0.00% <ΓΈ> (ΓΈ)
pkg/aws/ec2.go 0.00% <0.00%> (ΓΈ)
pkg/constants/constants.go 66.66% <ΓΈ> (ΓΈ)
pkg/inspector/inspector.go 0.00% <0.00%> (ΓΈ)
pkg/runner/rurnner.go 4.55% <0.00%> (-0.08%) :arrow_down:
pkg/tool/color.go 0.00% <0.00%> (ΓΈ)

Continue to review full report at Codecov.

Legend - Click here to learn more Ξ” = absolute <relative> (impact), ΓΈ = not affected, ? = missing data Powered by Codecov. Last update ce9f780...339c36f. Read the comment docs.