Sha256: 2d1f107512695bd2daf7fcc6aabb60d8d148a8e02be9b7d2a9ead1b50f2e705b
Contents?: true
Size: 290 Bytes
Versions: 1
Compression:
Stored size: 290 Bytes
Contents
# code: utf-8 require 'thor' require 'thor/aws' module AwsAccountNumber class CLI < Thor include Thor::Aws desc :get, "get AWS Account Number" def get puts ec2.client.describe_security_groups(group_names: ['default']).security_groups.first.owner_id end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
aws_account_number-0.1.0 | lib/aws_account_number/cli.rb |