⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.133
Server IP:
185.119.109.197
Server:
Linux managedhosting.chostar.me 5.15.0-160-generic #170-Ubuntu SMP Wed Oct 1 10:06:56 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.1.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
doc
/
awscli
/
examples
/
ec2
/
View File Name :
modify-instance-metadata-options.rst
**Example 1: To enable IMDSv2** The following ``modify-instance-metadata-options`` example configures the use of IMDSv2 on the specified instance. :: aws ec2 modify-instance-metadata-options \ --instance-id i-1234567898abcdef0 \ --http-tokens required \ --http-endpoint enabled Output:: { "InstanceId": "i-1234567898abcdef0", "InstanceMetadataOptions": { "State": "pending", "HttpTokens": "required", "HttpPutResponseHopLimit": 1, "HttpEndpoint": "enabled" } } For more information, see `Instance metadata and user data
`__ in the *Amazon Elastic Compute Cloud User Guide for Linux Instances*. **Example 2: To disable instance metadata** The following ``modify-instance-metadata-options`` example disables the use of all versions of instance metadata on the specified instance. :: aws ec2 modify-instance-metadata-options \ --instance-id i-1234567898abcdef0 \ --http-endpoint disabled Output:: { "InstanceId": "i-1234567898abcdef0", "InstanceMetadataOptions": { "State": "pending", "HttpTokens": "required", "HttpPutResponseHopLimit": 1, "HttpEndpoint": "disabled" } } For more information, see `Instance metadata and user data
`__ in the *Amazon Elastic Compute Cloud User Guide for Linux Instances*.