Skip to content

Instantly share code, notes, and snippets.

@Zeerg
Created July 8, 2019 19:12
Show Gist options
  • Save Zeerg/e8372852447373038e94f0cbd4fcb10c to your computer and use it in GitHub Desktop.
Save Zeerg/e8372852447373038e94f0cbd4fcb10c to your computer and use it in GitHub Desktop.
Jenkins AWS CLI Examples
#### Get Network ACLS from the AWS API using aws cli
def p = 'aws ec2 describe-network-acls --output text'.execute() | 'grep NETWORKACLS'.execute() | ['awk', '{ print $3 }'].execute()
p.waitFor()
return p.text.tokenize()
### More to come
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment