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

CLI examples ecs, cognito-idp #9312

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

elysahall
Copy link
Collaborator

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@elysahall elysahall added documentation This is a problem with documentation. pr:needs-review This PR needs a review from a Member. labels Feb 21, 2025
@elysahall elysahall requested a review from aemous February 21, 2025 18:22
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 0.08%. Comparing base (96f96b8) to head (081fa2c).
Report is 32 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff           @@
##           develop   #9312   +/-   ##
=======================================
  Coverage     0.08%   0.08%           
=======================================
  Files          210     210           
  Lines        16984   16984           
=======================================
  Hits            14      14           
  Misses       16970   16970           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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 overall. Requested some minor changes, and some suggestions/nits.


**To list user pools**

The following ``list-user-pools`` example lists the available user pools in the AWS account of the current CLI credentials. ::
Copy link
Contributor

Choose a reason for hiding this comment

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

non-blocking nit: should the description mention the fact that it'll list at most 3 results? at face-value I'd expect the command to return all of them based on the descripion

}
**Example 1: To list users with a server-side filter**

The following ``list-users`` example lists all users in the requested user pool whose email addresses begin with "testuser". ::
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think this lists all users since we specify 3 max items, right?


**Example 2: To list users with a client-side filter**

The following ``list-users`` example lists the attributes of those two of the first three users who have an attribute, in this case their email address, that contains the email domain "@example.com". If other attributes contained this string, they would also be displayed. The second user has no attributes that match the query and is excluded from the displayed output, but not from the server response. ::
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: I wouldn't say "of those two of the first three users", I think just "of the three users returned from server" or something similar, since the command doesn't enforce two users in the final result; it just so happens that there are two users that match the query in this case

Comment on lines +7 to +9
--sms-mfa-configuration SmsAuthenticationMessage=\"Your\ OTP\ for\ MFA\ or\ sign-in\:\ use\ \{\#\#\#\#\}\.\",SmsConfiguration=\{SnsCallerArn=arn\:aws\:iam\:\:123456789012\:role\/service\-role\/test\-SMS\-Role,ExternalId=a1b2c3d4\-5678\-90ab\-cdef\-EXAMPLE11111,SnsRegion=us\-west\-2\} \
--software-token-mfa-configuration Enabled=true \
--email-mfa-configuration Message=\"Your\ OTP\ for\ MFA\ or\ sign\-in\:\ use\ \{\#\#\#\#\}\",Subject=\"OTP\ test\" \
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: Are these \ escapes necessary / achieving anything?

Comment on lines +23 to +26
{
"name": "containerInsights",
"value": "enhanced"
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this indentation correct? I know it doesn't matter as far as JSON is concerned, but double check that CLI doesn't indent these structs within the list.

**Example 1: To change the task definition used in a service**
**Example 1: To change the number of my-http-serviceks in a service**
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like a typo in the title.

Suggestion: change title to "To change the number of instantiations of the task in a service"


The following ``update-service`` example updates the ``my-http-service`` service to use the ``amazon-ecs-sample`` task definition. ::
The following ``update-service`` example updates the desired my-http-servicek count of the service ``my-http-service`` to 2. ::
Copy link
Contributor

Choose a reason for hiding this comment

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

typo.

suggestion: "...example updates the desired task count of the service my-http-service to 2."


aws ecs update-service --service my-http-service --desired-count 3
For more information, see `Updating a Service <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/update-service.html>`__ in the *Amazon ECS Developer Guide*.
Copy link
Contributor

Choose a reason for hiding this comment

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

Broken link. As of writing, this link results in a 404 not found followed by a redirect.

}

For more information, see `Updating a Service <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/update-service.html>`__ in the *Amazon ECS Developer Guide*.
Copy link
Contributor

Choose a reason for hiding this comment

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

Broken link. 404 redirect

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation This is a problem with documentation. pr:needs-review This PR needs a review from a Member.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants