-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Add monitor-mode to monitor mutating commands #9931
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
Add monitor-mode to monitor mutating commands #9931
Conversation
aemous
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Great test coverage.
I have a few questions and nits.
aemous
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After some manual testing of the mutating commands, looks like I ran into an error. Can we address this?
% aws ecs create-express-gateway-service --monitor-resources DEPLOYMENT --monitor-mode TEXT-ONLY --execution-role-arn arn:aws:iam::${AWS_ACCOUNT}:role/ecsTaskExecutionRole \
--infrastructure-role-arn arn:aws:iam::${AWS_ACCOUNT}:role/EcsExpressServicesInfraRole \
--primary-container '{
"image": "public.ecr.aws/nginx/nginx:1.28-alpine3.21-slim"
}'
[2025-12-18 10:45:19] Starting monitoring...
[2025-12-18 10:45:19] Polling for updates...
[2025-12-18 10:45:20] Cluster arn:aws:ecs:<REGION>:<ID>:cluster/default
[2025-12-18 10:45:20] Service arn:aws:ecs:<REGION>:<ID>:service/default/nginx-37e3
[2025-12-18 10:45:20] Waiting for a deployment to start
[2025-12-18 10:45:25] Polling for updates...
[2025-12-18 10:45:25] Waiting for a deployment to start
[2025-12-18 10:45:30] Polling for updates...
[2025-12-18 10:45:31] Monitoring complete!
'ManagedResourceGroup' object has no attribute 'diff'
After a quick search of the code, this might be due to the target_sr_resources.diff(source_sr_resources_combined) call in ServiceViewCollector, from renaming the diff function in a previous PR.
fixed |
aemous
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
134d926
into
aws:ecs-express-gateway-text-only
Issue #, if available:
Description of changes:
Add monitor-mode to monitor mutating commands
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.