Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resource:redshift-snapshot tag policy failing #1697

Closed
ajohnstone opened this issue Oct 25, 2017 · 0 comments · Fixed by #1699
Closed

resource:redshift-snapshot tag policy failing #1697

ajohnstone opened this issue Oct 25, 2017 · 0 comments · Fixed by #1699

Comments

@ajohnstone
Copy link
Contributor

ajohnstone commented Oct 25, 2017

$ custodian run --debug --cache-period 0 --cache 0   -s out x.yaml
2017-10-25 21:22:37,492: custodian.policy:INFO policy: redshift-snapshot-tag-policy resource:redshift-snapshot region:eu-west-1 count:823 time:14.91
2017-10-25 21:22:37,668: custodian.actions:ERROR Exception with tags: [{u'Value': 'bi@abc.com', u'Key': 'Owner'}] on resources: rs:cloud-dwh-2017-10-25-15-10-38, rs:cloud-dwh-2017-10-24-09-10-31, rs:cloud-dwh-2017-10-20-23-40-50 
 u'SnapshotIdentifer'
2017-10-25 21:22:37,681: custodian.actions:ERROR Exception with tags: [{u'Value': 'bi@abc.com', u'Key': 'Owner'}] on resources: rs:cloud-dwh-2017-10-25-15-10-38, rs:cloud-dwh-2017-10-24-09-10-31, rs:cloud-dwh-2017-10-20-23-40-50 
 u'SnapshotIdentifer'

example

policies:
  - name: redshift-snapshot-tag-policy
    resource: redshift-snapshot
    comments: |
      Create tags for redshift-snapshot with bi
    filters:
      - or:
        - "tag:Owner": absent
        - "tag:Department": absent
    actions:
      - type: tag
        key: Owner
        value: bi@abc.com
      - type: tag
        key: Department
        value: bi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant