Last active
April 1, 2021 03:28
-
-
Save ccortezb/b2bd315d34411d44ae5847ba7c4cc5d2 to your computer and use it in GitHub Desktop.
creat iam policy, iam role y asumirlos en la aws cli
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Usa los anteriores json para poder crearlos | |
#crear iam policy | |
aws iam create-policy --policy-name iampolicy_dynamodb_For_lambda --policy-document file://iampolicy_dynamodb_For_lambda.json | |
# crear IAM role y asumirlo | |
aws iam create-role --role-name LambdaRoleForDynamoDBAccess --assume-role-policy-document file://IAM_Role_Trust_Relationship_Lambda_Dynamodb.json | |
aws iam attach-role-policy --role-name LambdaRoleForDynamoDBAccess --policy-arn "arn:aws:iam::279624932954:policy/iampolicy_dynamodb_For_lambda" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment