Closed kennedy closed 2 years ago
This PR has been automatically marked as stale because it has been open 30 days with no activity. Remove stale label or comment or this PR will be closed in 10 days
This PR was automatically closed because of stale in 10 days
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Description
override_ebs_mapping
(default:true
)override_ebs_mapping
isfalse
, it would createebs_block_device
resources external to theaws_instance
and assigns itMotivation and Context
By design, if
ebs_block_device
is defined in theaws_instance
, Terraform will assume management over the full set of non-root EBS block devices for the instance, treating additional block devices as drift. With this PR, setting the variableoverride_ebs_mapping
tofalse
will allowing the user to create theebs_block_device
resources externally, leaving the pre-assigned/existing EBS device mapped in the AMI.https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/instance#argument-reference
Resolves:
263
214
Relates to:
Breaking Changes
No breaking changes, the default value of
override_ebs_mapping
allows the module to behave as before.There is an additional outputs,
outputs.external_ebs_block_device
How Has This Been Tested?
examples/*
projectsI created a new example,
examples\multi-ec2-with-external-attachment
, withoverride_ebs_mapping
set tofalse
and assigned two additional EBS devices to each ec2 instance. I also ranexamples\[complete,volume-attachment]
.