'Is there a way to Add existing RDS tags to it's snapshot while creating using API

I have the RDS instance "MySQL-T1-Writer-Instance". I am performing sync operations on 4 tables based on customer events. Custom event triggers the API which takes a snapshot of this RDS instance and then performs a sync operation.

I have already added 11 Tags to this RDS: {{"ENV":"production"},{"service":"Database"},{"managedBy":"DBA Admin"},.........}

I am using JavaScript AWS SDK to create snapshots but I can find an option/property which will allow me to copy Tags from the original RDS instance to its snapshot.

I am referring to code from the official page- https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/RDS.html#createDBSnapshot-property and it has only the option to add tags manually.

I am looking for an option that will allow me to copy existing Tags of the RDS instance to its snapshot created using API.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source