aws / aws-sdk

Landing page for the AWS SDKs on GitHub
https://aws.amazon.com/tools/
Other
68 stars 12 forks source link

aws ec2 import-snapshot does not set the snapshot description #762

Open rgl opened 1 month ago

rgl commented 1 month ago

Describe the bug

when using the

aws_region='eu-west-1'
vmimport_role='arn to a role like the one from https://docs.aws.amazon.com/vm-import/latest/userguide/required-permissions.html#vmimport-role'
talos_version='1.7.2'
s3_bucket='images'
s3_key="talos-$talos_version-aws-amd64.vmdk"
aws ec2 import-snapshot \
    --region "$aws_region" \
    --role-name "$vmimport_role" \
    --description "Talos Linux $talos_version" \
    --disk-container "Description=Talos Linux $talos_version,Format=VMDK,UserBucket={S3Bucket=$s3_bucket,S3Key=$s3_key}"

Notice the --disk-container "Description=Talos Linux $talos_version, argument.

I would expect that to set the snapshot description. But it does not.

Expected Behavior

I would expect --disk-container "Description=Talos Linux $talos_version, to set the snapshot description.

Current Behavior

It sets the snapshot description to Created by AWS-VMImport service for ... instead of the expected value.

Here's a screenshot of the aws management console while listing the created snapshot:

image

Reproduction Steps

execute the command as described earlier.

Possible Solution

No response

Additional Information/Context

No response

CLI version used

2.15.53

Environment details (OS name and version, etc.)

ubuntu 22.04

RyanFitzSimmonsAK commented 2 weeks ago

Hi @rgl, thanks for reaching out. The EC2 service team is aware of this behavior; only the task description is making it to the resulting snapshot, as opposed to both the task description and snapshot description. They have a backlog item to address this issue, and I've reached out to them for an update. As this is a service team issue (not CLI specific), I'm going to move this issue to our cross-SDK repository. Thanks again for opening this.

Ticket # for internal use : D1088854