2.2. Manually uploading an AMI image to AWS by using the CLI


You can use RHEL image builder to build ami images and manually upload them directly to the Amazon AWS Cloud service provider by using the CLI.

Prerequisites

  • You have an Access Key ID configured in the AWS IAM account manager.
  • You have a writable S3 bucket prepared.
  • You have a defined blueprint.

Procedure

  1. Build the image:

    # image-builder build ami \
    --blueprint blueprint-name \
    --aws-region us-east-1 \
    --aws-bucket <example-bucket> \
    --aws-ami-name <image-name> \
  2. Upload the image to AWS:

    # image-builder upload <image-name> \
  3. Check the image available EC2 in the AWS console and selecting the correct region.
  4. On the dashboard, select your image and click Launch.

Troubleshooting

  • If the build or upload command fails with an authentication or permission error, you must confirm that your AWS CLI profile has valid credentials and that your IAM user or role can access the S3 bucket and the EC2 VM Import/Export API.
  • If the command reports that the bucket is missing, not accessible, or in the wrong location, you must verify that the bucket name matches --aws-bucket and that the bucket exists in the same AWS Region you pass to --aws-region.
  • If AWS rejects the import with a service role error, you must create the vmimport IAM role and trust policy that VM Import/Export requires, as described in Required service role to import a VM.
Red Hat logoGithubredditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 문서 정보

Legal Notice

Theme

© 2026 Red Hat
맨 위로 이동