Skip to content

Commit d8b8359

Browse files
committed
updated IAM Readmes
1 parent aef08ca commit d8b8359

File tree

11 files changed

+189
-165
lines changed

11 files changed

+189
-165
lines changed

aws-cli/bash-linux/iam/README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,13 @@ For prerequisites, see the [README](../../README.md#Prerequisites) in the `aws-c
2929
<!--custom.prerequisites.start-->
3030
<!--custom.prerequisites.end-->
3131

32+
### Basics
33+
34+
Code examples that show you how to perform the essential operations within a service.
35+
36+
- [Learn the basics](iam_create_user_assume_role_scenario.sh)
37+
38+
3239
### Single actions
3340

3441
Code excerpts that show you how to call individual service functions.
@@ -47,13 +54,6 @@ Code excerpts that show you how to call individual service functions.
4754
- [ListAccessKeys](iam_operations.sh#L273)
4855
- [ListUsers](iam_operations.sh#L56)
4956

50-
### Scenarios
51-
52-
Code examples that show you how to accomplish a specific task by calling multiple
53-
functions within the same service.
54-
55-
- [Create a user and assume a role](iam_create_user_assume_role_scenario.sh)
56-
5757

5858
<!--custom.examples.start-->
5959
<!--custom.examples.end-->
@@ -67,8 +67,7 @@ functions within the same service.
6767
<!--custom.instructions.end-->
6868

6969

70-
71-
#### Create a user and assume a role
70+
#### Learn the basics
7271

7372
This example shows you how to create a user and assume a role.
7473

@@ -77,12 +76,13 @@ This example shows you how to create a user and assume a role.
7776
- Add a policy to let the user assume the role.
7877
- Assume the role and list S3 buckets using temporary credentials, then clean up resources.
7978

80-
<!--custom.scenario_prereqs.iam_Scenario_CreateUserAssumeRole.start-->
81-
<!--custom.scenario_prereqs.iam_Scenario_CreateUserAssumeRole.end-->
79+
<!--custom.basic_prereqs.iam_Scenario_CreateUserAssumeRole.start-->
80+
<!--custom.basic_prereqs.iam_Scenario_CreateUserAssumeRole.end-->
81+
8282

83+
<!--custom.basics.iam_Scenario_CreateUserAssumeRole.start-->
84+
<!--custom.basics.iam_Scenario_CreateUserAssumeRole.end-->
8385

84-
<!--custom.scenarios.iam_Scenario_CreateUserAssumeRole.start-->
85-
<!--custom.scenarios.iam_Scenario_CreateUserAssumeRole.end-->
8686

8787
### Tests
8888

cpp/example_code/iam/README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,13 @@ Next, for information on code example structures and how to build and run the ex
4242
- [Hello IAM](hello_iam/CMakeLists.txt#L4) (`ListPolicies`)
4343

4444

45+
### Basics
46+
47+
Code examples that show you how to perform the essential operations within a service.
48+
49+
- [Learn the basics](iam_create_user_assume_role_scenario.cpp)
50+
51+
4552
### Single actions
4653

4754
Code excerpts that show you how to call individual service functions.
@@ -71,13 +78,6 @@ Code excerpts that show you how to call individual service functions.
7178
- [UpdateServerCertificate](update_server_certificate.cpp#L35)
7279
- [UpdateUser](update_user.cpp#L37)
7380

74-
### Scenarios
75-
76-
Code examples that show you how to accomplish a specific task by calling multiple
77-
functions within the same service.
78-
79-
- [Create a user and assume a role](iam_create_user_assume_role_scenario.cpp)
80-
8181

8282
<!--custom.examples.start-->
8383
<!--custom.examples.end-->
@@ -107,8 +107,7 @@ folder.
107107
This example shows you how to get started using IAM.
108108

109109

110-
111-
#### Create a user and assume a role
110+
#### Learn the basics
112111

113112
This example shows you how to create a user and assume a role.
114113

@@ -117,12 +116,13 @@ This example shows you how to create a user and assume a role.
117116
- Add a policy to let the user assume the role.
118117
- Assume the role and list S3 buckets using temporary credentials, then clean up resources.
119118

120-
<!--custom.scenario_prereqs.iam_Scenario_CreateUserAssumeRole.start-->
121-
<!--custom.scenario_prereqs.iam_Scenario_CreateUserAssumeRole.end-->
119+
<!--custom.basic_prereqs.iam_Scenario_CreateUserAssumeRole.start-->
120+
<!--custom.basic_prereqs.iam_Scenario_CreateUserAssumeRole.end-->
121+
122122

123+
<!--custom.basics.iam_Scenario_CreateUserAssumeRole.start-->
124+
<!--custom.basics.iam_Scenario_CreateUserAssumeRole.end-->
123125

124-
<!--custom.scenarios.iam_Scenario_CreateUserAssumeRole.start-->
125-
<!--custom.scenarios.iam_Scenario_CreateUserAssumeRole.end-->
126126

127127
### Tests
128128

dotnetv3/IAM/README.md

Lines changed: 23 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,13 @@ For prerequisites, see the [README](../README.md#Prerequisites) in the `dotnetv3
3434
- [Hello IAM](Actions/HelloIAM.cs#L4) (`ListPolicies`)
3535

3636

37+
### Basics
38+
39+
Code examples that show you how to perform the essential operations within a service.
40+
41+
- [Learn the basics](Scenarios/IAMBasics/IAMBasics.cs)
42+
43+
3744
### Single actions
3845

3946
Code excerpts that show you how to call individual service functions.
@@ -79,7 +86,6 @@ functions within the same service.
7986

8087
- [Build and manage a resilient service](../cross-service/ResilientService/ResilientServiceWorkflow/ResilientServiceWorkflow.cs)
8188
- [Create a group and add a user](Scenarios/IamScenariosCommon/S3Wrapper.cs)
82-
- [Create a user and assume a role](Scenarios/IAMBasics/IAMBasics.cs)
8389

8490

8591
<!--custom.examples.start-->
@@ -116,6 +122,22 @@ To run the examples, see the [README](../README.md#building-and-running-the-code
116122
This example shows you how to get started using IAM.
117123

118124

125+
#### Learn the basics
126+
127+
This example shows you how to create a user and assume a role.
128+
129+
- Create a user with no permissions.
130+
- Create a role that grants permission to list Amazon S3 buckets for the account.
131+
- Add a policy to let the user assume the role.
132+
- Assume the role and list S3 buckets using temporary credentials, then clean up resources.
133+
134+
<!--custom.basic_prereqs.iam_Scenario_CreateUserAssumeRole.start-->
135+
<!--custom.basic_prereqs.iam_Scenario_CreateUserAssumeRole.end-->
136+
137+
138+
<!--custom.basics.iam_Scenario_CreateUserAssumeRole.start-->
139+
<!--custom.basics.iam_Scenario_CreateUserAssumeRole.end-->
140+
119141

120142
#### Build and manage a resilient service
121143

@@ -150,22 +172,6 @@ This example shows you how to do the following:
150172
<!--custom.scenarios.iam_Scenario_GroupBasics.start-->
151173
<!--custom.scenarios.iam_Scenario_GroupBasics.end-->
152174

153-
#### Create a user and assume a role
154-
155-
This example shows you how to create a user and assume a role.
156-
157-
- Create a user with no permissions.
158-
- Create a role that grants permission to list Amazon S3 buckets for the account.
159-
- Add a policy to let the user assume the role.
160-
- Assume the role and list S3 buckets using temporary credentials, then clean up resources.
161-
162-
<!--custom.scenario_prereqs.iam_Scenario_CreateUserAssumeRole.start-->
163-
<!--custom.scenario_prereqs.iam_Scenario_CreateUserAssumeRole.end-->
164-
165-
166-
<!--custom.scenarios.iam_Scenario_CreateUserAssumeRole.start-->
167-
<!--custom.scenarios.iam_Scenario_CreateUserAssumeRole.end-->
168-
169175
### Tests
170176

171177
⚠ Running tests might result in charges to your AWS account.

gov2/iam/README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,13 @@ For prerequisites, see the [README](../README.md#Prerequisites) in the `gov2` fo
3434
- [Hello IAM](hello/hello.go#L4) (`ListPolicies`)
3535

3636

37+
### Basics
38+
39+
Code examples that show you how to perform the essential operations within a service.
40+
41+
- [Learn the basics](scenarios/scenario_assume_role.go)
42+
43+
3744
### Single actions
3845

3946
Code excerpts that show you how to call individual service functions.
@@ -66,13 +73,6 @@ Code excerpts that show you how to call individual service functions.
6673
- [ListUsers](actions/users.go#L29)
6774
- [PutUserPolicy](actions/users.go#L92)
6875

69-
### Scenarios
70-
71-
Code examples that show you how to accomplish a specific task by calling multiple
72-
functions within the same service.
73-
74-
- [Create a user and assume a role](scenarios/scenario_assume_role.go)
75-
7676

7777
<!--custom.examples.start-->
7878
<!--custom.examples.end-->
@@ -101,8 +101,7 @@ and to get help for running a scenario, use the following command:
101101
```
102102
go run ./cmd -h
103103
```
104-
105-
#### Create a user and assume a role
104+
#### Learn the basics
106105

107106
This example shows you how to create a user and assume a role.
108107

@@ -111,12 +110,13 @@ This example shows you how to create a user and assume a role.
111110
- Add a policy to let the user assume the role.
112111
- Assume the role and list S3 buckets using temporary credentials, then clean up resources.
113112

114-
<!--custom.scenario_prereqs.iam_Scenario_CreateUserAssumeRole.start-->
115-
<!--custom.scenario_prereqs.iam_Scenario_CreateUserAssumeRole.end-->
113+
<!--custom.basic_prereqs.iam_Scenario_CreateUserAssumeRole.start-->
114+
<!--custom.basic_prereqs.iam_Scenario_CreateUserAssumeRole.end-->
115+
116116

117+
<!--custom.basics.iam_Scenario_CreateUserAssumeRole.start-->
118+
<!--custom.basics.iam_Scenario_CreateUserAssumeRole.end-->
117119

118-
<!--custom.scenarios.iam_Scenario_CreateUserAssumeRole.start-->
119-
<!--custom.scenarios.iam_Scenario_CreateUserAssumeRole.end-->
120120

121121
### Tests
122122

javascriptv3/example_code/iam/README.md

Lines changed: 23 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,13 @@ For prerequisites, see the [README](../../README.md#Prerequisites) in the `javas
3434
- [Hello IAM](hello.js#L6) (`ListPolicies`)
3535

3636

37+
### Basics
38+
39+
Code examples that show you how to perform the essential operations within a service.
40+
41+
- [Learn the basics](scenarios/basic.js)
42+
43+
3744
### Single actions
3845

3946
Code excerpts that show you how to call individual service functions.
@@ -88,7 +95,6 @@ Code examples that show you how to accomplish a specific task by calling multipl
8895
functions within the same service.
8996

9097
- [Build and manage a resilient service](../cross-services/wkflw-resilient-service/index.js)
91-
- [Create a user and assume a role](scenarios/basic.js)
9298

9399

94100
<!--custom.examples.start-->
@@ -135,6 +141,22 @@ This example shows you how to get started using IAM.
135141
node ./hello.js
136142
```
137143

144+
#### Learn the basics
145+
146+
This example shows you how to create a user and assume a role.
147+
148+
- Create a user with no permissions.
149+
- Create a role that grants permission to list Amazon S3 buckets for the account.
150+
- Add a policy to let the user assume the role.
151+
- Assume the role and list S3 buckets using temporary credentials, then clean up resources.
152+
153+
<!--custom.basic_prereqs.iam_Scenario_CreateUserAssumeRole.start-->
154+
<!--custom.basic_prereqs.iam_Scenario_CreateUserAssumeRole.end-->
155+
156+
157+
<!--custom.basics.iam_Scenario_CreateUserAssumeRole.start-->
158+
<!--custom.basics.iam_Scenario_CreateUserAssumeRole.end-->
159+
138160

139161
#### Build and manage a resilient service
140162

@@ -154,22 +176,6 @@ This example shows you how to create a load-balanced web service that returns bo
154176
<!--custom.scenarios.cross_ResilientService.start-->
155177
<!--custom.scenarios.cross_ResilientService.end-->
156178

157-
#### Create a user and assume a role
158-
159-
This example shows you how to create a user and assume a role.
160-
161-
- Create a user with no permissions.
162-
- Create a role that grants permission to list Amazon S3 buckets for the account.
163-
- Add a policy to let the user assume the role.
164-
- Assume the role and list S3 buckets using temporary credentials, then clean up resources.
165-
166-
<!--custom.scenario_prereqs.iam_Scenario_CreateUserAssumeRole.start-->
167-
<!--custom.scenario_prereqs.iam_Scenario_CreateUserAssumeRole.end-->
168-
169-
170-
<!--custom.scenarios.iam_Scenario_CreateUserAssumeRole.start-->
171-
<!--custom.scenarios.iam_Scenario_CreateUserAssumeRole.end-->
172-
173179
### Tests
174180

175181
⚠ Running tests might result in charges to your AWS account.

javav2/example_code/iam/README.md

Lines changed: 23 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,13 @@ For prerequisites, see the [README](../../README.md#Prerequisites) in the `javav
3434
- [Hello IAM](src/main/java/com/example/iam/HelloIAM.java#L6) (`ListPolicies`)
3535

3636

37+
### Basics
38+
39+
Code examples that show you how to perform the essential operations within a service.
40+
41+
- [Learn the basics](src/main/java/com/example/iam/IAMScenario.java)
42+
43+
3744
### Single actions
3845

3946
Code excerpts that show you how to call individual service functions.
@@ -61,7 +68,6 @@ Code examples that show you how to accomplish a specific task by calling multipl
6168
functions within the same service.
6269

6370
- [Build and manage a resilient service](../../usecases/resilient_service/src/main/java/com/example/resilient/Main.java)
64-
- [Create a user and assume a role](src/main/java/com/example/iam/IAMScenario.java)
6571
- [Work with the IAM Policy Builder API](src/main/java/com/example/iam/IamPolicyBuilderExamples.java)
6672

6773

@@ -81,6 +87,22 @@ functions within the same service.
8187
This example shows you how to get started using IAM.
8288

8389

90+
#### Learn the basics
91+
92+
This example shows you how to create a user and assume a role.
93+
94+
- Create a user with no permissions.
95+
- Create a role that grants permission to list Amazon S3 buckets for the account.
96+
- Add a policy to let the user assume the role.
97+
- Assume the role and list S3 buckets using temporary credentials, then clean up resources.
98+
99+
<!--custom.basic_prereqs.iam_Scenario_CreateUserAssumeRole.start-->
100+
<!--custom.basic_prereqs.iam_Scenario_CreateUserAssumeRole.end-->
101+
102+
103+
<!--custom.basics.iam_Scenario_CreateUserAssumeRole.start-->
104+
<!--custom.basics.iam_Scenario_CreateUserAssumeRole.end-->
105+
84106

85107
#### Build and manage a resilient service
86108

@@ -100,22 +122,6 @@ This example shows you how to create a load-balanced web service that returns bo
100122
<!--custom.scenarios.cross_ResilientService.start-->
101123
<!--custom.scenarios.cross_ResilientService.end-->
102124

103-
#### Create a user and assume a role
104-
105-
This example shows you how to create a user and assume a role.
106-
107-
- Create a user with no permissions.
108-
- Create a role that grants permission to list Amazon S3 buckets for the account.
109-
- Add a policy to let the user assume the role.
110-
- Assume the role and list S3 buckets using temporary credentials, then clean up resources.
111-
112-
<!--custom.scenario_prereqs.iam_Scenario_CreateUserAssumeRole.start-->
113-
<!--custom.scenario_prereqs.iam_Scenario_CreateUserAssumeRole.end-->
114-
115-
116-
<!--custom.scenarios.iam_Scenario_CreateUserAssumeRole.start-->
117-
<!--custom.scenarios.iam_Scenario_CreateUserAssumeRole.end-->
118-
119125
#### Work with the IAM Policy Builder API
120126

121127
This example shows you how to do the following:

0 commit comments

Comments
 (0)