Created
March 23, 2015 12:16
-
-
Save jamesdavidson/911d7b45465bd84e0e33 to your computer and use it in GitHub Desktop.
Get AWS resource data using Amazonica
This file contains hidden or 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
; Use Amazonica from https://github.com/mcohen01/amazonica | |
(ns com.example | |
(:use amazonica.aws.ec2 | |
amazonica.aws.s3 | |
amazonica.aws.route53)) | |
(describe-instances) | |
(list-buckets) | |
(map :name (list-buckets)) | |
(list-hosted-zones) | |
(describe-vpcs {:endpoint "ap-southeast-2"}) | |
(map :state (:vpcs (describe-vpcs {:endpoint "ap-southeast-2"}))) | |
(map :is-default (:vpcs (describe-vpcs {:endpoint "ap-southeast-2"}))) | |
(map :cidr-block (:vpcs (describe-vpcs {:endpoint "ap-southeast-2"}))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment