I would like to create some EC2 instance, but before it starts to do some things, using the instance id generated for this instance. Is there an option in aws ec2 run-instancesor another command aws ec2to create an AW2 EC2 instance without starting it? A workaround will generate a UUID to label this instance and bind this UUID instead of the instance ID or stop immediately after starting the instance, but I would prefer a more reasonable solution.
aws ec2 run-instances
aws ec2
Since I talked about @ pt12lol in the comments, this is exactly what userdata is for .
Amazon:
Amazon EC2, , . Amazon EC2: shell- cloud-init. ( ) base64 ( API).
, , --user-data aws cli Userdata AWS.
--user-data
aws
EC2 . ,
- http://docs.aws.amazon.com/cli/latest/reference/ec2/run-instances.html
Source: https://habr.com/ru/post/1676887/More articles:Scale a view to a different view size with ValueAnimator - javaCan Java declare a HashMap constant? - javaвозврат каждого элемента DOM в массив - javascriptJava equals () method - how “semantics of equal in subclasses” defines the use of getClass and instanceof - javaHow does a HashMap replace a key value without invoking the equals method - javaКак сделать так, чтобы тип ввода = "число" не принимал число с ведущими нулями? - htmlGoogle Drive API - download and export file - phpQt Cmake configuration has no way to set C ++ compilers - c ++Java NetBeans calls ActionListener with another - javaHow to update a column for all rows after each processing of one UDF row in BigQuery? - google-bigqueryAll Articles