Skip to content

Commit b88570a

Browse files
committed
Update aws-sdk-go to v1.1.14. Update sdk references.
1 parent ca07e49 commit b88570a

7 files changed

Lines changed: 415 additions & 5 deletions

File tree

ecs-cli/modules/aws/clients/cloudformation/client.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import (
2424
"github.com/aws/amazon-ecs-cli/ecs-cli/utils"
2525
"github.com/aws/aws-sdk-go/aws"
2626
"github.com/aws/aws-sdk-go/aws/awserr"
27+
"github.com/aws/aws-sdk-go/aws/session"
2728
"github.com/aws/aws-sdk-go/service/cloudformation"
2829
"github.com/aws/aws-sdk-go/service/cloudformation/cloudformationiface"
2930
)
@@ -116,7 +117,7 @@ func NewCloudformationClient() CloudformationClient {
116117

117118
// Initialize initializes all the fields of the cloudFormationClient object.
118119
func (c *cloudformationClient) Initialize(params *config.CliParams) {
119-
cfnClient := cloudformation.New(params.Config)
120+
cfnClient := cloudformation.New(session.New(params.Config))
120121
cfnClient.Handlers.Build.PushBackNamed(clients.CustomUserAgentHandler())
121122
c.client = cfnClient
122123
c.cliParams = params

ecs-cli/modules/aws/clients/cloudformation/mock/sdk/cloudformationiface_mock.go

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,28 @@ func (_mr *_MockCloudFormationAPIRecorder) CancelUpdateStackRequest(arg0 interfa
6565
return _mr.mock.ctrl.RecordCall(_mr.mock, "CancelUpdateStackRequest", arg0)
6666
}
6767

68+
func (_m *MockCloudFormationAPI) ContinueUpdateRollback(_param0 *cloudformation.ContinueUpdateRollbackInput) (*cloudformation.ContinueUpdateRollbackOutput, error) {
69+
ret := _m.ctrl.Call(_m, "ContinueUpdateRollback", _param0)
70+
ret0, _ := ret[0].(*cloudformation.ContinueUpdateRollbackOutput)
71+
ret1, _ := ret[1].(error)
72+
return ret0, ret1
73+
}
74+
75+
func (_mr *_MockCloudFormationAPIRecorder) ContinueUpdateRollback(arg0 interface{}) *gomock.Call {
76+
return _mr.mock.ctrl.RecordCall(_mr.mock, "ContinueUpdateRollback", arg0)
77+
}
78+
79+
func (_m *MockCloudFormationAPI) ContinueUpdateRollbackRequest(_param0 *cloudformation.ContinueUpdateRollbackInput) (*request.Request, *cloudformation.ContinueUpdateRollbackOutput) {
80+
ret := _m.ctrl.Call(_m, "ContinueUpdateRollbackRequest", _param0)
81+
ret0, _ := ret[0].(*request.Request)
82+
ret1, _ := ret[1].(*cloudformation.ContinueUpdateRollbackOutput)
83+
return ret0, ret1
84+
}
85+
86+
func (_mr *_MockCloudFormationAPIRecorder) ContinueUpdateRollbackRequest(arg0 interface{}) *gomock.Call {
87+
return _mr.mock.ctrl.RecordCall(_mr.mock, "ContinueUpdateRollbackRequest", arg0)
88+
}
89+
6890
func (_m *MockCloudFormationAPI) CreateStack(_param0 *cloudformation.CreateStackInput) (*cloudformation.CreateStackOutput, error) {
6991
ret := _m.ctrl.Call(_m, "CreateStack", _param0)
7092
ret0, _ := ret[0].(*cloudformation.CreateStackOutput)

ecs-cli/modules/aws/clients/ec2/client.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import (
1919
"github.com/aws/amazon-ecs-cli/ecs-cli/modules/aws/clients"
2020
"github.com/aws/amazon-ecs-cli/ecs-cli/modules/config"
2121
"github.com/aws/aws-sdk-go/aws"
22+
"github.com/aws/aws-sdk-go/aws/session"
2223
"github.com/aws/aws-sdk-go/service/ec2"
2324
"github.com/aws/aws-sdk-go/service/ec2/ec2iface"
2425
)
@@ -38,7 +39,7 @@ type ec2Client struct {
3839

3940
// NewEC2Client creates an instance of ec2Client object.
4041
func NewEC2Client(params *config.CliParams) EC2Client {
41-
client := ec2.New(params.Config)
42+
client := ec2.New(session.New(params.Config))
4243
client.Handlers.Build.PushBackNamed(clients.CustomUserAgentHandler())
4344
return &ec2Client{
4445
client: client,

0 commit comments

Comments
 (0)