Skip to content

Conversation

@jutyler1
Copy link

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.

@aemous aemous self-requested a review December 17, 2025 21:22
Copy link
Contributor

@aemous aemous left a 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 aemous self-requested a review December 18, 2025 00:54
Copy link
Contributor

@aemous aemous left a 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.

@jutyler1
Copy link
Author

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 aemous self-requested a review December 18, 2025 16:45
Copy link
Contributor

@aemous aemous left a comment

Choose a reason for hiding this comment

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

LGTM

@aemous aemous merged commit 134d926 into aws:ecs-express-gateway-text-only Dec 18, 2025
57 of 60 checks passed
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 this pull request may close these issues.

2 participants