lib/omnibus/config.rb in omnibus-6.1.9 vs lib/omnibus/config.rb in omnibus-7.0.12

- old
+ new

@@ -283,22 +283,22 @@ # The S3 access key to use with S3 caching. # # @return [String, nil] default(:s3_access_key) do - if s3_profile + if s3_profile || s3_iam_role_arn nil else raise MissingRequiredAttribute.new(self, :s3_access_key, "'ABCD1234'") end end # The S3 secret key to use with S3 caching. # # @return [String, nil] default(:s3_secret_key) do - if s3_profile + if s3_profile || s3_iam_role_arn nil else raise MissingRequiredAttribute.new(self, :s3_secret_key, "'EFGH5678'") end end @@ -306,10 +306,15 @@ # The AWS credentials profile to use with S3 caching. # # @return [String, nil] default(:s3_profile, nil) + # The AWS IAM role arn to use with S3 caching. + # + # @return [String, nil] + default(:s3_iam_role_arn, nil) + # The region of the S3 bucket you want to cache software artifacts in. # Defaults to 'us-east-1' # # @return [String] default(:s3_region) do @@ -452,9 +457,14 @@ # The AWS credentials profile to use with S3 publisher. # # @return [String, nil] default(:publish_s3_profile, nil) + + # The AWS IAM role arn to use with S3 publisher. + # + # @return [String, nil] + default(:publish_s3_iam_role_arn, nil) # Directory pattern for the S3 publisher. # Interpolation of metadata keys is supported. # # @example '%{platform}/%{platform_version}/%{arch}/%{basename}'