Class AwsCloudFormationUtils
java.lang.Object
org.craftercms.deployer.utils.aws.AwsCloudFormationUtils
Utility methods for AWS CloudFormation.
- Author:
- avasquez
-
Method Summary
Modifier and TypeMethodDescriptionstatic com.amazonaws.services.cloudformation.AmazonCloudFormation
buildClient
(AwsClientBuilderConfigurer builderConfigurer) Builds anAmazonCloudFormation
client, using the providedAwsClientBuilderConfigurer
.static com.amazonaws.services.cloudformation.model.Stack
getStack
(com.amazonaws.services.cloudformation.AmazonCloudFormation cloudFormation, String stackName) Returns the info of the specifed stack.static boolean
stackExists
(com.amazonaws.services.cloudformation.AmazonCloudFormation cloudFormation, String stackName) Returns true if the specified stack exists, false otherwise.
-
Method Details
-
buildClient
public static com.amazonaws.services.cloudformation.AmazonCloudFormation buildClient(AwsClientBuilderConfigurer builderConfigurer) Builds anAmazonCloudFormation
client, using the providedAwsClientBuilderConfigurer
.- Parameters:
builderConfigurer
- the helper used to configure theAmazonCloudFormationClientBuilder
- Returns:
- the built
AmazonCloudFormation
client
-
stackExists
public static boolean stackExists(com.amazonaws.services.cloudformation.AmazonCloudFormation cloudFormation, String stackName) throws DeployerException Returns true if the specified stack exists, false otherwise.- Parameters:
cloudFormation
- the CloudFormation clientstackName
- the stack name- Returns:
- true if the specified stack exists, false otherwise.
- Throws:
DeployerException
- in an error occurs
-
getStack
public static com.amazonaws.services.cloudformation.model.Stack getStack(com.amazonaws.services.cloudformation.AmazonCloudFormation cloudFormation, String stackName) throws DeployerException Returns the info of the specifed stack.- Parameters:
cloudFormation
- the CloudFormation clientstackName
- the stack name- Returns:
- the info of the stack
- Throws:
DeployerException
- if an error occurs
-