Skip to content

Commit

Permalink
Use AWSCredentialsProvider instead of passing around AWSCredentials (#3)
Browse files Browse the repository at this point in the history
The InstanceProfileCredentials provider in the SDK knows when to automatically refresh to get the next credential set when getCredentials is called. The whole idea of having akka do this for us with a 30 minute refresh was a bad idea - leaving the alone for now, but it should be removed in the future as it's not needed. However, it is not hurting anything.

By passing the CredentialsProvider around, the correct / refreshed credentials should be provided automatically by AWS's SDK every time.
  • Loading branch information
rmmeans authored Jul 13, 2016
1 parent 08bd5dc commit 7918105
Show file tree
Hide file tree
Showing 35 changed files with 95 additions and 95 deletions.
8 changes: 4 additions & 4 deletions app/actors/workflow/AmazonCredentials.scala
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class AmazonCredentials extends Actor with ActorLogging {

override def postStop() = tick.cancel()

var credentials: Option[AWSCredentials] = None
var credentialProvider: Option[AWSCredentialsProvider] = None

override def receive: Receive = {
case Tick =>
Expand All @@ -36,7 +36,7 @@ class AmazonCredentials extends Actor with ActorLogging {
loadCreds()

case RequestCredentials =>
sender() ! (credentials match {
sender() ! (credentialProvider match {
case Some(x) => CurrentCredentials(x)
case None => NoCredentials
})
Expand All @@ -58,7 +58,7 @@ class AmazonCredentials extends Actor with ActorLogging {
case "SystemPropertiesCredentialsProvider" => new SystemPropertiesCredentialsProvider()
}

credentials = Some(provider.getCredentials)
credentialProvider = Some(provider)
} catch {
case ex: Exception => {
log.debug("Error loading credentials...leaving them as-is. ", ex)
Expand All @@ -73,5 +73,5 @@ object AmazonCredentials {
case object RequestCredentials
case object ForceReload
case object NoCredentials
case class CurrentCredentials(credentials: AWSCredentials)
case class CurrentCredentials(credentials: AWSCredentialsProvider)
}
6 changes: 3 additions & 3 deletions app/actors/workflow/WorkflowManager.scala
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import actors.workflow.steps.TearDownSupervisor.{TearDownCommand, TearDownFinish
import actors.workflow.steps.ValidateAndFreezeSupervisor._
import actors.workflow.steps._
import akka.actor._
import com.amazonaws.auth.AWSCredentials
import com.amazonaws.auth.AWSCredentialsProvider
import com.typesafe.config.ConfigFactory
import play.api.libs.json.Json
import utils.{ActorFactory, PropFactory}
Expand Down Expand Up @@ -265,8 +265,8 @@ object WorkflowManager extends PropFactory {
sealed trait WorkflowData
case object Uninitialized extends WorkflowData
case class DeployData(deploy: Deploy) extends WorkflowData
case class DeployDataWithCreds(deploy: Deploy, creds: AWSCredentials) extends WorkflowData
case class DeployDataWithCredsWithSteps(deploy: Deploy, creds: AWSCredentials,
case class DeployDataWithCreds(deploy: Deploy, creds: AWSCredentialsProvider) extends WorkflowData
case class DeployDataWithCredsWithSteps(deploy: Deploy, creds: AWSCredentialsProvider,
stepData: Map[String, String] = Map.empty[String, String]) extends WorkflowData
case class DeleteData(stackName: String) extends WorkflowData

Expand Down
8 changes: 4 additions & 4 deletions app/actors/workflow/steps/DeleteStackSupervisor.scala
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ import actors.workflow.steps.DeleteStackSupervisor.{DeleteStackData, DeleteStack
import actors.workflow.tasks.DeleteStack.{DeleteStackCommand, StackDeleteRequested}
import actors.workflow.tasks.StackDeleteCompleteMonitor.StackDeleteCompleted
import actors.workflow.tasks.StackInfo.StackIdQuery
import actors.workflow.tasks.{StackDeleteCompleteMonitor, DeleteStack, StackInfo}
import actors.workflow.tasks.{DeleteStack, StackDeleteCompleteMonitor, StackInfo}
import actors.workflow.{AWSSupervisorStrategy, WorkflowManager}
import akka.actor._
import com.amazonaws.auth.AWSCredentials
import utils.{PropFactory, ActorFactory}
import com.amazonaws.auth.AWSCredentialsProvider
import utils.{ActorFactory, PropFactory}

class DeleteStackSupervisor(credentials: AWSCredentials,
class DeleteStackSupervisor(credentials: AWSCredentialsProvider,
actorFactory: ActorFactory) extends FSM[DeleteStackStates, DeleteStackData]
with ActorLogging with AWSSupervisorStrategy {

Expand Down
4 changes: 2 additions & 2 deletions app/actors/workflow/steps/HealthyInstanceSupervisor.scala
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ import actors.workflow.tasks.{ASGInfo, ELBHealthyInstanceChecker}
import actors.workflow.{AWSSupervisorStrategy, WorkflowManager}
import akka.actor.FSM.Failure
import akka.actor._
import com.amazonaws.auth.AWSCredentials
import com.amazonaws.auth.AWSCredentialsProvider
import com.typesafe.config.ConfigFactory
import utils.ConfigHelpers._
import utils.{ActorFactory, PropFactory}

import scala.concurrent.ExecutionContext.Implicits.global
import scala.concurrent.duration._

class HealthyInstanceSupervisor(credentials: AWSCredentials, expectedInstances: Int, asgName: String,
class HealthyInstanceSupervisor(credentials: AWSCredentialsProvider, expectedInstances: Int, asgName: String,
actorFactory: ActorFactory) extends FSM[HealthyInstanceMonitorStates, HealthyInstanceData]
with ActorLogging with AWSSupervisorStrategy {

Expand Down
4 changes: 2 additions & 2 deletions app/actors/workflow/steps/LoadStackSupervisor.scala
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import actors.workflow.tasks.StackLoader
import actors.workflow.tasks.StackLoader.{LoadStack, StackLoaded}
import actors.workflow.{AWSSupervisorStrategy, WorkflowManager}
import akka.actor._
import com.amazonaws.auth.AWSCredentials
import com.amazonaws.auth.AWSCredentialsProvider
import play.api.libs.json.JsValue
import utils.{PropFactory, ActorFactory}

class LoadStackSupervisor(credentials: AWSCredentials,
class LoadStackSupervisor(credentials: AWSCredentialsProvider,
actorFactory: ActorFactory) extends FSM[LoadStackStates, LoadStackData] with ActorLogging
with AWSSupervisorStrategy {

Expand Down
4 changes: 2 additions & 2 deletions app/actors/workflow/steps/NewStackSupervisor.scala
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ import actors.workflow.tasks.StackInfo.{StackASGNameQuery, StackASGNameResponse}
import actors.workflow.tasks._
import actors.workflow.{AWSSupervisorStrategy, WorkflowManager}
import akka.actor._
import com.amazonaws.auth.AWSCredentials
import com.amazonaws.auth.AWSCredentialsProvider
import play.api.libs.json.JsValue
import utils.{ActorFactory, PropFactory}

class NewStackSupervisor(credentials: AWSCredentials,
class NewStackSupervisor(credentials: AWSCredentialsProvider,
actorFactory: ActorFactory) extends FSM[NewStackState, NewStackData] with ActorLogging
with AWSSupervisorStrategy {

Expand Down
4 changes: 2 additions & 2 deletions app/actors/workflow/steps/RollBackStackSupervisor.scala
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ import actors.workflow.tasks.UnfreezeASG.{UnfreezeASGCommand, UnfreezeASGComplet
import actors.workflow.tasks.{DeleteStack, StackDeleteCompleteMonitor, StackInfo, UnfreezeASG}
import actors.workflow.{AWSSupervisorStrategy, WorkflowManager}
import akka.actor.{ActorLogging, FSM, Props, Terminated}
import com.amazonaws.auth.AWSCredentials
import com.amazonaws.auth.AWSCredentialsProvider
import utils.{ActorFactory, PropFactory}

class RollBackStackSupervisor(credentials: AWSCredentials,
class RollBackStackSupervisor(credentials: AWSCredentialsProvider,
actorFactory: ActorFactory) extends FSM[RollBackState, RollBackData] with ActorLogging
with AWSSupervisorStrategy {

Expand Down
4 changes: 2 additions & 2 deletions app/actors/workflow/steps/TearDownSupervisor.scala
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ import actors.workflow.tasks.UnfreezeASG.{UnfreezeASGCommand, UnfreezeASGComplet
import actors.workflow.tasks.{DeleteStack, StackDeleteCompleteMonitor, StackInfo, UnfreezeASG}
import actors.workflow.{AWSSupervisorStrategy, WorkflowManager}
import akka.actor._
import com.amazonaws.auth.AWSCredentials
import com.amazonaws.auth.AWSCredentialsProvider
import utils.{ActorFactory, PropFactory}

class TearDownSupervisor(credentials: AWSCredentials,
class TearDownSupervisor(credentials: AWSCredentialsProvider,
actorFactory: ActorFactory) extends FSM[TearDownState, TearDownData] with ActorLogging
with AWSSupervisorStrategy {

Expand Down
4 changes: 2 additions & 2 deletions app/actors/workflow/steps/ValidateAndFreezeSupervisor.scala
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ import actors.workflow.tasks.StackList.{FilteredStacks, ListNonDeletedStacksStar
import actors.workflow.tasks.{FreezeASG, StackInfo, StackList}
import actors.workflow.{AWSSupervisorStrategy, WorkflowManager}
import akka.actor._
import com.amazonaws.auth.AWSCredentials
import com.amazonaws.auth.AWSCredentialsProvider
import utils.{ActorFactory, PropFactory}

class ValidateAndFreezeSupervisor(credentials: AWSCredentials,
class ValidateAndFreezeSupervisor(credentials: AWSCredentialsProvider,
actorFactory: ActorFactory) extends FSM[ValidateAndFreezeStates, ValidateAndFreezeData]
with ActorLogging with AWSSupervisorStrategy {

Expand Down
4 changes: 2 additions & 2 deletions app/actors/workflow/tasks/ASGInfo.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ package actors.workflow.tasks

import actors.workflow.AWSRestartableActor
import akka.actor.Props
import com.amazonaws.auth.AWSCredentials
import com.amazonaws.auth.AWSCredentialsProvider
import com.amazonaws.services.autoscaling.model.DescribeAutoScalingGroupsRequest
import utils.{AmazonAutoScalingService, PropFactory}

import scala.collection.JavaConverters._

class ASGInfo(credentials: AWSCredentials) extends AWSRestartableActor with AmazonAutoScalingService {
class ASGInfo(credentials: AWSCredentialsProvider) extends AWSRestartableActor with AmazonAutoScalingService {

import actors.workflow.tasks.ASGInfo._

Expand Down
4 changes: 2 additions & 2 deletions app/actors/workflow/tasks/ASGSize.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ package actors.workflow.tasks

import actors.workflow.AWSRestartableActor
import akka.actor.Props
import com.amazonaws.auth.AWSCredentials
import com.amazonaws.auth.AWSCredentialsProvider
import com.amazonaws.services.autoscaling.model.{DescribeAutoScalingGroupsRequest, SetDesiredCapacityRequest}
import utils.{AmazonAutoScalingService, PropFactory}

import scala.collection.JavaConverters._

class ASGSize(credentials: AWSCredentials) extends AWSRestartableActor with AmazonAutoScalingService {
class ASGSize(credentials: AWSCredentialsProvider) extends AWSRestartableActor with AmazonAutoScalingService {

import actors.workflow.tasks.ASGSize._

Expand Down
4 changes: 2 additions & 2 deletions app/actors/workflow/tasks/DeleteStack.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ package actors.workflow.tasks

import actors.workflow.AWSRestartableActor
import akka.actor.Props
import com.amazonaws.auth.AWSCredentials
import com.amazonaws.auth.AWSCredentialsProvider
import com.amazonaws.services.cloudformation.model.DeleteStackRequest
import utils.{AmazonCloudFormationService, PropFactory}

class DeleteStack(credentials: AWSCredentials) extends AWSRestartableActor with AmazonCloudFormationService {
class DeleteStack(credentials: AWSCredentialsProvider) extends AWSRestartableActor with AmazonCloudFormationService {

import actors.workflow.tasks.DeleteStack._

Expand Down
4 changes: 2 additions & 2 deletions app/actors/workflow/tasks/ELBHealthyInstanceChecker.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ package actors.workflow.tasks

import actors.workflow.AWSRestartableActor
import akka.actor.Props
import com.amazonaws.auth.AWSCredentials
import com.amazonaws.auth.AWSCredentialsProvider
import com.amazonaws.services.elasticloadbalancing.model.{DescribeInstanceHealthRequest, Instance}
import utils.{AmazonElasticLoadBalancingService, PropFactory}

import scala.collection.JavaConverters._

class ELBHealthyInstanceChecker(credentials: AWSCredentials) extends AWSRestartableActor
class ELBHealthyInstanceChecker(credentials: AWSCredentialsProvider) extends AWSRestartableActor
with AmazonElasticLoadBalancingService {

import actors.workflow.tasks.ELBHealthyInstanceChecker._
Expand Down
4 changes: 2 additions & 2 deletions app/actors/workflow/tasks/FreezeASG.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ package actors.workflow.tasks

import actors.workflow.AWSRestartableActor
import akka.actor.Props
import com.amazonaws.auth.AWSCredentials
import com.amazonaws.auth.AWSCredentialsProvider
import com.amazonaws.services.autoscaling.model.SuspendProcessesRequest
import utils.{AmazonAutoScalingService, PropFactory}

import scala.collection.JavaConverters._

class FreezeASG(credentials: AWSCredentials) extends AWSRestartableActor with AmazonAutoScalingService {
class FreezeASG(credentials: AWSCredentialsProvider) extends AWSRestartableActor with AmazonAutoScalingService {

import actors.workflow.tasks.FreezeASG._

Expand Down
4 changes: 2 additions & 2 deletions app/actors/workflow/tasks/StackCreateCompleteMonitor.scala
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package actors.workflow.tasks
import actors.WorkflowLog.LogMessage
import actors.workflow.AWSRestartableActor
import akka.actor.Props
import com.amazonaws.auth.AWSCredentials
import com.amazonaws.auth.AWSCredentialsProvider
import com.amazonaws.services.cloudformation.model.DescribeStacksRequest
import play.api.Logger
import utils.{AmazonCloudFormationService, PropFactory}
Expand All @@ -13,7 +13,7 @@ import scala.concurrent.ExecutionContext.Implicits.global
import scala.concurrent.duration._


class StackCreateCompleteMonitor(credentials: AWSCredentials, stackName: String) extends AWSRestartableActor
class StackCreateCompleteMonitor(credentials: AWSCredentialsProvider, stackName: String) extends AWSRestartableActor
with AmazonCloudFormationService {

import actors.workflow.tasks.StackCreateCompleteMonitor._
Expand Down
4 changes: 2 additions & 2 deletions app/actors/workflow/tasks/StackCreator.scala
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ package actors.workflow.tasks
import actors.DeploymentSupervisor.{StackAndAppVersion, AppVersion, Version}
import actors.workflow.AWSRestartableActor
import akka.actor.Props
import com.amazonaws.auth.AWSCredentials
import com.amazonaws.auth.AWSCredentialsProvider
import com.amazonaws.services.cloudformation.model.{Capability, CreateStackRequest, Parameter, Tag}
import play.api.libs.json.JsValue
import utils.{AmazonCloudFormationService, PropFactory}

class StackCreator(credentials: AWSCredentials) extends AWSRestartableActor with AmazonCloudFormationService {
class StackCreator(credentials: AWSCredentialsProvider) extends AWSRestartableActor with AmazonCloudFormationService {

import actors.workflow.tasks.StackCreator._

Expand Down
4 changes: 2 additions & 2 deletions app/actors/workflow/tasks/StackDeleteCompleteMonitor.scala
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ package actors.workflow.tasks
import actors.WorkflowLog.LogMessage
import actors.workflow.AWSRestartableActor
import akka.actor.Props
import com.amazonaws.auth.AWSCredentials
import com.amazonaws.auth.AWSCredentialsProvider
import com.amazonaws.services.cloudformation.model.DescribeStacksRequest
import utils.{AmazonCloudFormationService, PropFactory}

import scala.collection.JavaConverters._
import scala.concurrent.ExecutionContext.Implicits.global
import scala.concurrent.duration._

class StackDeleteCompleteMonitor(credentials: AWSCredentials, stackId: String,
class StackDeleteCompleteMonitor(credentials: AWSCredentialsProvider, stackId: String,
stackName: String) extends AWSRestartableActor with AmazonCloudFormationService {

import actors.workflow.tasks.StackDeleteCompleteMonitor._
Expand Down
4 changes: 2 additions & 2 deletions app/actors/workflow/tasks/StackInfo.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ package actors.workflow.tasks

import actors.workflow.AWSRestartableActor
import akka.actor.Props
import com.amazonaws.auth.AWSCredentials
import com.amazonaws.auth.AWSCredentialsProvider
import com.amazonaws.services.cloudformation.model.DescribeStacksRequest
import utils.{AmazonCloudFormationService, PropFactory}

import scala.collection.JavaConverters._

class StackInfo(credentials: AWSCredentials) extends AWSRestartableActor with AmazonCloudFormationService {
class StackInfo(credentials: AWSCredentialsProvider) extends AWSRestartableActor with AmazonCloudFormationService {

import actors.workflow.tasks.StackInfo._

Expand Down
4 changes: 2 additions & 2 deletions app/actors/workflow/tasks/StackList.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package actors.workflow.tasks

import actors.workflow.AWSRestartableActor
import akka.actor.Props
import com.amazonaws.auth.AWSCredentials
import com.amazonaws.auth.AWSCredentialsProvider
import com.amazonaws.services.cloudformation.AmazonCloudFormation
import com.amazonaws.services.cloudformation.model.{StackSummary, ListStacksRequest}
import com.amazonaws.services.cloudformation.model.StackStatus._
Expand All @@ -11,7 +11,7 @@ import utils.{AmazonCloudFormationService, PropFactory}
import scala.annotation.tailrec
import scala.collection.JavaConverters._

class StackList(credentials: AWSCredentials) extends AWSRestartableActor with AmazonCloudFormationService {
class StackList(credentials: AWSCredentialsProvider) extends AWSRestartableActor with AmazonCloudFormationService {

import actors.workflow.tasks.StackList._

Expand Down
4 changes: 2 additions & 2 deletions app/actors/workflow/tasks/StackLoader.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ package actors.workflow.tasks

import actors.workflow.AWSRestartableActor
import akka.actor.Props
import com.amazonaws.auth.AWSCredentials
import com.amazonaws.auth.AWSCredentialsProvider
import com.amazonaws.services.s3.AmazonS3Client
import com.amazonaws.services.s3.model.S3Object
import org.apache.commons.io.IOUtils
import play.api.Logger
import play.api.libs.json.{JsValue, Json}
import utils.{AmazonS3Service, PropFactory}

class StackLoader(credentials: AWSCredentials, bucketName: String) extends AWSRestartableActor with AmazonS3Service {
class StackLoader(credentials: AWSCredentialsProvider, bucketName: String) extends AWSRestartableActor with AmazonS3Service {

import actors.workflow.tasks.StackLoader._

Expand Down
4 changes: 2 additions & 2 deletions app/actors/workflow/tasks/UnfreezeASG.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ package actors.workflow.tasks

import actors.workflow.AWSRestartableActor
import akka.actor.{Actor, ActorLogging, Props}
import com.amazonaws.auth.AWSCredentials
import com.amazonaws.auth.AWSCredentialsProvider
import com.amazonaws.services.autoscaling.AmazonAutoScalingClient
import com.amazonaws.services.autoscaling.model.ResumeProcessesRequest
import utils.{AmazonAutoScalingService, PropFactory}

class UnfreezeASG(credentials: AWSCredentials) extends AWSRestartableActor with AmazonAutoScalingService {
class UnfreezeASG(credentials: AWSCredentialsProvider) extends AWSRestartableActor with AmazonAutoScalingService {

import actors.workflow.tasks.UnfreezeASG._

Expand Down
10 changes: 5 additions & 5 deletions app/utils/Components.scala
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
package utils

import com.amazonaws.auth.AWSCredentials
import com.amazonaws.auth.AWSCredentialsProvider
import com.amazonaws.services.autoscaling.{AmazonAutoScaling, AmazonAutoScalingClient}
import com.amazonaws.services.cloudformation.{AmazonCloudFormation, AmazonCloudFormationClient}
import com.amazonaws.services.elasticloadbalancing.{AmazonElasticLoadBalancing, AmazonElasticLoadBalancingClient}
import com.amazonaws.services.s3.{AmazonS3, AmazonS3Client}

trait AmazonAutoScalingService {
def autoScalingClient(credentials: AWSCredentials): AmazonAutoScaling = new AmazonAutoScalingClient(credentials)
def autoScalingClient(credentials: AWSCredentialsProvider): AmazonAutoScaling = new AmazonAutoScalingClient(credentials)
}

trait AmazonCloudFormationService {
def cloudFormationClient(credentials: AWSCredentials): AmazonCloudFormation = new AmazonCloudFormationClient(credentials)
def cloudFormationClient(credentials: AWSCredentialsProvider): AmazonCloudFormation = new AmazonCloudFormationClient(credentials)
}

trait AmazonElasticLoadBalancingService {
def elasticLoadBalancingClient(credentials: AWSCredentials): AmazonElasticLoadBalancing = new AmazonElasticLoadBalancingClient(credentials)
def elasticLoadBalancingClient(credentials: AWSCredentialsProvider): AmazonElasticLoadBalancing = new AmazonElasticLoadBalancingClient(credentials)
}

trait AmazonS3Service {
def s3Client(credentials: AWSCredentials): AmazonS3 = new AmazonS3Client(credentials)
def s3Client(credentials: AWSCredentialsProvider): AmazonS3 = new AmazonS3Client(credentials)
}
4 changes: 2 additions & 2 deletions test/actors/workflow/tasks/ASGInfoSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import actors.WorkflowLog.LogMessage
import actors.workflow.tasks.ASGInfo.{ASGInServiceInstancesAndELBSQuery, ASGInServiceInstancesAndELBSResult}
import akka.actor._
import akka.testkit.{TestKit, TestProbe}
import com.amazonaws.auth.AWSCredentials
import com.amazonaws.auth.AWSCredentialsProvider
import com.amazonaws.services.autoscaling.AmazonAutoScaling
import com.amazonaws.services.autoscaling.model._
import com.amazonaws.{AmazonClientException, AmazonServiceException}
Expand Down Expand Up @@ -62,7 +62,7 @@ class ASGInfoSpec extends TestKit(ActorSystem("TestKit", TestConfiguration.testC
val asgInfoProps = Props(new ASGInfo(null) {
override def pauseTime(): FiniteDuration = 5.milliseconds

override def autoScalingClient(credentials: AWSCredentials): AmazonAutoScaling = mockedClient
override def autoScalingClient(credentials: AWSCredentialsProvider): AmazonAutoScaling = mockedClient
})

object TestActorFactory extends ActorFactory {
Expand Down
Loading

0 comments on commit 7918105

Please sign in to comment.