stax 0.1.10 → 0.1.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/stax/base.rb +8 -0
- data/lib/stax/version.rb +1 -1
- data/lib/stax.rb +17 -17
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 62a62442fc3683b993fbaecb2ea165f78da8b057314f745c582c62a9ca5cbe37
|
4
|
+
data.tar.gz: 8c5bf0945d8bd817c083a2defcdda7fdc40809d165391e31550c2e5597cb02a0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e7fc989c78022f0252acbe5ef75a0b4f6806e19cc6a7a40df3088b00820d7285acd8721334491602b94e7aea2f3dfa1ffb66ca1ad2c5d4b8bde56f9700d363fb
|
7
|
+
data.tar.gz: 3af7fee718d39db56438b1184d75e93dc62241c6885ee0af843c14aa6344a9d669a41ce88fff5c851bad3675c2ded2a560f797ffc97b221e0422edeb30332f5a
|
data/lib/stax/base.rb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
require 'thor'
|
2
2
|
require 'stax/aws/sts'
|
3
|
+
require 'aws-sdk-ssm'
|
3
4
|
|
4
5
|
## clean exit on ctrl-c for all methods
|
5
6
|
trap('SIGINT', 'EXIT')
|
@@ -28,6 +29,13 @@ module Stax
|
|
28
29
|
@_aws_region ||= ENV['AWS_REGION']
|
29
30
|
end
|
30
31
|
|
32
|
+
## we commonly want to lookup SSM parameters to use as stack parameters
|
33
|
+
def aws_ssm_get(name, region: nil)
|
34
|
+
::Aws::SSM::Client.new({region: region}.compact).get_parameter(name: name)&.parameter&.value
|
35
|
+
rescue ::Aws::SSM::Errors::ParameterNotFound
|
36
|
+
fail_task("#{name} not found in #{region||aws_region}")
|
37
|
+
end
|
38
|
+
|
31
39
|
## find or create a stack object
|
32
40
|
def stack(id)
|
33
41
|
c = id.to_s.split(/[_-]/).map(&:capitalize).join # convert symbol to class string
|
data/lib/stax/version.rb
CHANGED
data/lib/stax.rb
CHANGED
@@ -20,26 +20,26 @@ require 'stax/stack/exports'
|
|
20
20
|
require 'stax/stack/resources'
|
21
21
|
require 'stax/stack/drift'
|
22
22
|
|
23
|
-
require 'stax/mixin/ec2'
|
24
|
-
require 'stax/mixin/alb'
|
25
|
-
require 'stax/mixin/elb'
|
26
|
-
require 'stax/mixin/sg'
|
23
|
+
# require 'stax/mixin/ec2'
|
24
|
+
# require 'stax/mixin/alb'
|
25
|
+
# require 'stax/mixin/elb'
|
26
|
+
# require 'stax/mixin/sg'
|
27
27
|
require 'stax/mixin/s3'
|
28
|
-
require 'stax/mixin/asg'
|
29
|
-
require 'stax/mixin/ecs'
|
30
|
-
require 'stax/mixin/ecr'
|
31
|
-
require 'stax/mixin/sqs'
|
32
|
-
require 'stax/mixin/kms'
|
33
|
-
require 'stax/mixin/ssm'
|
34
|
-
require 'stax/mixin/keypair'
|
35
|
-
require 'stax/mixin/emr'
|
36
|
-
require 'stax/mixin/ssh'
|
28
|
+
# require 'stax/mixin/asg'
|
29
|
+
# require 'stax/mixin/ecs'
|
30
|
+
# require 'stax/mixin/ecr'
|
31
|
+
# require 'stax/mixin/sqs'
|
32
|
+
# require 'stax/mixin/kms'
|
33
|
+
# require 'stax/mixin/ssm'
|
34
|
+
# require 'stax/mixin/keypair'
|
35
|
+
# require 'stax/mixin/emr'
|
36
|
+
# require 'stax/mixin/ssh'
|
37
37
|
require 'stax/mixin/lambda'
|
38
38
|
require 'stax/mixin/dynamodb'
|
39
39
|
require 'stax/mixin/logs'
|
40
|
-
require 'stax/mixin/apigw'
|
41
|
-
require 'stax/mixin/firehose'
|
40
|
+
# require 'stax/mixin/apigw'
|
41
|
+
# require 'stax/mixin/firehose'
|
42
42
|
require 'stax/mixin/codebuild'
|
43
43
|
require 'stax/mixin/codepipeline'
|
44
|
-
require 'stax/mixin/rds'
|
45
|
-
require 'stax/mixin/cloudfront'
|
44
|
+
# require 'stax/mixin/rds'
|
45
|
+
# require 'stax/mixin/cloudfront'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stax
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Richard Lister
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-03-
|
11
|
+
date: 2022-03-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|