amazon-ec2-mac-mdm-enrollment-automation icon indicating copy to clipboard operation
amazon-ec2-mac-mdm-enrollment-automation copied to clipboard

The AWS role creation has a syntax error and also, does not work.

Open dbiscan opened this issue 2 months ago • 0 comments

this: { "Version": "2012-10-17" "Statement": [ { "Action": [ "secretsmanager:ListSecrets", "secretsmanager:ListSecretVersionIds", "secretsmanager:GetSecretValue", "secretsmanager:GetResourcePolicy", "secretsmanager:GetRandomPassword", "secretsmanager:DescribeSecret" ], "Effect": "Allow", "Resource": "arn:aws:secretsmanager:⚠️⇢region-name:111122223333:secret:mdmSecret", "Sid": "" } ] }

is missing a comma after "Version" so it throws very cryptic syntax error ( "line 3, col 4 is missing ; or }" )

Also, "Resource" is not allowed. "

Ln 15, Col 15 Role Trust Policy Syntax Error Resource: Role trust policies apply to the role that they are attached to. You cannot specify a resource. Remove the Resource or NotResource element. 
"
So this syntax is wrong.

I'm creating a "Custom Trust Policy" role through IAM after creating the secret and I'm following the instructions as best as I can but these steps aren't very clear. Can you review the syntax and instructions please? Thanks.

dbiscan avatar Sep 17 '25 21:09 dbiscan