List of usage examples for com.amazonaws.auth DefaultAWSCredentialsProviderChain DefaultAWSCredentialsProviderChain
public DefaultAWSCredentialsProviderChain()
From source file:com.netflix.simianarmy.aws.conformity.rule.CrossZoneLoadBalancing.java
License:Apache License
/** * Constructs an instance with the default AWS credentials provider chain. * @see com.amazonaws.auth.DefaultAWSCredentialsProviderChain *///w w w. j av a 2 s.c o m public CrossZoneLoadBalancing() { this(new DefaultAWSCredentialsProviderChain()); }
From source file:com.netflix.simianarmy.aws.conformity.rule.InstanceHasTag.java
License:Apache License
/** * Constructor./* ww w.j ava2 s . c om*/ * @param requiredTags * The tags that are required to have for every instance of an ASG (or region). */ public InstanceHasTag(String... requiredTags) { this(new DefaultAWSCredentialsProviderChain(), requiredTags); }
From source file:com.netflix.simianarmy.aws.conformity.rule.InstanceInSecurityGroup.java
License:Apache License
/** * Constructor./*from w w w. jav a2s. c o m*/ * @param requiredSecurityGroupNames * The security group names that are required to have for every instance of a cluster. */ public InstanceInSecurityGroup(String... requiredSecurityGroupNames) { this(new DefaultAWSCredentialsProviderChain(), requiredSecurityGroupNames); }
From source file:com.netflix.simianarmy.aws.conformity.rule.InstanceTooOld.java
License:Apache License
/** * Constructor.//from w w w .j a v a2s . c om * @param instanceAgeThreshold * The age in days that makes an instance be considered too old. */ public InstanceTooOld(int instanceAgeThreshold) { this(new DefaultAWSCredentialsProviderChain(), instanceAgeThreshold); }
From source file:com.netflix.simianarmy.aws.conformity.rule.SameZonesInElbAndAsg.java
License:Apache License
/** * Constructs an instance with the default AWS credentials provider chain. * @see com.amazonaws.auth.DefaultAWSCredentialsProviderChain *///w w w . j a v a 2s .com public SameZonesInElbAndAsg() { this(new DefaultAWSCredentialsProviderChain()); }
From source file:com.netflix.spinnaker.kork.aws.AwsComponents.java
License:Apache License
@Bean @ConditionalOnMissingBean(AWSCredentialsProvider.class) AWSCredentialsProvider awsCredentialsProvider() { return new DefaultAWSCredentialsProviderChain(); }
From source file:com.nextdoor.bender.auth.aws.UrlSigningAuthConfig.java
License:Apache License
public AWSSigner getAWSSigner() { final com.google.common.base.Supplier<LocalDateTime> clock = () -> LocalDateTime.now(ZoneOffset.UTC); DefaultAWSCredentialsProviderChain cp = new DefaultAWSCredentialsProviderChain(); return new AWSSigner(cp, this.region.getName(), this.service, clock); }
From source file:com.nike.cerberus.config.CmsEnvPropertiesLoader.java
License:Apache License
public CmsEnvPropertiesLoader(final String bucketName, final String region, final String kmsKeyId) { final KMSEncryptionMaterialsProvider materialProvider = new KMSEncryptionMaterialsProvider(kmsKeyId); this.s3Client = new AmazonS3EncryptionClient(new DefaultAWSCredentialsProviderChain(), materialProvider, new CryptoConfiguration().withAwsKmsRegion(Region.getRegion(Regions.fromName(region)))) .withRegion(Region.getRegion(Regions.fromName(region))); this.bucketName = bucketName; }
From source file:com.nike.cerberus.store.ConfigStore.java
License:Apache License
private void initEncryptedConfigStoreService() { if (encryptedConfigStoreService == null) { final Environment environment = getEnvironmentData(); KMSEncryptionMaterialsProvider materialProvider = new KMSEncryptionMaterialsProvider( environment.getConfigKeyId()); AmazonS3EncryptionClient encryptionClient = new AmazonS3EncryptionClient( new DefaultAWSCredentialsProviderChain(), materialProvider, new CryptoConfiguration().withAwsKmsRegion(Region.getRegion(environmentMetadata.getRegions()))) .withRegion(Region.getRegion(environmentMetadata.getRegions())); encryptedConfigStoreService = new S3StoreService(encryptionClient, environmentMetadata.getBucketName(), ""); }//from w w w.jav a 2s .c o m }
From source file:com.norconex.committer.cloudsearch.CloudSearchCommitter.java
License:Apache License
private synchronized void ensureAWSClient() { if (StringUtils.isBlank(getDocumentEndpoint())) { throw new CommitterException("Document endpoint is undefined."); }/*from ww w . j a va 2 s .c o m*/ if (!needNewAwsClient) { return; } if (StringUtils.isAnyBlank(accessKey, secretKey)) { awsClient = new AmazonCloudSearchDomainClient(new DefaultAWSCredentialsProviderChain()); } else { awsClient = new AmazonCloudSearchDomainClient(new BasicAWSCredentials(accessKey, secretKey)); } awsClient.setEndpoint(documentEndpoint); needNewAwsClient = false; }