I need to create a tag value containing a date string via Cloud Custodian (c7n).

Noting the comment block in the value section of the action block in the code below. I need to understand how to populate this field from an external command.

  - name: Example Tag Policy
    resource: aws.rds
      - tag:Name MyCustomValue
      - type: tag
        key: CreationTime
        value: (some string to return current timestamp)

I have yet to find in the Custodian Documentation how to natively populate this value field with a current timestamp and I have yet to find documentation on how to execute an external command.

All thoughts are welcomed!

  • If someone with a 150 or better reputation could create a tag for Custodian that would be great! – Steven K7FAQ Feb 21 at 18:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.