Difference between revisions of "Aws iam create-role"
Jump to navigation
Jump to search
Line 4: | Line 4: | ||
* <code>[[aws iam]] create-role</code> | * <code>[[aws iam]] create-role</code> | ||
* <code>[[aws iam]] create-role --role-name Test-Role --assume-role-[[policy]]-document file://Test-Role-Trust-Policy[[.json]]</code> | * <code>[[aws iam]] create-role --role-name Test-Role --assume-role-[[policy]]-document file://Test-Role-Trust-Policy[[.json]]</code> | ||
+ | |||
+ | aws iam create-role --role-name my-role --assume-role-policy-document file://[[trust-relationship.json]] --description "my-role-description" | ||
Revision as of 11:36, 24 October 2023
https://awscli.amazonaws.com/v2/documentation/api/latest/reference/iam/create-role.html
aws iam create-role
aws iam create-role --role-name Test-Role --assume-role-policy-document file://Test-Role-Trust-Policy.json
aws iam create-role --role-name my-role --assume-role-policy-document file://trust-relationship.json --description "my-role-description"
Related terms
- Terraform resource:
aws_iam_role
- AWS IAM Access Analyzer (2019)
- Amazon Cloudformation EKS cluster role
AWS::IAM::Role
iam:CreateRole
aws iam create-service-linked-role
See also
- AWS IAM role, AWS service roles, AWS IAM Roles Anywhere: [
list-roles | get-role | create-role | put-role-policy | create-service-linked-role | attach-role-policy | update-role | add-role-to-instance-profile ], aws ec2 describe-iam-instance-profile-associations ]
, IAM roles for EC2 instances,AWSServiceRoleForAutoScaling
aws iam
[create-user
,create-group, get-user
,list-users
|list-policies
|list-attached-user-policies
|attach-user-policy
|list-attached-user-policies
|list-roles
|get-account-summary
|put-group-policy | put-role-policy | put-user-policy
|create-login-profile
|aws iam delete-virtual-mfa-device
|aws iam list-virtual-mfa-devices
|aws iam create-saml-provider
|aws iam list-account-aliases
|aws iam create-role | aws iam change-password| enable-mfa-device | list-instance-profiles
Advertising: