Skip to content

Commit

Permalink
remove public IP param from ec2 response
Browse files Browse the repository at this point in the history
  • Loading branch information
Abrar-Ahmed7 committed Feb 17, 2023
1 parent a3cfae0 commit 2ca4c94
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions internal/aws/ec2.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ func GetInstances(sess session.Session) ([]EC2Resp, error) {
InstanceType: *instance.InstanceType,
AvailabilityZone: *instance.Placement.AvailabilityZone,
InstanceState: *instance.State.Name,
PublicDNS: *instance.PrivateDnsName,
PublicIPv4: *instance.PrivateIpAddress,
PublicDNS: *instance.PublicDnsName,
MonitoringState: *instance.Monitoring.State,
LaunchTime: IST.Format("Mon Jan _2 15:04:05 2006")}
ec2Info = append(ec2Info, *ec2Resp)
Expand Down
1 change: 0 additions & 1 deletion internal/aws/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ type EC2Resp struct {
AvailabilityZone string
InstanceState string
PublicDNS string
PublicIPv4 string
MonitoringState string
LaunchTime string
}
Expand Down

0 comments on commit 2ca4c94

Please sign in to comment.