-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New feature: Support Stack Tags as a separate file (#6)
* bump play + scala. * stack loader to now also return an option of tags for a given stack. * stack creator to support passing tags if provided to cloudformation. * tests passing - process for having tags optionally flow with the stack from a separate file. * bump AWS SDK to latest, trim down to only AWS libs we use. Bump testing libraries & fought a long fight with Mockito + Play's Spec2 forced integration that brings in a very old mockito.
- Loading branch information
Showing
24 changed files
with
262 additions
and
182 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
package utils | ||
|
||
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} | ||
import com.amazonaws.services.autoscaling.{AmazonAutoScaling, AmazonAutoScalingClientBuilder} | ||
import com.amazonaws.services.cloudformation.{AmazonCloudFormation, AmazonCloudFormationClientBuilder} | ||
import com.amazonaws.services.elasticloadbalancing.{AmazonElasticLoadBalancing, AmazonElasticLoadBalancingClientBuilder} | ||
import com.amazonaws.services.s3.{AmazonS3, AmazonS3ClientBuilder} | ||
|
||
trait AmazonAutoScalingService { | ||
def autoScalingClient(credentials: AWSCredentialsProvider): AmazonAutoScaling = new AmazonAutoScalingClient(credentials) | ||
def autoScalingClient(credentials: AWSCredentialsProvider): AmazonAutoScaling = AmazonAutoScalingClientBuilder.standard().withCredentials(credentials).build() | ||
} | ||
|
||
trait AmazonCloudFormationService { | ||
def cloudFormationClient(credentials: AWSCredentialsProvider): AmazonCloudFormation = new AmazonCloudFormationClient(credentials) | ||
def cloudFormationClient(credentials: AWSCredentialsProvider): AmazonCloudFormation = AmazonCloudFormationClientBuilder.standard().withCredentials(credentials).build() | ||
} | ||
|
||
trait AmazonElasticLoadBalancingService { | ||
def elasticLoadBalancingClient(credentials: AWSCredentialsProvider): AmazonElasticLoadBalancing = new AmazonElasticLoadBalancingClient(credentials) | ||
def elasticLoadBalancingClient(credentials: AWSCredentialsProvider): AmazonElasticLoadBalancing = AmazonElasticLoadBalancingClientBuilder.standard().withCredentials(credentials).build() | ||
} | ||
|
||
trait AmazonS3Service { | ||
def s3Client(credentials: AWSCredentialsProvider): AmazonS3 = new AmazonS3Client(credentials) | ||
def s3Client(credentials: AWSCredentialsProvider): AmazonS3 = AmazonS3ClientBuilder.standard().withCredentials(credentials).build() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1 @@ | ||
#Activator-generated Properties | ||
#Sat Sep 13 08:19:33 CDT 2014 | ||
template.uuid=9d0f021d-ca8f-4a88-992f-f6468442419e | ||
sbt.version=0.13.8 | ||
sbt.version=0.13.17 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.