awx 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/aws/aws_cache.rb +53 -0
- data/lib/aws/aws_cli.rb +166 -0
- data/lib/aws/aws_cloudformation.rb +68 -0
- data/lib/aws/aws_config.rb +39 -0
- data/lib/aws/aws_credentials.rb +9 -0
- data/lib/aws/aws_outputter.rb +247 -0
- data/lib/aws/aws_reports.rb +271 -0
- data/lib/aws/aws_validator.rb +30 -0
- data/lib/awx.rb +65 -71
- data/lib/core/config.rb +127 -0
- data/lib/core/config_unique.rb +64 -0
- data/lib/core/opt.rb +17 -0
- data/lib/routes/aws_cloudformation_create.rb +732 -0
- data/lib/routes/aws_cloudformation_delete.rb +37 -0
- data/lib/routes/aws_cloudformation_detect_drift.rb +44 -0
- data/lib/routes/aws_lambda.rb +122 -0
- data/lib/routes/aws_list.rb +234 -0
- data/lib/routes/setup.rb +31 -0
- data/lib/version.rb +1 -1
- data/opt/yml/aws-reports.yml +113 -0
- metadata +28 -10
data/lib/version.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
AWX_VERSION = '0.2.0'
|
@@ -0,0 +1,113 @@
|
|
1
|
+
# Try to order these with most frequently accessed at the top.
|
2
|
+
AcmCertificates:
|
3
|
+
regions: [ us-east-1, us-east-2, us-west-1, us-west-2 ]
|
4
|
+
regionsPreferred: [ us-east-1 ]
|
5
|
+
cli:
|
6
|
+
command: acm list-certificates --certificate-statuses ISSUED
|
7
|
+
root: CertificateSummaryList
|
8
|
+
export:
|
9
|
+
id: AcmCertificateARN
|
10
|
+
value: CertificateArn
|
11
|
+
description: DomainName
|
12
|
+
columns:
|
13
|
+
- [ title: CertificateARN, key: CertificateArn, width: 90 ]
|
14
|
+
- [ title: DomainName, key: DomainName, width: "*" ]
|
15
|
+
APIs:
|
16
|
+
regions: [ us-east-1, us-east-2, us-west-1, us-west-2 ]
|
17
|
+
regionsPreferred: [ us-west-2 ]
|
18
|
+
cli:
|
19
|
+
command: apigateway get-rest-apis
|
20
|
+
root: items
|
21
|
+
export:
|
22
|
+
id: RestApiId
|
23
|
+
value: id
|
24
|
+
description: name
|
25
|
+
columns:
|
26
|
+
- [ title: Name, key: name, width: 90 ]
|
27
|
+
- [ title: Id, key: id, width: 29 ]
|
28
|
+
- [ title: Type(s), key: endpointConfiguration.types, width: "*" ]
|
29
|
+
CloudFormationStacks:
|
30
|
+
regions: [ us-east-1, us-east-2, us-west-1, us-west-2 ]
|
31
|
+
regionsPreferred: [ us-west-2 ]
|
32
|
+
cli:
|
33
|
+
command: cloudformation list-stacks --stack-status-filter CREATE_IN_PROGRESS CREATE_FAILED CREATE_COMPLETE ROLLBACK_IN_PROGRESS ROLLBACK_FAILED ROLLBACK_COMPLETE DELETE_IN_PROGRESS DELETE_FAILED UPDATE_IN_PROGRESS UPDATE_COMPLETE_CLEANUP_IN_PROGRESS UPDATE_COMPLETE UPDATE_ROLLBACK_IN_PROGRESS UPDATE_ROLLBACK_FAILED UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS UPDATE_ROLLBACK_COMPLETE REVIEW_IN_PROGRESS
|
34
|
+
root: StackSummaries
|
35
|
+
columns:
|
36
|
+
- [ title: StackId, key: StackId, width: 169 ]
|
37
|
+
- [ title: DriftStatus, key: DriftInformation.StackDriftStatus, width: 15 ]
|
38
|
+
- [ title: Status, key: StackStatus, width: "*" ]
|
39
|
+
CloudFrontDistributions:
|
40
|
+
regions: [ Global ]
|
41
|
+
regionsPreferred: [ Global ]
|
42
|
+
cli:
|
43
|
+
command: cloudfront list-distributions
|
44
|
+
root: DistributionList.Items
|
45
|
+
columns:
|
46
|
+
- [ title: Origin, key: DefaultCacheBehavior.TargetOriginId, width: 90 ]
|
47
|
+
- [ title: Id, key: Id, width: 29 ]
|
48
|
+
- [ title: Public DNS, key: DomainName, width: 40 ]
|
49
|
+
- [ title: ProtocolPolicy, key: DefaultCacheBehavior.ViewerProtocolPolicy, width: 30 ]
|
50
|
+
- [ title: Status, key: Status, width: "*", formatter: cloudfront-status ]
|
51
|
+
CognitoUserPools:
|
52
|
+
regions: [ us-east-1, us-east-2, us-west-2 ]
|
53
|
+
regionsPreferred: [ us-west-2 ]
|
54
|
+
cli:
|
55
|
+
command: cognito-idp list-user-pools --max-results 60
|
56
|
+
root: UserPools
|
57
|
+
columns:
|
58
|
+
- [ title: Id, key: Id, width: 90 ]
|
59
|
+
- [ title: Name, key: Name, width: 46 ]
|
60
|
+
- [ title: CreationDate, key: CreationDate, width: 31, formatter: epoch-date ]
|
61
|
+
- [ title: LastModifiedDate, key: LastModifiedDate, width: "*", formatter: epoch-date ]
|
62
|
+
EC2Instances:
|
63
|
+
regions: [ us-east-1, us-east-2, us-west-1, us-west-2 ]
|
64
|
+
regionsPreferred: [ us-west-2 ]
|
65
|
+
cli:
|
66
|
+
command: ec2 describe-instances
|
67
|
+
root: Reservations[].Instances
|
68
|
+
columns:
|
69
|
+
- [ title: InstanceID, key: InstanceId, width: 30 ]
|
70
|
+
- [ title: PrivateIP, key: PrivateIpAddress, width: 29, color: light-grey ]
|
71
|
+
- [ title: PublicIP, key: PublicIpAddress, width: 29, color: light-grey ]
|
72
|
+
- [ title: ImageId, key: ImageId, width: 30 ]
|
73
|
+
- [ title: Av/Zone, key: Placement.AvailabilityZone, width: 15 ]
|
74
|
+
- [ title: SecurityGroup, key: SecurityGroups, width: 15, formatter: ec2-security-groups ]
|
75
|
+
- [ title: VpcId, key: VpcId, width: 15 ]
|
76
|
+
- [ title: KeyName, key: KeyName, width: 15 ]
|
77
|
+
- [ title: Type, key: InstanceType, width: 15 ]
|
78
|
+
- [ title: Status, key: State.Name, width: "*", formatter: ec2-status ]
|
79
|
+
Lambdas:
|
80
|
+
regions: [ us-east-1, us-east-2, us-west-1, us-west-2 ]
|
81
|
+
regionsPreferred: [ us-west-2 ]
|
82
|
+
cli:
|
83
|
+
command: lambda list-functions
|
84
|
+
root: Functions
|
85
|
+
columns:
|
86
|
+
- [ title: FunctionArn, key: FunctionArn, width: 90 ]
|
87
|
+
- [ title: FunctionName, key: FunctionName, width: 46 ]
|
88
|
+
- [ title: Handler, key: Handler, width: 31 ]
|
89
|
+
- [ title: LastModified, key: LastModified, width: "*" ]
|
90
|
+
Route53HostedZones:
|
91
|
+
regions: [ Global ]
|
92
|
+
regionsPreferred: [ Global ]
|
93
|
+
cli:
|
94
|
+
command: route53 list-hosted-zones
|
95
|
+
root: HostedZones
|
96
|
+
export:
|
97
|
+
id: Route53HostedZoneId
|
98
|
+
value: Id
|
99
|
+
valueFormatter: route-53-hosted-zone-id
|
100
|
+
description: Name
|
101
|
+
columns:
|
102
|
+
- [ title: HostedZoneId, key: Id, width: 90, formatter: route-53-hosted-zone-id ]
|
103
|
+
- [ title: DomainName, key: Name, width: "*" ]
|
104
|
+
WorkMailOrganizations:
|
105
|
+
regions: [ us-east-1, us-west-2 ]
|
106
|
+
regionsPreferred: [ us-east-1 ]
|
107
|
+
cli:
|
108
|
+
command: workmail list-organizations
|
109
|
+
root: OrganizationSummaries
|
110
|
+
columns:
|
111
|
+
- [ title: OrganizationId, key: OrganizationId, width: 90 ]
|
112
|
+
- [ title: Alias, key: Alias, width: 29 ]
|
113
|
+
- [ title: State, key: State, width: "*" ]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: awx
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Albert Rannetsperger
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-07-
|
11
|
+
date: 2019-07-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: columnist
|
@@ -30,34 +30,34 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 1.
|
33
|
+
version: 1.2.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - '='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 1.
|
40
|
+
version: 1.2.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: blufin-lib
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - '='
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 1.
|
47
|
+
version: 1.5.0
|
48
48
|
- - ">="
|
49
49
|
- !ruby/object:Gem::Version
|
50
|
-
version: 1.
|
50
|
+
version: 1.5.0
|
51
51
|
type: :runtime
|
52
52
|
prerelease: false
|
53
53
|
version_requirements: !ruby/object:Gem::Requirement
|
54
54
|
requirements:
|
55
55
|
- - '='
|
56
56
|
- !ruby/object:Gem::Version
|
57
|
-
version: 1.
|
57
|
+
version: 1.5.0
|
58
58
|
- - ">="
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: 1.
|
60
|
+
version: 1.5.0
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: parseconfig
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
@@ -80,8 +80,26 @@ extensions: []
|
|
80
80
|
extra_rdoc_files: []
|
81
81
|
files:
|
82
82
|
- bin/awx
|
83
|
+
- lib/aws/aws_cache.rb
|
84
|
+
- lib/aws/aws_cli.rb
|
85
|
+
- lib/aws/aws_cloudformation.rb
|
86
|
+
- lib/aws/aws_config.rb
|
87
|
+
- lib/aws/aws_credentials.rb
|
88
|
+
- lib/aws/aws_outputter.rb
|
89
|
+
- lib/aws/aws_reports.rb
|
90
|
+
- lib/aws/aws_validator.rb
|
83
91
|
- lib/awx.rb
|
92
|
+
- lib/core/config.rb
|
93
|
+
- lib/core/config_unique.rb
|
94
|
+
- lib/core/opt.rb
|
95
|
+
- lib/routes/aws_cloudformation_create.rb
|
96
|
+
- lib/routes/aws_cloudformation_delete.rb
|
97
|
+
- lib/routes/aws_cloudformation_detect_drift.rb
|
98
|
+
- lib/routes/aws_lambda.rb
|
99
|
+
- lib/routes/aws_list.rb
|
100
|
+
- lib/routes/setup.rb
|
84
101
|
- lib/version.rb
|
102
|
+
- opt/yml/aws-reports.yml
|
85
103
|
homepage: http://rubygems.org/gems/awx
|
86
104
|
licenses:
|
87
105
|
- MIT
|
@@ -94,7 +112,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
94
112
|
requirements:
|
95
113
|
- - "~>"
|
96
114
|
- !ruby/object:Gem::Version
|
97
|
-
version: '2.
|
115
|
+
version: '2.3'
|
98
116
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
99
117
|
requirements:
|
100
118
|
- - ">="
|
@@ -102,7 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
102
120
|
version: '0'
|
103
121
|
requirements: []
|
104
122
|
rubyforge_project:
|
105
|
-
rubygems_version: 2.
|
123
|
+
rubygems_version: 2.6.12
|
106
124
|
signing_key:
|
107
125
|
specification_version: 4
|
108
126
|
summary: An AWS-cli wrapper.
|