Advertisement
Javi

AWS: cli for retreiving output traffic from ec2

May 15th, 2020
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. DATE=2020-05-14
  2.  
  3. aws cloudwatch get-metric-statistics \
  4. --metric-name NetworkOut \
  5. --statistics Sum \
  6. --namespace AWS/EC2 \
  7. --period 86400 \
  8. --region eu-west-2 \
  9. --start-time ${DATA}T00:00:00Z \
  10. --end-time ${DATA}T23:59:59Z
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement