Get the final IAM role URL where the request will be sent to fetch the rolling access credentials. http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/iam-roles-for-amazon-ec2.html
(endpoint string)
| 261 | // be sent to fetch the rolling access credentials. |
| 262 | // http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/iam-roles-for-amazon-ec2.html |
| 263 | func getIAMRoleURL(endpoint string) (*url.URL, error) { |
| 264 | u, err := url.Parse(endpoint) |
| 265 | if err != nil { |
| 266 | return nil, err |
| 267 | } |
| 268 | u.Path = DefaultIAMSecurityCredsPath |
| 269 | return u, nil |
| 270 | } |
| 271 | |
| 272 | // listRoleNames lists of credential role names associated |
| 273 | // with the current EC2 service. If there are no credentials, |