Closed sopel closed 11 years ago
Aren't (1) and (2) basically the same thing?
create-images.py --filter tag:Name=* --exclusion-filter tag:doNotBackup=true
An implementation of (1) with a "user created" tag mini DSL (2)
No, I've considered and sketched (and partially prepared) the mini DSL to be specified within the tag value rather than its name, i.e. the already facilitated tag 'Backup Policy' could have values like e.g. "set=
Like so you wouldn't need to configure the backup externally at all, rather every resource would carry its own backup policy, providing the utmost flexibility for automation/provisioning; also the automation engine could be exchanged, insofar it would only need to scan for added/removed/adjusted resources and could schedule respective operations autonomously..
@mrdavidlaing - regardless of my previous comment, I'm going to implement 1) first, because this solution is simpler and generally applicable to all scripts using resource filters immediately, i.e. not just the ones in question (those used for backup).
+1 from me for implementing (1) first
@mrdavidlaing - #31 implements (1) in a generic fashion now, i.e. it applies to all resources/scripts.
The tagging based filtering of
create-images.py
andcreate-snapshots.py
allows for easy backup handling across all regions.The facilitated AWS filters provide inclusion selectors only though, which renders common scenarios like 'all those except these resources' more complicated than necessary.
While this can usually be worked around via more granular combination of filters, this obviously defeats the tagging based automatic backup inclusion and a remedy is desired.accordingly.
There seem to be two options:
Clearly 1) seems to allow for more flexibility, while 2) seems to fit better to the desired tag orchestrated and respectively self contained resource management.