Created
July 8, 2019 19:12
-
-
Save Zeerg/e8372852447373038e94f0cbd4fcb10c to your computer and use it in GitHub Desktop.
Jenkins AWS CLI Examples
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#### 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