Ad Widget

Collapse

Template "AWS by HTTP" discovery with assume role

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • TradeGnome
    Junior Member
    • Nov 2024
    • 1

    #1

    Template "AWS by HTTP" discovery with assume role

    Hi,
    I've tried to discover AWS instances with assume role but it seems script doesn't support or include auth_type: assume_role
    I'm assuming that new "case" for auth_type: assume_role needs to be added to discovery script somehow and arn assume role added to macro parameters. But I'm not skilled enough to create aws assume role login to script.
    Could this option be added to templates discovery feature. I'm using AWS template 7.0.0 and didn't find a new version that would include assume role authorization.
    I get the following error when trying to discover hosts:
    {"error":"Request failed with status code 403: <?xml version="1.0" encoding="UTF-8"?>\n<Response><Errors><Error><Code>UnauthorizedO peration</Code><Message>You are not authorized to perform this operation. User: arn:aws:iam::[AWS]:user/[USER] is not authorized to perform: ec2escribeRegions because no identity-based policy allows the ec2escribeRegions action</Message></Error></Errors>

    Please let me know if there's a solution for this or this could be added to the template.

Working...