Difference between revisions of "Aws ec2 run-instances"

From wikieduonline
Jump to navigation Jump to search
 
(18 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{lowercase}}
 
{{lowercase}}
 
+
* https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/run-instances.html
* https://docs.aws.amazon.com/cli/latest/reference/ec2/run-instances.html
 
  
  
Line 7: Line 6:
 
* <code>[[aws ec2]] run-instances [[--profile]] YOUR_PROFILE --[[image-id]] [[ami]]-12345678 [[--endpoint]] https://fcu.eu-west-2.outscale.com</code>
 
* <code>[[aws ec2]] run-instances [[--profile]] YOUR_PROFILE --[[image-id]] [[ami]]-12345678 [[--endpoint]] https://fcu.eu-west-2.outscale.com</code>
  
 +
[[Placement]] options:
 
* <code>aws ec2 run-instances [[--placement]] "GroupName = my-cluster"</code>
 
* <code>aws ec2 run-instances [[--placement]] "GroupName = my-cluster"</code>
 +
* <code>aws ec2 run-instances --placement "GroupName = HDFS-Group-A, PartitionNumber = 3"</code>
 +
 +
* <code>aws ec2 run-instances .../... [[--key-name]] [[aws ec2 create-key-pair|your_key_name_precreated]]</code>
  
 
  [[aws ec2]] run-instances
 
  [[aws ec2]] run-instances
  An error occurred (AuthFailure) when calling the RunInstances operation: AWS was not able to validate the provided access credentials
+
  [[An error occurred (AuthFailure) when calling the RunInstances operation: AWS was not able to validate the provided access credentials]]
  
  
== Related commands ==
+
== Related ==
 
* <code>[[aws ec2 describe-instances]]</code>
 
* <code>[[aws ec2 describe-instances]]</code>
 
* <code>[[aws ec2 terminate-instances]]</code>
 
* <code>[[aws ec2 terminate-instances]]</code>
* [[Create aws ec2 instance with ansible]]
+
* <code>[[aws ec2 create-key-pair]]</code>
 +
 
 
* <code>[[gcloud compute instances create]]</code>
 
* <code>[[gcloud compute instances create]]</code>
 +
* <code>[[aws_instance]]</code>
 +
* [[Ansible: create Amazon ec2 instance]] <code>([[task:]] ec2)</code>
 +
* [[Terraform: AWS instance example with aws ami lookup and key name]] (<code>[[aws_instance]]</code>)
 +
* [[Create-instance]]
  
 
== See also ==
 
== See also ==
 +
* {{aws ec2}}
 
* {{EC2}}
 
* {{EC2}}
* {{AWS}}
+
 
  
 
[[Category:AWS]]
 
[[Category:AWS]]

Latest revision as of 11:14, 20 October 2023


Placement options:

  • aws ec2 run-instances --placement "GroupName = my-cluster"
  • aws ec2 run-instances --placement "GroupName = HDFS-Group-A, PartitionNumber = 3"
aws ec2 run-instances
An error occurred (AuthFailure) when calling the RunInstances operation: AWS was not able to validate the provided access credentials


Related[edit]

See also[edit]

Advertising: