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

Enrich annotations for db-parameter filters for aws.rds-cluster-param-group #9754

Open
KarlCF opened this issue Oct 2, 2024 · 0 comments
Open

Comments

@KarlCF
Copy link

KarlCF commented Oct 2, 2024

Describe the feature

I'm looking to improve results on the db-parameter filters for the aws.rds-cluster-param-group resource (possibly also the aws.rds-param-group resource) to also provide further key/value information on matches.

Example

  - name: aws-rds-cluster-param-group-testing
    resource: aws.rds-cluster-param-group
    filters:
      - or:
        - type: db-parameter
          key: "character_set_client"
          value:
            - utf8mb4
            - utf8
          op: in
        - type: db-parameter
          key: "character_set_server"
          value:
            - utf8mb4
            - utf8
          op: in

Results:

[
  {
    "DBClusterParameterGroupName": "example",
    "DBParameterGroupFamily": "aurora5.6",
    "Description": "Test policy parameter group",
    "DBClusterParameterGroupArn": "arn:aws:rds:us-east-2:123456789012:cluster-pg:example",
    "Tags": [],
    "c7n:MatchedDBParameter": [
      "character_set_client",
      "character_set_server"
    ]
  }
]

Intended results:

[
  {
    "DBClusterParameterGroupName": "example",
    "DBParameterGroupFamily": "aurora5.6",
    "Description": "Test policy parameter group",
    "DBClusterParameterGroupArn": "arn:aws:rds:us-east-2:123456789012:cluster-pg:example",
    "Tags": [],
    "c7n:MatchedDBParameter": [
      "character_set_client": "utf8",
      "character_set_server": "utf8"
    ]
  }
]

Extra information or context

Adding an extra c7n annotation would also be an alternative to enriching the existing one.

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

No branches or pull requests

1 participant