
Is it possible to specify a pattern for an AWS role Trust Relationship
It is not possible to use wildcard in the trust policy except "Principal" : { "AWS" : "*" } . The reason being when you specify an identity as Principal, you must use the full ARN since IAM …
How to assign IAM role to users or groups - Stack Overflow
AWS Identity and Access Management (IAM) roles provide a way to access AWS by relying on temporary security credentials. Each role has a set of permissions for making AWS service …
Find role being used on server from AWS CLI - Stack Overflow
If the IAM principal is a user, the commands are aws iam list-attached-user-policies and aws iam get-user-policy. See the AWS IAM CLI reference for more information.
How to list users and its permissions with AWS CLI?
So from the CLI you would need to do the following: aws iam list-user-policies aws iam list-attached-user-policies aws iam list-groups-for-user # For each group: aws iam list-group …
Create a single IAM user to access only specific S3 bucket
I have many S3 buckets in my AWS account. But now I created an IAM user and a new S3 bucket, I would like to give this user the ability to access the new S3 bucket using a client like …
Get IAM Role Name Using IAM Role ID - Stack Overflow
Each IAM entity (user, group, or role) has a defined aws:userid variable. You will need this variable for use within the bucket policy to specify the role or user as an exception in a …
How do you add a comment to a json IAM policy? - Stack Overflow
In IAM, the Sid value must be unique within a policy. [emphasis mine] This is e.g. exemplified by the use of TheseActionsSupportResourceLevelPermissions within the (very helpful) AWS blog …
AWS IAM - Can you use multiple wildcards (*) in a value
AWS IAM - Can you use multiple wildcards (*) in a value Asked 11 years, 8 months ago Modified 1 year, 9 months ago Viewed 100k times
AWS cli: not authorized to perform: sts:AssumeRole on resource
I have an AWS account in which I am assuming a role named A(role-A), from that role I have created another role named B(role-B) through the web console and attached the administrator …
Correct way to attach AWS managed policies to a role?
Jul 10, 2017 · The aws_iam_role resource has a managed_policy_arns field where you can supply a list of AWS Managed Policy ARN strings. This is described in the Terraform Registry …