Description: Assigns an AWS IAM role to a user.
Since: Artifactory 7.90
Security: Requires a valid admin token
Usage: PUT /access/api/v1/aws/iam_role
The request must have the following information in JSON format.
username: The JFrog Platform user name.
iam_role: The AWS IAM role. Must follow the regex,
"^arn:aws:iam::\\d{12}:role/[\\w+=,.@:-]+$"
.
Produces: text/plain
Sample Usage
curl -X PUT -H "Content-type: application/json" \ -H "Authorization: Bearer cOENUdUxv" \ https://example.jfrog.io/access/api/v1/aws/iam_role -d \ '{"username": "jfrog-aws", "iam_role": "arn:aws:iam::000000000:role/example"}'