Skip to content

[v2] Add ability to get values from properties in subsections#10112

Open
kdaily wants to merge 1 commit intofeature-configure-subsectionsfrom
add-configure-get-subsections
Open

[v2] Add ability to get values from properties in subsections#10112
kdaily wants to merge 1 commit intofeature-configure-subsectionsfrom
add-configure-get-subsections

Conversation

@kdaily
Copy link
Member

@kdaily kdaily commented Feb 27, 2026

Issue #, if available:

Continuation of #10109.

Description of changes:

This change adds new parameters to the aws configure get command to specify a sub-section for getting the value of a property. These parameters are analogous to the existing --profile parameter. A parameter will be added for each sub-section type and take a value of the subsection name. Following is the generic pattern for the aws configure get command:

aws configure get
  --<sub-section-type> <sub-section-name> \
  <property>

For example, the following command should get the property sso_region from the sso-session sub-section named my-sso-session:

aws configure get --sso-session my-sso-session sso_region 

Following is an example getting a nested property in a sub-section:

aws configure get \
  --<sub-section-type> <sub-section-name> \
  <nested-section>.<property>

The only sub-section types allowed are services and sso-session.

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

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.

1 participant