简体   繁体   中英

Can we delete instance user-data from EC2 instance's meta-data in Cloudformation

We can get the userdata by this command:

http://169.254.169.254/latest/user-data

But is there a way to delete this from instance itself?

I know we can delete userdata by stopping it, but rather than doing that, can we delete it from within the instance itself?

从AWS CLI调用modify-instance-attribute命令。

aws ec2 modify-instance-attribute --instance-id <your-instance-id> --user-data ":"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM