Spot instances not using IMDSv2
The amazonec2-request-spot-instance=true
config parameter causes spot instances to be requested with IMDSv1, not IMDSv2, even when amazonec2-metadata-token=required
is set. This issue stems from the RequestSpotInstance
command (ref) not supporting the option to specify MetadataOptions
like the RunInstances
command does.
Plugin version: v0.16.2-gitlab.13