You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Creating a role using AWS CLI generates the following error: An error occurred (MalformedPolicyDocument) when calling the CreateRole operation: This policy contains invalid Json
Go to AWS Cookbook repo
Run ROLE_ARN=$(aws iam create-role --role-name AWSCookbook101Role --assume-role-policy-document assume-role-policy.json --output text --query Role.Arn)
Expected behavior
A clear and concise description of what you expected to happen.
Desktop (please complete the following information):
macOS 12.4 ARM
Chrome, Visual Studio Code, iTerm, AWS CLI 2.7.12, Python 3.10.5
JSON is happily accepted when creating the role through the AWS UI. I'm inclined to think I'm fat fingering something or something about AWS CLI doesn't like the formatting somewhere.
The text was updated successfully, but these errors were encountered:
Creating a role using AWS CLI generates the following error:
An error occurred (MalformedPolicyDocument) when calling the CreateRole operation: This policy contains invalid Json
ROLE_ARN=$(aws iam create-role --role-name AWSCookbook101Role --assume-role-policy-document assume-role-policy.json --output text --query Role.Arn)
Expected behavior
A clear and concise description of what you expected to happen.
Desktop (please complete the following information):
JSON is happily accepted when creating the role through the AWS UI. I'm inclined to think I'm fat fingering something or something about AWS CLI doesn't like the formatting somewhere.
The text was updated successfully, but these errors were encountered: