Difference between revisions of "Aws ec2 run-instances"
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:// | ||
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 | + | == 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> | ||
− | * [[ | + | * <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}} | ||
− | + | ||
[[Category:AWS]] | [[Category:AWS]] |
Latest revision as of 11:14, 20 October 2023
aws ec2 run-instances --profile YOUR_PROFILE --image-id ami-12345678 --instance-type t3.nano --endpoint https://fcu.eu-west-2.outscale.com
aws ec2 run-instances --profile YOUR_PROFILE --image-id ami-12345678 --endpoint https://fcu.eu-west-2.outscale.com
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 .../... --key-name your_key_name_precreated
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]
gcloud compute instances create
aws_instance
- Ansible: create Amazon ec2 instance
(task: ec2)
- Terraform: AWS instance example with aws ami lookup and key name (
aws_instance
) - Create-instance
See also[edit]
- AWS EC2, AWS::EC2,
aws ec2
[describe-instances | describe-instance-status
|run-instances | terminate-instances | stop-instances
|tags
|describe-vpcs
|describe-addresses
|describe-availability-zones
|describe-subnets
|import-key-pair
|create-key-pair
|create-vpc
|create-internet-gateway
|modify-instance-attribute | ec2-instance-connect | get-console-output
] - AWS EC2, Amazon EC2 API,
aws ec2, AWS::EC2
, Amazon EC2 Spot Instances, CPU credits, Instance type, EC2 limitations, 169.254.169.254, Instance metadata and user data (IMDS),InstanceType, InstanceId
, Amazon EC2 Auto Scaling, AWS EC2 Instance Connect, launch template, lifecycle, AWS Security group (SG), Amazon EC2 Recycle Bin, Amazon EC2 Mac Instances, Global View
Advertising: