Friday, January 21, 2022

How to Import vm to ec2 step by step


Download do AWS CLI -  https://s3.amazonaws.com/aws-cli/AWSC...​


AWS Regions - https://docs.aws.amazon.com/general/latest/gr/rande.html#ec2_region


open cmd


# aws configure

# Access Key ID: AKIA3MBJMGEDTLMBPVXW

# Secret Access Key: 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


# ap-south-1


# aws ec2 create-security-group --group-name FSI --description "flightsservices.com group"


"GroupId": "sg-0377b945102ecf6d2"


Sign in to your Amazon accounts and select the AWS IAM option


# Create a new role called vmimport and assign administrative permission as shown


Edit the trust relationship, change name to 


# vmie.amazonaws.com and add the following condition as shown.


{

  "Version": "2012-10-17",

  "Statement": [

    {

      "Effect": "Allow",

      "Principal": {

        "Service": "vmie.amazonaws.com"

      },

      "Action": "sts:AssumeRole",

      "Condition": {

        "StringEquals": {

          "sts:Externalld": "vmimport"

        }

      }

    }

  ]

}


# aws ec2 import-image --cli-input-json "{ \"Description\": \"MY LINUX IMAGE\", \"DiskContainers\": [ { \"Description\": \"MY LINUX IMAGE\", \"USerBucket\": { \"S3Bucket\": \"fsiova\", \"S3Key\" : \"vicidial.ova\" } } ]}"


No comments:

Post a Comment

Windows Server 2016/2019/2022 Evaluation: How to extend the Trial Period ?

How to extend the Trial Period ? Pay attention to the Time-based activation expiration and the Remaining Windows rearm count. You can rearm ...