openstax_aws 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/openstax/aws/version.rb +1 -1
- data/lib/openstax_aws.rb +10 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f6d703aebb57c8bd0392990c3a413bdebe5a6f04b69bfa9365066ce3030e5794
|
4
|
+
data.tar.gz: 8e6d2cf503cc05da15d96fa3f68fe625255cdc211688a078f6ce186485dbcf96
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1f411b29829f48ee35cb2b4c28be8ef871bc63b1ecbe623ee274fd7a510f6bd7d222b1ebeaa9ded24a54f35b35de8a1807deb0c79784109cbd1faa93a1e80ab6
|
7
|
+
data.tar.gz: ed725aebf0eff6889c629da30094fc1bb1c7feb8674d8352122bf8d9fad512475a5bbee2ebb4a245a66169cb8d7b3708800ee64667836b75dde58667cdaa9911
|
data/lib/openstax/aws/version.rb
CHANGED
data/lib/openstax_aws.rb
CHANGED
@@ -27,9 +27,16 @@ module OpenStax
|
|
27
27
|
begin
|
28
28
|
::Aws::S3::Client.new(region: configuration.cfn_template_bucket_region)
|
29
29
|
.head_bucket(bucket: configuration.cfn_template_bucket_name)
|
30
|
-
rescue ::Aws::S3::Errors::Forbidden
|
31
|
-
|
32
|
-
|
30
|
+
rescue ::Aws::S3::Errors::Forbidden
|
31
|
+
# If get_caller_identity throws, that is fine, we get a nice error message from it
|
32
|
+
id = ::Aws::STS::Client.new(
|
33
|
+
region: configuration.cfn_template_bucket_region
|
34
|
+
).get_caller_identity
|
35
|
+
|
36
|
+
raise "Your current role or user, \"#{id.arn}\", cannot access the CFN template bucket \"#{
|
37
|
+
configuration.cfn_template_bucket_name}\" in the \"#{
|
38
|
+
configuration.cfn_template_bucket_region}\" region. " \
|
39
|
+
"Please verify that you are using the correct role and account."
|
33
40
|
end
|
34
41
|
end
|
35
42
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: openstax_aws
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- JP Slavinsky
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-01-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-autoscaling
|
@@ -387,7 +387,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
387
387
|
- !ruby/object:Gem::Version
|
388
388
|
version: '0'
|
389
389
|
requirements: []
|
390
|
-
rubygems_version: 3.1.
|
390
|
+
rubygems_version: 3.1.6
|
391
391
|
signing_key:
|
392
392
|
specification_version: 4
|
393
393
|
summary: openstax IaC
|