Skip to content

Commit

Permalink
rollback the interface change for EC2RoleAssumptionCredential (#1053)
Browse files Browse the repository at this point in the history
  • Loading branch information
chengw-netflix authored Apr 26, 2023
1 parent 2cd48ed commit e8aeded
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
import com.amazonaws.auth.STSAssumeRoleSessionCredentialsProvider;
import com.netflix.priam.config.IConfiguration;
import com.netflix.priam.cred.ICredential;
import com.netflix.priam.identity.config.AWSInstanceInfo;
import com.netflix.priam.identity.config.InstanceInfo;
import javax.inject.Inject;
import org.apache.commons.lang3.StringUtils;
Expand All @@ -30,10 +29,11 @@ public class EC2RoleAssumptionCredential implements ICredential {
private AWSCredentialsProvider stsSessionCredentialsProvider;

@Inject
public EC2RoleAssumptionCredential(ICredential cred, IConfiguration config) {
public EC2RoleAssumptionCredential(
ICredential cred, IConfiguration config, InstanceInfo instanceInfo) {
this.cred = cred;
this.config = config;
this.instanceInfo = new AWSInstanceInfo(cred);
this.instanceInfo = instanceInfo;
}

@Override
Expand Down

0 comments on commit e8aeded

Please sign in to comment.