minimal_pipeline 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/minimal_pipeline/ec2.rb +4 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3c316c13124256c9ddc3648899fd7559e62cdd83b483b6159b67de99bb6f0da8
|
4
|
+
data.tar.gz: aa5982e41abb24842f53f3811392a80eec2435004687a745331b6cf1af1a91f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 14759d8823ae03e8af3aa6925a2467fa445dfa5b25bdc170256f77fe4884144c272adf4893942e9e185b3ce4946aac22a5188bbec2ee437f0a92be4041169d61
|
7
|
+
data.tar.gz: 808324bdb17014eb5e8265ea2ade6231afadb3cec9ae86577f936301fc80a6f94d36322e0d8b335c62e0064dc710dd31cf2eed73af0e532e9e642f8d8cb4dda8
|
data/lib/minimal_pipeline/ec2.rb
CHANGED
@@ -138,15 +138,15 @@ class MinimalPipeline
|
|
138
138
|
# The new image will be encrypted. You can optionally copy across regions
|
139
139
|
#
|
140
140
|
# @params image_id [String] The AMI ID to copy
|
141
|
+
# @params image_name [String] The name of the new image
|
141
142
|
# @params kms_key_id [String] Non-default KMS key ID to use for encryption
|
142
|
-
# @params region [String] The destination region for the new image
|
143
143
|
# @return [String] The newly created AMI ID
|
144
|
-
def copy_image(image_id,
|
144
|
+
def copy_image(image_id, image_name, kms_key_id = nil)
|
145
145
|
params = {
|
146
|
+
name: image_name,
|
146
147
|
encrypted: true,
|
147
148
|
source_image_id: image_id,
|
148
|
-
source_region: @region
|
149
|
-
region: region || @region
|
149
|
+
source_region: @region
|
150
150
|
}
|
151
151
|
params['kms_key_id'] = kms_key_id if kms_key_id
|
152
152
|
|