Skip to content

Commit

Permalink
Ensure packer to provision EC2 instance with imdsv2 enabled (#437)
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Zhu <zhujiaxi@amazon.com>
  • Loading branch information
peterzhuamazon authored Jul 10, 2024
1 parent 749a842 commit 721c300
Show file tree
Hide file tree
Showing 8 changed files with 40 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packer/jenkins-agent-al2-arm64.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@
"most_recent":true
},
"associate_public_ip_address":false,
"metadata_options": {
"http_endpoint": "enabled",
"http_tokens": "required",
"http_put_response_hop_limit": 1
},
"ssh_username": "ec2-user",
"ssh_timeout": "3h",
"tags": {
Expand Down
5 changes: 5 additions & 0 deletions packer/jenkins-agent-al2-x64.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@
"most_recent":true
},
"associate_public_ip_address":false,
"metadata_options": {
"http_endpoint": "enabled",
"http_tokens": "required",
"http_put_response_hop_limit": 1
},
"ssh_username": "ec2-user",
"ssh_timeout": "3h",
"tags": {
Expand Down
5 changes: 5 additions & 0 deletions packer/jenkins-agent-al2023-arm64.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@
"most_recent":true
},
"associate_public_ip_address":false,
"metadata_options": {
"http_endpoint": "enabled",
"http_tokens": "required",
"http_put_response_hop_limit": 1
},
"ssh_username": "ec2-user",
"ssh_timeout": "3h",
"tags": {
Expand Down
5 changes: 5 additions & 0 deletions packer/jenkins-agent-al2023-x64.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@
"most_recent":true
},
"associate_public_ip_address":false,
"metadata_options": {
"http_endpoint": "enabled",
"http_tokens": "required",
"http_put_response_hop_limit": 1
},
"ssh_username": "ec2-user",
"ssh_timeout": "3h",
"tags": {
Expand Down
5 changes: 5 additions & 0 deletions packer/jenkins-agent-macos12-x64.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@
"most_recent":true
},
"associate_public_ip_address":false,
"metadata_options": {
"http_endpoint": "enabled",
"http_tokens": "required",
"http_put_response_hop_limit": 1
},
"ssh_username": "ec2-user",
"ssh_timeout": "3h",
"tenancy": "host",
Expand Down
5 changes: 5 additions & 0 deletions packer/jenkins-agent-ubuntu2004-x64.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@
"most_recent":true
},
"associate_public_ip_address":false,
"metadata_options": {
"http_endpoint": "enabled",
"http_tokens": "required",
"http_put_response_hop_limit": 1
},
"ssh_username": "ubuntu",
"ssh_timeout": "3h",
"tags": {
Expand Down
5 changes: 5 additions & 0 deletions packer/jenkins-agent-win2019-x64-gradle-check.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@
},
"user_data_file":"scripts/windows/userdata.ps1",
"associate_public_ip_address":false,
"metadata_options": {
"http_endpoint": "enabled",
"http_tokens": "required",
"http_put_response_hop_limit": 1
},
"communicator":"winrm",
"winrm_username":"Administrator",
"winrm_timeout":"40m",
Expand Down
5 changes: 5 additions & 0 deletions packer/jenkins-agent-win2019-x64.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@
"most_recent":true
},
"user_data_file":"scripts/windows/userdata.ps1",
"metadata_options": {
"http_endpoint": "enabled",
"http_tokens": "required",
"http_put_response_hop_limit": 1
},
"associate_public_ip_address":false,
"communicator":"winrm",
"winrm_username":"Administrator",
Expand Down

0 comments on commit 721c300

Please sign in to comment.