Slide 21
Slide 21 text
ߏஙྫ (IAMϢʔβͱIAMάϧʔϓ)
# IAM Group
iam_group = iam.Group(self,
"HandsonGroup",
group_name = "HandsonGroup",
managed_policies = [
iam.ManagedPolicy.from_aws_managed_policy_name("AmazonS3FullAccess"),
]
)
# IAM Users
cnt = 10
for i in range(1, cnt + 1):
iam_user = iam.User(self,
f"handson-seminar-iamuser-{i}",
user_name = f"handson-seminar-iamuser-{i}",
groups = [iam_group],
)
21