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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e17c465590b04d1db946eb5cf12e660fb01a63c348aefcfadca2b5d98e568e52
4
- data.tar.gz: d585924ea4d53397cc817cda8a617f7a14c430d84befa9f485ee5440a64653af
3
+ metadata.gz: 62a62442fc3683b993fbaecb2ea165f78da8b057314f745c582c62a9ca5cbe37
4
+ data.tar.gz: 8c5bf0945d8bd817c083a2defcdda7fdc40809d165391e31550c2e5597cb02a0
5
5
  SHA512:
6
- metadata.gz: 4d71a59e526634d2c27d768db9e979569482e53bfeb43ae3907326dd851ba983c3498d5b04ec11727461abcdee5e1dfcf7f634a0c1b6338901718b9092652fb0
7
- data.tar.gz: eb8469a0fd373332b3d51171324e9ec9857c77e8a75cdf50c1f6414304af84bcfde1628087ea1866acf6a63b29f4ca5fa9cc13364ec7d8de59e2d330cd20555a
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
@@ -1,3 +1,3 @@
1
1
  module Stax
2
- VERSION = '0.1.10'
2
+ VERSION = '0.1.11'
3
3
  end
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.10
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-17 00:00:00.000000000 Z
11
+ date: 2022-03-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler