miasma-aws 0.2.2 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/miasma/contrib/aws.rb +9 -1
- data/lib/miasma-aws/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1cb99ed122c82e005f8d171610fff1b9d5709e58
|
4
|
+
data.tar.gz: 1c9e9dc24dd0bbe188498a49c4f1255f82e11b94
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1bc7a82669aad8364a8efb38ebd87ae97b5682d1449561f24f810549d16b4ebf74be2af02faaba072bf17650dd86c1f7f55703ce51d23cb90485a8c91e181688
|
7
|
+
data.tar.gz: 11d1fc54c194c3401c5a1eb4c9a20c6d4be8679349b486386c54b86178ab3b3275941c9159111341bf2897a975c2b19533bdfae99a5e7f0b17e23e19ca2185d9
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
# v0.2.4
|
2
|
+
* [enhancement] Add aws credential file mappings for token value (#31)
|
3
|
+
* [fix] Support quoted values within aws credentials/configuration files (#31)
|
4
|
+
* [fix] Update VCR setup and usage to allow specs to run without live env vars
|
5
|
+
|
1
6
|
# v0.2.2
|
2
7
|
* [fix] Fix expiry check for STS tokens for assumed role
|
3
8
|
* [enhancement] Support direct usage of STS tokens
|
data/lib/miasma/contrib/aws.rb
CHANGED
@@ -358,7 +358,9 @@ module Miasma
|
|
358
358
|
klass.const_set(:CONFIG_FILE_REMAP,
|
359
359
|
Smash.new(
|
360
360
|
'region' => 'aws_region',
|
361
|
-
'role_arn' => 'aws_sts_role_arn'
|
361
|
+
'role_arn' => 'aws_sts_role_arn',
|
362
|
+
'aws_security_token' => 'aws_sts_token',
|
363
|
+
'aws_session_token' => 'aws_sts_token'
|
362
364
|
)
|
363
365
|
)
|
364
366
|
klass.const_set(:INSTANCE_PROFILE_HOST, 'http://169.254.169.254')
|
@@ -527,6 +529,12 @@ module Miasma
|
|
527
529
|
line_args.first, line_args.first
|
528
530
|
)
|
529
531
|
)
|
532
|
+
if(line_args.last.start_with?('"'))
|
533
|
+
unless(line_args.last.end_with?('"'))
|
534
|
+
raise ArgumentError.new("Failed to parse aws file! (#{file_path} line #{idx + 1})")
|
535
|
+
end
|
536
|
+
line_args.last.replace(line_args.last[1..-2]) # NOTE: strip quoted values
|
537
|
+
end
|
530
538
|
begin
|
531
539
|
creds[key].merge!(Smash[*line_args])
|
532
540
|
rescue => e
|
data/lib/miasma-aws/version.rb
CHANGED