Initial Preparation and Configuration of the AWS Image

This section covers initial preparation and configuration of the image on AWS.

The IAM role

To ensure seamless operation, proper AWS permissions for the IAM role are essential. This role must be attached to the instance. Otherwise disconnection errors will be thrown after one hour.

You can pre-create the role on your AWS account and then select it from the existing IAM role dropdown during the instance configuration process.

If you create the role during the creation of an instance, the role will not be attached automatically. The role should be added post setup.

A role can be assigned to a running instance through the following steps: Actions  Security  Modify IAM-role.

For detailed information on IAM roles, see: docs.aws.amazon.com/IAM

Procedure: Configuring your Uyuni instance
  1. Select the AMI image and provide a meaningful name for your server. Review the details and pricing information provided.

  2. You have the option to configure additional instance details in subsequent steps, such as storage, tags, security groups, and the required IAM role.

    1. The image automatically suggests a default CPU configuration.

    2. Choose an existing key pair or create a new one to grant access to the instance.

    3. Your organization should provide the necessary security groups and network configuration.

    4. If an IAM role has been previously created, you can attach it by selecting it from the Existing IAM role dropdown. Otherwise, attach this role after the instance has been launched.

    5. Create the following partitions

      • 100 GB for the root partition

      • 500 GB for spacewalk storage

      • 80 GB for the database.

        For more information see: AWS requirements

    6. Follow the prompts from AWS to complete the configuration as needed.

  3. After reviewing your configuration click the Launch instance dropdown.

  4. Click on the Launch Instances button.

  5. You will be redirected to the EC2 Dashboard.

  6. Verify that the instance has successfully launched by selecting Instances on the left sidebar. The Uyuni PAYG instance should be running in the main content area.

Usage and Costs

Keep in mind that since this is a PAYG image, you will be billed according to your actual usage, including the number of systems you manage and monitor with this instance. It’s essential to regularly track and review your usage to prevent unexpected costs and ensure alignment with your needs.