Hi All,
I’m building a functionality for partial update in terraform cdk. So the idea is if I have a stack created, say with a S3Bucket and an IamPolicy. And now the user wants to update the tags of the S3Bucket, my code should:
- Take the new Tags from user as input
- Fetch the current state of the resource through CDK as S3Bucket object or S3BucketConfig object
- Override the tags params
- Use the modified state to do terraform apply
How can the 2nd step be achieved in CDK?
Also, has anyone tried something similar before? I would love to know your experience building this functionality.