Tabnine Logo
AwsCredentialsProfileFactoryBuilder$AwsCredentialsProfileFactory
Code IndexAdd Tabnine to your IDE (free)

How to use
AwsCredentialsProfileFactoryBuilder$AwsCredentialsProfileFactory
in
com.netflix.spinnaker.halyard.deploy.spinnaker.v1.profile

Best Java code snippets using com.netflix.spinnaker.halyard.deploy.spinnaker.v1.profile.AwsCredentialsProfileFactoryBuilder$AwsCredentialsProfileFactory (Showing top 8 results out of 315)

origin: com.netflix.spinnaker.halyard/halyard-deploy

protected Optional<Profile> generateAwsProfile(DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints, String spinnakerHome) {
 String name = "aws/kayenta-credentials" + spinnakerHome.replace("/", "_");
 Canary canary = deploymentConfiguration.getCanary();
 if (canary.isEnabled()) {
  AwsCanaryServiceIntegration awsCanaryServiceIntegration =
    (AwsCanaryServiceIntegration)getServiceIntegrationByClass(canary, AwsCanaryServiceIntegration.class);
  // TODO(lwander/duftler): Seems like this approach leaves us open to potential collision between kayenta aws
  // accounts, and front50 and clouddriver configuration.
  if (awsCanaryServiceIntegration.isS3Enabled()) {
   Optional<AwsCanaryAccount> optionalAwsCanaryAccount =
     awsCanaryServiceIntegration.getAccounts()
       .stream()
       .filter(a -> !StringUtils.isEmpty(a.getAccessKeyId()) && !StringUtils.isEmpty(a.getSecretAccessKey()))
       .findFirst();
   if (optionalAwsCanaryAccount.isPresent()) {
    AwsCanaryAccount awsCanaryAccount = optionalAwsCanaryAccount.get();
    String outputFile = awsCredentialsProfileFactoryBuilder.getOutputFile(spinnakerHome);
    awsCredentialsProfileFactoryBuilder.setProfileName(StringUtils.isNotBlank(awsCanaryAccount.getProfileName()) ? awsCanaryAccount.getProfileName() : "default");
    return Optional.of(awsCredentialsProfileFactoryBuilder
      .setArtifact(SpinnakerArtifact.KAYENTA)
      .setAccessKeyId(awsCanaryAccount.getAccessKeyId())
      .setSecretAccessKey(awsCanaryAccount.getSecretAccessKey())
      .build()
      .getProfile(name, outputFile, deploymentConfiguration, endpoints));
   }
  }
 }
 return Optional.empty();
}
origin: spinnaker/halyard

protected Optional<Profile> generateAwsProfile(DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints, String spinnakerHome) {
 String name = "aws/kayenta-credentials" + spinnakerHome.replace("/", "_");
 Canary canary = deploymentConfiguration.getCanary();
 if (canary.isEnabled()) {
  AwsCanaryServiceIntegration awsCanaryServiceIntegration =
    (AwsCanaryServiceIntegration)getServiceIntegrationByClass(canary, AwsCanaryServiceIntegration.class);
  // TODO(lwander/duftler): Seems like this approach leaves us open to potential collision between kayenta aws
  // accounts, and front50 and clouddriver configuration.
  if (awsCanaryServiceIntegration.isS3Enabled()) {
   Optional<AwsCanaryAccount> optionalAwsCanaryAccount =
     awsCanaryServiceIntegration.getAccounts()
       .stream()
       .filter(a -> !StringUtils.isEmpty(a.getAccessKeyId()) && !StringUtils.isEmpty(a.getSecretAccessKey()))
       .findFirst();
   if (optionalAwsCanaryAccount.isPresent()) {
    AwsCanaryAccount awsCanaryAccount = optionalAwsCanaryAccount.get();
    String outputFile = awsCredentialsProfileFactoryBuilder.getOutputFile(spinnakerHome);
    awsCredentialsProfileFactoryBuilder.setProfileName(StringUtils.isNotBlank(awsCanaryAccount.getProfileName()) ? awsCanaryAccount.getProfileName() : "default");
    return Optional.of(awsCredentialsProfileFactoryBuilder
      .setArtifact(SpinnakerArtifact.KAYENTA)
      .setAccessKeyId(awsCanaryAccount.getAccessKeyId())
      .setSecretAccessKey(awsCanaryAccount.getSecretAccessKey())
      .build()
      .getProfile(name, outputFile, deploymentConfiguration, endpoints));
   }
  }
 }
 return Optional.empty();
}
origin: spinnaker/halyard

protected Optional<Profile> generateAwsProfile(DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints, String spinnakerHome) {
 String name = "aws/front50-credentials" + spinnakerHome.replace("/", "_");
 PersistentStore.PersistentStoreType type = deploymentConfiguration.getPersistentStorage().getPersistentStoreType();
 S3PersistentStore store = deploymentConfiguration.getPersistentStorage().getS3();
 if (type == PersistentStore.PersistentStoreType.S3
   && !StringUtils.isEmpty(store.getAccessKeyId())
   && !StringUtils.isEmpty(store.getSecretAccessKey())) {
  String outputFile = awsCredentialsProfileFactoryBuilder.getOutputFile(spinnakerHome);
  return Optional.of(awsCredentialsProfileFactoryBuilder
    .setArtifact(SpinnakerArtifact.FRONT50)
    .setAccessKeyId(store.getAccessKeyId())
    .setSecretAccessKey(store.getSecretAccessKey())
    .build()
    .getProfile(name, outputFile, deploymentConfiguration, endpoints));
 } else {
  return Optional.empty();
 }
}
origin: com.netflix.spinnaker.halyard/halyard-deploy

protected Optional<Profile> generateAwsProfile(DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints, String spinnakerHome) {
 String name = "aws/front50-credentials" + spinnakerHome.replace("/", "_");
 PersistentStore.PersistentStoreType type = deploymentConfiguration.getPersistentStorage().getPersistentStoreType();
 S3PersistentStore store = deploymentConfiguration.getPersistentStorage().getS3();
 if (type == PersistentStore.PersistentStoreType.S3
   && !StringUtils.isEmpty(store.getAccessKeyId())
   && !StringUtils.isEmpty(store.getSecretAccessKey())) {
  String outputFile = awsCredentialsProfileFactoryBuilder.getOutputFile(spinnakerHome);
  return Optional.of(awsCredentialsProfileFactoryBuilder
    .setArtifact(SpinnakerArtifact.FRONT50)
    .setAccessKeyId(store.getAccessKeyId())
    .setSecretAccessKey(store.getSecretAccessKey())
    .build()
    .getProfile(name, outputFile, deploymentConfiguration, endpoints));
 } else {
  return Optional.empty();
 }
}
origin: com.netflix.spinnaker.halyard/halyard-deploy

protected Optional<Profile> generateAwsProfile(DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints, String spinnakerHome) {
 String name = "aws/clouddriver-credentials" + spinnakerHome.replace("/", "_");
 AwsProvider awsProvider = deploymentConfiguration.getProviders().getAws();
 if (awsProvider.isEnabled()
   && !StringUtils.isEmpty(awsProvider.getAccessKeyId())
   && !StringUtils.isEmpty(awsProvider.getSecretAccessKey())) {
  String outputFile = awsCredentialsProfileFactoryBuilder.getOutputFile(spinnakerHome);
  return Optional.of(awsCredentialsProfileFactoryBuilder
    .setArtifact(SpinnakerArtifact.CLOUDDRIVER)
    .setAccessKeyId(awsProvider.getAccessKeyId())
    .setSecretAccessKey(awsProvider.getSecretAccessKey())
    .build()
    .getProfile(name, outputFile, deploymentConfiguration, endpoints));
 } else {
  return Optional.empty();
 }
}
origin: spinnaker/halyard

protected Optional<Profile> generateAwsProfile(DeploymentConfiguration deploymentConfiguration, SpinnakerRuntimeSettings endpoints, String spinnakerHome) {
 String name = "aws/clouddriver-credentials" + spinnakerHome.replace("/", "_");
 AwsProvider awsProvider = deploymentConfiguration.getProviders().getAws();
 if (awsProvider.isEnabled()
   && !StringUtils.isEmpty(awsProvider.getAccessKeyId())
   && !StringUtils.isEmpty(awsProvider.getSecretAccessKey())) {
  String outputFile = awsCredentialsProfileFactoryBuilder.getOutputFile(spinnakerHome);
  return Optional.of(awsCredentialsProfileFactoryBuilder
    .setArtifact(SpinnakerArtifact.CLOUDDRIVER)
    .setAccessKeyId(awsProvider.getAccessKeyId())
    .setSecretAccessKey(awsProvider.getSecretAccessKey())
    .build()
    .getProfile(name, outputFile, deploymentConfiguration, endpoints));
 } else {
  return Optional.empty();
 }
}
origin: spinnaker/halyard

public AwsCredentialsProfileFactory build() {
 return new AwsCredentialsProfileFactory(artifact, accessKeyId, secretAccessKey);
}
origin: com.netflix.spinnaker.halyard/halyard-deploy

public AwsCredentialsProfileFactory build() {
 return new AwsCredentialsProfileFactory(artifact, accessKeyId, secretAccessKey);
}
com.netflix.spinnaker.halyard.deploy.spinnaker.v1.profileAwsCredentialsProfileFactoryBuilder$AwsCredentialsProfileFactory

Most used methods

  • <init>
  • getProfile

Popular in Java

  • Reactive rest calls using spring rest template
  • onRequestPermissionsResult (Fragment)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • compareTo (BigDecimal)
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now