You can find the IP addresses where requests to your VPC Network Interfaces are coming from through the VPC Flow Logs. These logs can be published in S3/CloudWatch. You can also view/query the data through Athena.
package main import "fmt" var m map[string]string func main() { m = make(map[string]string) m["foo"] = "abc" if val, ok := m["foo"]; ok { fmt.Println("foo found -", val) } else { fmt.Println("foo not found") } if val, ok := m["bar"]; ok { fmt.Println("bar found -", val) } else { fmt.Println("bar not found") } } Output: foo found - abc bar not found
Comments
Post a Comment