@@ -192,15 +192,30 @@ output "iam_instance_profile_unique" {
192
192
# ###############################################################################
193
193
output "root_block_device" {
194
194
description = " Root block device information"
195
- value = try (aws_instance. this [0 ]. root_block_device , null )
195
+ value = try (
196
+ aws_instance. this [0 ]. root_block_device ,
197
+ aws_instance. ignore_ami [0 ]. root_block_device ,
198
+ aws_spot_instance_request. this [0 ]. root_block_device ,
199
+ null
200
+ )
196
201
}
197
202
198
203
output "ebs_block_device" {
199
204
description = " EBS block device information"
200
- value = try (aws_instance. this [0 ]. ebs_block_device , null )
205
+ value = try (
206
+ aws_instance. this [0 ]. ebs_block_device ,
207
+ aws_instance. ignore_ami [0 ]. ebs_block_device ,
208
+ aws_spot_instance_request. this [0 ]. ebs_block_device ,
209
+ null
210
+ )
201
211
}
202
212
203
213
output "ephemeral_block_device" {
204
214
description = " Ephemeral block device information"
205
- value = try (aws_instance. this [0 ]. ephemeral_block_device , null )
215
+ value = try (
216
+ aws_instance. this [0 ]. ephemeral_block_device ,
217
+ aws_instance. ignore_ami [0 ]. ephemeral_block_device ,
218
+ aws_spot_instance_request. this [0 ]. ephemeral_block_device ,
219
+ null
220
+ )
206
221
}
0 commit comments