A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-creating-volume.html below:

Create an Amazon EBS volume

Create an Amazon EBS volume

You can create an Amazon EBS volume and then attach it to any EC2 instance in the same Availability Zone.

You can either create an empty volume, or you can create a volume from an Amazon EBS snapshot. If you create a volume from a snapshot, the volume begins as an exact replica of the volume that was used to create that snapshot.

Volume initialization

When you create a volume from a snapshot, the storage blocks from the snapshot must be downloaded from Amazon S3 and written to the volume before you can access them. This process is called volume initialization. During this time, the volume will experience increased I/O latency. Full volume performance is achieved only after all storage blocks have been downloaded and written to the volume.

The default volume initialization rate fluctuates throughout the initialization process, which could make completion times unpredictable.

To minimize the performance impacts associated with volume initialization, you can use an Amazon EBS Provisioned Rate for Volume Initialization (volume initialization rate) or fast snapshot restore. For more information, see Initialize Amazon EBS volumes.

Volume encryption

The encryption state of the volume depends on whether your account is enabled for encryption by default, and on the encryption state of the snapshot, if you choose to use one. The following table summarizes thepossible encryption outcomes.

Encryption by default Snapshot used? Volume encryption outcome Note Disabled No Optional encryption If you enable encryption, you can specify the KMS key to use. If you enable encryption but do not specify a KMS key, the AWS managed key (aws/ebs) is used. Disabled Yes, unencrypted Optional encryption If you enable encryption, you can specify the KMS key to use. If you enable encryption but do not specify a KMS key, the AWS managed key (aws/ebs) is used. Disabled Yes, encrypted Automatic encryption You can specify the KMS key to use. If you do not specify a KMS key, the volume is encrypted using the same KMS key as the source snapshot. Enabled No Automatic encryption You can specify the KMS key to use. If you do not specify a KMS key, the key specified for encryption by default is used. Enabled Yes, unencrypted Automatic encryption You can specify the KMS key to use. If you do not specify a KMS key, the key specified for encryption by default is used. Enabled Yes, encrypted Automatic encryption You can specify the KMS key to use. If you do not specify a KMS key, the volume is encrypted using the same key as the source snapshot (console), or the key specified for encryption by default (CLI/API). Additional considerations
Console
To create a volume
  1. Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/.

  2. In the navigation pane, choose Volumes and then choose Create volume.

  3. (Outpost customers only) For Outpost ARN, enter the ARN of the AWS Outpost on which to create the volume.

  4. For Volume type, choose the type of volume to create. For more information about the available volume types, see Amazon EBS volume types.

  5. For Size, enter the size of the volume, in GiB. For more information, see Amazon EBS volume constraints.

  6. (For io1, io2, and gp3 only) For IOPS, enter the maximum number of input/output operations per second (IOPS) that the volume should provide.

  7. (For gp3 only) For Throughput, enter the throughput that the volume should provide, in MiB/s.

  8. For Availability Zone, choose the Availability Zone in which to create the volume.

  9. For Snapshot ID, do one of the following:

    • To create an empty volume, keep the default value (Don't create volume from a snapshot).

    • To create the volume from a snapshot, select the snapshot to use.

  10. If you have selected a snapshot, for Volume initialization rate, you can optionally specify the volume initialization rate, in MiB/s, at which the snapshot blocks are to be downloaded from Amazon S3 to the volume after creation. For more information, see Use an Amazon EBS Provisioned Rate for Volume Initialization. To use the default initialization rate or fast snapshot restore (if it is enabled for the selected snapshot), don't specify a rate.

  11. (io1 and io2 only) To enable the volume for Amazon EBS Multi-Attach, select Enable Multi-Attach. For more information, see Attach an EBS volume to multiple EC2 instances using Multi-Attach.

  12. Set the encryption status for the volume.

    • If your account is enabled for encryption by default, encryption is automatic and can't be disabled.

    • If you selected an encrypted snapshot, encryption is automatic and can't be disabled.

    • If your account is not enabled for encryption by default, and you select an unencrypted snapshot or do not select a snapshot, encryption is optional.

  13. (Optional) To assign custom tags to the volume, in the Tags section, choose Add tag, and then enter a tag key and value pair.

  14. Choose Create volume.

  15. To use the volume, wait for it to reach the available state and then attach it to an Amazon EC2 instance in the same Availability Zone. For more information, see Attach an Amazon EBS volume to an Amazon EC2 instance.

AWS CLI
To create a volume

Use the create-volume command. The following example creates an empty gp3 volume with a size of 100 GiB in the specified Availability Zone.

aws ec2 create-volume \
    --volume-type gp3 \
    --size 100 \
    --availability-zone us-east-1a
PowerShell
To create a volume

Use the New-EC2Volume cmdlet. The following example creates an empty gp3 volume with a size of 100 GiB in the specified Availability Zone.

New-EC2Volume `
    -VolumeType gp3 `
    -Size 100 `
    -AvailabilityZone us-east-1a

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4