Closed ayushtessell closed 1 year ago
Hi @ayushtessell thanks for reaching out. Can you update your version of boto3 and try running this again? The latest version is 1.26.152 per the CHANGELOG, and it looks like support for CopyImageTags
was released in 1.26.13. I'll also share the EC2 copy_image client method documentation for reference.
Thank-you so much @tim-finnigan ,
also I wanted to know can a similar feature be added to copy_snapshot
method (like CopySnapshotTags=True
).
Right now we have to use TagSpecifications
(where we have give input of tags in key-value pair) which I think is similar to create_tags
Hi @ayushtessell thanks for following up. That request would need to go to the EC2 team, as they own the underlying CopySnapshot API. If you have a support plan we recommend reaching out through AWS support for requests like these. Or we can also forward this feature request to the service team. Please let us know.
Currently I have created a workaround to do my work, but it would be beneficial if this feature is added. And currently I don't have a plan to implement this feature
Thanks for following up. I have reached out to the EC2 team for consideration of this use case. I also created an issue for this here in our cross-SDK repository since service APIs are used across SDKs: https://github.com/aws/aws-sdk/issues/553. Please refer to that issue for updates going forward, and if you have any more information to share regarding your use case please leave a comment on that issue.
Describe the bug
when using copy_image method
it gives error
Unknown parameter in input: "CopyImageTags", must be one of: ClientToken, Description, Encrypted, KmsKeyId, Name, SourceImageId, SourceRegion, DestinationOutpostArn, DryRun
Expected Behavior
All user defined tags from source should be copied to destination ami when
CopyImageTags=True
Current Behavior
Gives out error when giving CopyImageTags parameter
Reproduction Steps
Possible Solution
No response
Additional Information/Context
No response
SDK version used
boto3: 1.24.71
Environment details (OS name and version, etc.)
python3, macos