Execute User Data After the Initial Launch of Your EC2 Instance
As part of the metadata included with Amazon EC2 instances, user data can be used to install packages or scripts. By default user data is executed once, at the first boot of the instance.
There are situations that would benefit from the ability to execute user data a second time--for example, if the SSH private key is lost and you are unable to log in to the instance. Repairing the instance might involve either creating an AMI or attaching the volume to another instance to troubleshoot. There are situations where that would be the preferred method. However, an alternative method can be resolved with a few commands.
Note: Back up your data before proceeding further. For more information, see Best Practices for Amazon EC2.
The user data provided should be removed from the instance after the issue is resolved. We recommend considering the security implications of being able to run user data beyond the first boot of an instance. Modifying the user data of an instance is done through the ModifyInstanceAttribute
Note: IAM policies can be created to restrict this method.
相關推薦
Execute User Data After the Initial Launch of Your EC2 Instance
As part of the metadata included with Amazon EC2 instances, user data can be used to install packages or scripts. By default user data is execu
How to Reins GRUB After the New Update of WINDOWS
smo 文件 自己 重建 orm date ans 輸入 div la ji windows OK 現在我的輸入法也裝好了,再說一遍,垃圾windows 這次大更新又把我的GRUB搞崩了 這次沒有像以前一樣用chroot重建grub馬上搞定,所以記一下網上找到的方案: 1.
Decentralization should NOT be the primary goal of your crypto project
The blockchain entrepreneur I recently talked with over the phone was excited, speaking energetically about what set his product apart from the rest and bo
Cutting the jargon out of your creative work
Cutting the jargon out of your creative workYears and years ago, I was working with someone on a project and they kept using the word deliverable. I had no
Hyperlane is the web host of your dreams.
Hyperlane is the web host of your dreams.Switching web hosts transformed my workflow and saved me from myself.Hyperlane is a modern web hosting platform fo
Expand the EBS Root Volume of Your EC2 Windows Instance
By default, you have 30 GB gp2 (General Purpose SSD) Amazon EBS volume as a root volume when using an Amazon EC2 Windows instance from an Amazo
Upgrade the OS of an EC2 Instance Running Windows to a Newer Version
Amazon Web Services is Hiring. Amazon Web Services (AWS) is a dynamic, growing business unit within Amazon.com. We are currently hiring So
Change the Subnet Mask for the Default Subnet of Your Default VPC
Amazon Web Services is Hiring. Amazon Web Services (AWS) is a dynamic, growing business unit within Amazon.com. We are currently hiring So
Expand the Root Volume of an EC2 Linux Instance
1. Review Amazon EBS Volume Performance on Linux Instances before you expand the EBS root volume of your EC2 Linux instance. This will help
Change the Compatibility Level of Your RDS SQL Server Instance
Amazon Web Services is Hiring. Amazon Web Services (AWS) is a dynamic, growing business unit within Amazon.com. We are currently hiring So
Remove The Port 25 Throttle From Your EC2 Instance
Amazon Web Services is Hiring. Amazon Web Services (AWS) is a dynamic, growing business unit within Amazon.com. We are currently hiring So
20162314 《Program Design & Data Structures》Learning Summary Of The Eleventh Week
upa data- ring ips english his www sed ren 20162314 2017-2018-1 《Program Design & Data Structures》Learning Summary Of The Eleventh We
ValueError: This solver needs samples of at least 2 classes in the data, but the data contains only
sklearn報錯: ValueError: This solver needs samples of at least 2 classes in the data, but the data contains only one class: 0.0 博主是在使用sklearn.learning
資料視覺化之"Surveying the complementary role of automatic data analysis and visualization in knowledge discovery"
Surveying the complementary role of automatic data analysis and visualization in knowledge discovery Enrico Bertini; Denis Lalanne; VAKD '09 Proceedings o
youtubeThe user has exceeded the number of videos they may upload.
A service error occurred: { "error": { "errors": [ { "domain": "youtube.video", "reason": "uploadLimitExceeded", "message": "The user has exceede
【NDN IoT】Caching in Named Data Networking for the Wireless Internet of Things
2016年10月28日 22:31:39 魏曉蕾 閱讀數:1533 <span class="tags-box artic-tag-box"> <span class="label">
Why we're training the next generation of lawyers in big data
Artificial intelligence is transforming the traditional delivery of legal services. In general terms, the set of tools broadly called "legal analytics" pro
The Body Language of User Research
The Body Language of User ResearchHow a researcher’s body language is as important as not asking leading questionsBody language is a very important concept
Journeys in big data and AI across the transport networks of London & Paris
When looking for examples of digital innovation, few of us would think of public transport. But it turns out the sector is a rich source of use cases for b
The Huge Role of Data Science in Artificial Intelligence and Machine Learning
Data science and big data analytics are gradually making waves with advanced technologies like artificial intelligence (AI), machine learning (ML), and dee