openstax_aws 2.0.0 → 2.1.0

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: 375c4b62f3bd1ed25994dfb639f7233dee7c593bb8e07a67161d9de257e0732f
4
- data.tar.gz: b7a84e86e1bf7b954a8700dc9c479069e5e0d4d75a565f8d00ee0d365f4141c5
3
+ metadata.gz: 78c1b46ae2e72ddaca6d39c650adc00cf8615972dadb57c273751f1bf2171546
4
+ data.tar.gz: 8b20b6015fb5766553a00d82fcec88332f92e933714abc006ae1218c4340e80f
5
5
  SHA512:
6
- metadata.gz: a82917718080f27c4cc1768444d2723ffb61ddb13764ab3087309ae0d8930a0edfe6c5db46f7391597919c425dd6c8eded1c2f738ca9cbcfd348e41606007d5c
7
- data.tar.gz: d1c342c3e2043b8ae0cb4d1c936d73132676fb713b688bb759700ca34acd3504f8f7bcced088312e78744b10c7c2efe5621a8eddf528b04e917306c3d49bd475
6
+ metadata.gz: 73013421cd84ff62da6d55f4cdd7b6bd185a39b3946d98e385ee91bb49de41f71ef9085d4a7741056493a3d3e289aa7448eeb3d4a3d5f719424c65ee3ab6f6c8
7
+ data.tar.gz: 169dcd690a0e95748142da5e209b1541286f2577531d0583383650796c03cc900ca8b8252aec3e32163a8493647dd7804aeb3deef6edbd1266a7504aa891bec2
@@ -11,7 +11,7 @@ module OpenStax
11
11
  packer_absolute_file_path: , playbook_absolute_file_path:,
12
12
  dry_run: true)
13
13
  if sha.nil?
14
- branch ||= 'master'
14
+ branch ||= 'main'
15
15
 
16
16
  sha = OpenStax::Aws::GitHelper.sha_for_branch_name(
17
17
  org_slash_repo: "#{github_org}/#{repo}",
@@ -1,5 +1,5 @@
1
1
  module OpenStax
2
2
  module Aws
3
- VERSION = "2.0.0"
3
+ VERSION = "2.1.0"
4
4
  end
5
5
  end
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 => ee
31
- raise "The provided AWS credentials cannot access the template bucket. Please " \
32
- "verify that you are using the correct credentials for the targeted AWS account."
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.0
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - JP Slavinsky
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-02-17 00:00:00.000000000 Z
11
+ date: 2024-11-04 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.4
390
+ rubygems_version: 3.5.21
391
391
  signing_key:
392
392
  specification_version: 4
393
393
  summary: openstax IaC