Commit 6c375ed2 by Mitsuhiro Tanda

fix assume role

parent f3a2dc7c
...@@ -141,6 +141,7 @@ func ec2RoleProvider(sess *session.Session) credentials.Provider { ...@@ -141,6 +141,7 @@ func ec2RoleProvider(sess *session.Session) credentials.Provider {
} }
func (e *CloudWatchExecutor) getDsInfo(region string) *DatasourceInfo { func (e *CloudWatchExecutor) getDsInfo(region string) *DatasourceInfo {
authType := e.DataSource.JsonData.Get("authType").MustString()
assumeRoleArn := e.DataSource.JsonData.Get("assumeRoleArn").MustString() assumeRoleArn := e.DataSource.JsonData.Get("assumeRoleArn").MustString()
accessKey := "" accessKey := ""
secretKey := "" secretKey := ""
...@@ -156,6 +157,7 @@ func (e *CloudWatchExecutor) getDsInfo(region string) *DatasourceInfo { ...@@ -156,6 +157,7 @@ func (e *CloudWatchExecutor) getDsInfo(region string) *DatasourceInfo {
datasourceInfo := &DatasourceInfo{ datasourceInfo := &DatasourceInfo{
Region: region, Region: region,
Profile: e.DataSource.Database, Profile: e.DataSource.Database,
AuthType: authType,
AssumeRoleArn: assumeRoleArn, AssumeRoleArn: assumeRoleArn,
AccessKey: accessKey, AccessKey: accessKey,
SecretKey: secretKey, SecretKey: secretKey,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment