datomic

Ask questions on the official Q&A site at https://ask.datomic.com!
Aleh Atsman 2021-04-03T12:30:21.175100Z

Hello! I am currently trying to add custom meta attributes to resources that are created by datomic cfn template. I have difficulties adding tags to datomic buckets. For example in the cfn-template datomic-production-compute there is a custom resource EnsureBucket :

{
   "DatomicCodeBucket":{
      "Type":"Custom::Resource",
      "DependsOn":[
         "EnsureBucketLogGroup"
      ],
      "Properties":{
         "ServiceToken":{
            "Fn::GetAtt":[
               "EnsureBucket",
               "Arn"
            ]
         },
         "BucketBaseName":"datomic-code",
         "TagKey":"datomic:code",
         "TagValue":{
            "Ref":"AWS::Region"
         }
      }
   }
}
How do I add my custom tags to this resource? It is accepting only TagKey and TagValue. In the code of custom resource I can't find any logic for handling additional tags. I was planning to have a traversal utility which will walk the cf tree and add tags based on resource type, but because many resources are custom resources with very limited api, it seems to me that there is not much I can actually do. Any advice on this? The requirement comes from organizational rules. Should I come up with solution that will add tags after deploy? Thank you!