@@ -192,15 +192,30 @@ output "iam_instance_profile_unique" {
192192# ###############################################################################
193193output "root_block_device" {
194194 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+ )
196201}
197202
198203output "ebs_block_device" {
199204 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+ )
201211}
202212
203213output "ephemeral_block_device" {
204214 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+ )
206221}
0 commit comments