Innablr / revolver

AWS Powercycle Facility
MIT License
2 stars 3 forks source link

Include information about region when assuming a workload account role #310

Closed lyricnz closed 4 months ago

lyricnz commented 5 months ago

Otherwise it's hard to tell which region has the problem, and lines look like duplicates:

{"message":"Requested connection via arn:aws:iam::ACCOUNT:role/TargetRole"
{"message":"Assuming role arn:aws:iam::ACCOUNT:role/TargetRole..."
{"message":"Unable to assume role arn:aws:iam::ACCOUNT:role/TargetRole on 658730722470: AccessDenied: User: arn:aws:sts::ACCOUNT:assumed-role/TargetRole
lyricnz commented 5 months ago

In fact, nearly any time we mention an account, it should probably include a region eg: Account ACCOUNT will be skipped

lyricnz commented 5 months ago

Included in https://github.com/Innablr/revolver/pull/313