From 80b701ee528b6cb5de1d642eee75eeee2b107680 Mon Sep 17 00:00:00 2001 From: Abhay Krishna Arunachalam Date: Thu, 2 Feb 2023 01:39:15 -0800 Subject: [PATCH 10/18] Add instance metadata options to Packer config Signed-off-by: Abhay Krishna Arunachalam --- images/capi/packer/ami/packer.json | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/images/capi/packer/ami/packer.json b/images/capi/packer/ami/packer.json index 7b957a8d6..d2c742649 100644 --- a/images/capi/packer/ami/packer.json +++ b/images/capi/packer/ami/packer.json @@ -22,6 +22,11 @@ "volume_type": "{{ user `volume_type` }}" } ], + "metadata_options": { + "http_endpoint": "{{ user `http_endpoint` }}", + "http_tokens": "{{ user `http_tokens` }}", + "http_put_response_hop_limit": "{{ user `http_put_response_hop_limit` }}" + }, "name": "{{user `build_name`}}", "profile": "{{ user `aws_profile`}}", "region": "{{ user `aws_region` }}", @@ -170,6 +175,9 @@ "crictl_version": null, "encrypted": "false", "existing_ansible_ssh_args": "{{env `ANSIBLE_SSH_ARGS`}}", + "http_endpoint": "enabled", + "http_tokens": "required", + "http_put_response_hop_limit": "2", "iam_instance_profile": "", "ib_version": "{{env `IB_VERSION`}}", "iops": "3000", -- 2.39.1