Skip to content

feat: add ResolverQueryLogConfigAssociation resource#68

Open
michaelhtm wants to merge 2 commits into
aws-controllers-k8s:mainfrom
michaelhtm:feat/add-resolver-query-log-config-association
Open

feat: add ResolverQueryLogConfigAssociation resource#68
michaelhtm wants to merge 2 commits into
aws-controllers-k8s:mainfrom
michaelhtm:feat/add-resolver-query-log-config-association

Conversation

@michaelhtm

Copy link
Copy Markdown
Member

Description of changes:
Adds support for associating a Resolver Query Log Config with a VPC.
Uses AssociateResolverQueryLogConfig/DisassociateResolverQueryLogConfig
operations with operation_type overrides. All Spec fields are immutable
(no update API). Includes cross-resource reference to ResolverQueryLogConfig.

Resolves aws-controllers-k8s/community#2908

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@ack-prow ack-prow Bot requested review from gustavodiaz7722 and sapphirew June 3, 2026 19:11
@ack-prow

ack-prow Bot commented Jun 3, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: michaelhtm

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ack-prow ack-prow Bot added the approved label Jun 3, 2026
@michaelhtm

Copy link
Copy Markdown
Member Author

/test all

@michaelhtm

Copy link
Copy Markdown
Member Author

/label release/minor

@ack-prow ack-prow Bot added the release/minor Indicates this PR should trigger a minor version release on merge. label Jun 3, 2026
Comment thread apis/v1alpha1/generator.yaml Outdated
terminal_codes:
- InvalidParameterException
- InvalidRequestException
- AccessDeniedException

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should AccessDenied be a terminal error?

references:
resource: ResolverQueryLogConfig
path: Status.ID
ResourceId:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From the API reference it sounds like this always a VPC. Can we add a resource reference here?

https://docs.aws.amazon.com/Route53/latest/APIReference/API_route53resolver_AssociateResolverQueryLogConfig.html

The ID of an Amazon VPC that you want this query logging configuration to log queries for.

Comment thread apis/v1alpha1/generator.yaml Outdated
name: ID
ResolverQueryLogConfigId:
is_immutable: true
is_required: true

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: From the API Reference both this field and ResourceId are marked as required. Are these is_required configs needed?

Comment on lines +32 to +38
def get_account_id() -> str:
return boto3.client("sts").get_caller_identity()["Account"]


def get_region() -> str:
session = boto3.session.Session()
return session.region_name

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: We already have helper functions for this is acktest.

https://github.com/aws-controllers-k8s/test-infra/blob/main/src/acktest/aws/identity.py

region = get_region()
account_id = get_account_id()

config_id, bucket_name = create_query_log_config(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: an error between this and yielding to the test function will result in this resource being leaked.

@michaelhtm michaelhtm force-pushed the feat/add-resolver-query-log-config-association branch from 8008420 to f254e83 Compare June 5, 2026 19:39
Adds support for managing Route 53 Resolver Query Log Configs. Includes
tag support via ListTagsForResource/TagResource/UntagResource hooks and
custom update method (only tags are mutable).

Resolves aws-controllers-k8s/community#2908
Adds support for associating a Resolver Query Log Config with a VPC.
Uses AssociateResolverQueryLogConfig/DisassociateResolverQueryLogConfig
operations with operation_type overrides. All Spec fields are immutable
(no update API). Includes cross-resource reference to ResolverQueryLogConfig.

Resolves aws-controllers-k8s/community#2908
@michaelhtm michaelhtm force-pushed the feat/add-resolver-query-log-config-association branch from f254e83 to 8545703 Compare June 9, 2026 17:43
@ack-prow

ack-prow Bot commented Jun 9, 2026

Copy link
Copy Markdown

@michaelhtm: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
route53resolver-verify-code-gen 8545703 link true /test route53resolver-verify-code-gen

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

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

Labels

approved release/minor Indicates this PR should trigger a minor version release on merge.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[route53resolver] Add support for ResolverQueryLogConfig and ResolverQueryLogConfigAssociation

2 participants