aws-session-credentials 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Dockerfile +17 -0
- data/lib/aws/session/credentials/cli.rb +7 -1
- data/lib/aws/session/credentials/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c149de58535378c9f9081901e21e21dda9b823aee1db9ef0cb4d859a684ad6fb
|
4
|
+
data.tar.gz: c3a07541c9ef144b4cb803eef4113cff5b8522105ce68bb6020c6ead91726430
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 85480818524ab1f5188558776afe2dcf4e60d44b72ca2a4595904dc4442eab60ceec42ad0af4edc12d5f2322caef10052990b949a1e32e4da81ab4ab4354b80f
|
7
|
+
data.tar.gz: 539cb044640f7ad259071a3903d1883efea7ca850a4bd111c2563f2df7858ff1ff9498e9aefb838ea13f85ebee8a660e87b8bdc54c681fe0f5d5cb6bcc7722de
|
data/Dockerfile
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
FROM ruby:2.4.3-alpine as builder
|
2
|
+
|
3
|
+
RUN apk add --no-cache build-base ruby-dev git
|
4
|
+
|
5
|
+
RUN gem install aws-session-credentials
|
6
|
+
|
7
|
+
RUN rm -rf /usr/local/bundle/cache && \
|
8
|
+
find /usr/local/bundle/gems/ -name "*.c" -delete && \
|
9
|
+
find /usr/local/bundle/gems/ -name "*.o" -delete
|
10
|
+
|
11
|
+
FROM ruby:2.4.3-alpine
|
12
|
+
|
13
|
+
COPY --from=builder /usr/local/bundle /usr/local/bundle
|
14
|
+
|
15
|
+
RUN apk add --no-cache pcsc-lite-libs
|
16
|
+
|
17
|
+
ENTRYPOINT ["aws-session"]
|
@@ -308,9 +308,15 @@ module Aws
|
|
308
308
|
export AWS_ACCESS_KEY_ID="#{prof.aws_access_key_id}"
|
309
309
|
export AWS_SECRET_ACCESS_KEY="#{prof.aws_secret_access_key}"
|
310
310
|
export AWS_SESSION_TOKEN="#{prof.aws_session_token}"
|
311
|
+
EOF
|
312
|
+
when 'powershell'
|
313
|
+
puts <<-EOF
|
314
|
+
$Env:AWS_ACCESS_KEY_ID = "#{prof.aws_access_key_id}"
|
315
|
+
$Env:AWS_SECRET_ACCESS_KEY = "#{prof.aws_secret_access_key}"
|
316
|
+
$Env:AWS_SESSION_TOKEN = "#{prof.aws_session_token}"
|
311
317
|
EOF
|
312
318
|
when ''
|
313
|
-
raise "Please specify a shell. Currently supported shells are: bash"
|
319
|
+
raise "Please specify a shell. Currently supported shells are: bash and powershell"
|
314
320
|
else
|
315
321
|
raise "Unsupported shell '#{shell_name}'"
|
316
322
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-session-credentials
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Vidulich
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-03-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -204,6 +204,7 @@ files:
|
|
204
204
|
- ".rspec"
|
205
205
|
- ".travis.yml"
|
206
206
|
- CODE_OF_CONDUCT.md
|
207
|
+
- Dockerfile
|
207
208
|
- Gemfile
|
208
209
|
- Guardfile
|
209
210
|
- LICENSE.txt
|
@@ -249,7 +250,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
249
250
|
version: '0'
|
250
251
|
requirements: []
|
251
252
|
rubyforge_project:
|
252
|
-
rubygems_version: 2.7.
|
253
|
+
rubygems_version: 2.7.6
|
253
254
|
signing_key:
|
254
255
|
specification_version: 4
|
255
256
|
summary: Command-line tool to generate AWS session credentials.
|