public class CreateCloudFormationLifecycleHook extends AbstractLifecycleHook
TargetLifecycleHook
that creates a CloudFormation stack based on a provided
CloudFormation template file.Modifier and Type | Field and Description |
---|---|
protected AwsClientBuilderConfigurer |
builderConfigurer |
protected static String |
CONFIG_KEY_STACK_NAME |
protected static String |
CONFIG_KEY_TEMPLATE_FILENAME |
protected static String |
CONFIG_KEY_TEMPLATE_PARAMS |
protected String |
stackName |
protected String |
templateFilename |
protected Collection<com.amazonaws.services.cloudformation.model.Parameter> |
templateParams |
protected org.springframework.core.io.Resource |
templatesOverrideResource |
protected org.springframework.core.io.Resource |
templatesResource |
CONFIG_KEY_DISABLED, disabled, logger
Constructor and Description |
---|
CreateCloudFormationLifecycleHook() |
Modifier and Type | Method and Description |
---|---|
protected void |
createCloudFormationStack(com.amazonaws.services.cloudformation.AmazonCloudFormation cloudFormation) |
void |
doExecute(Target target) |
void |
doInit(org.apache.commons.configuration2.Configuration config) |
protected String |
getTemplateBody() |
void |
setTemplatesOverrideResource(org.springframework.core.io.Resource templatesOverrideResource) |
void |
setTemplatesResource(org.springframework.core.io.Resource templatesResource) |
execute, init
protected static final String CONFIG_KEY_STACK_NAME
protected static final String CONFIG_KEY_TEMPLATE_FILENAME
protected static final String CONFIG_KEY_TEMPLATE_PARAMS
protected org.springframework.core.io.Resource templatesResource
protected org.springframework.core.io.Resource templatesOverrideResource
protected AwsClientBuilderConfigurer builderConfigurer
protected String stackName
protected String templateFilename
protected Collection<com.amazonaws.services.cloudformation.model.Parameter> templateParams
public void setTemplatesResource(org.springframework.core.io.Resource templatesResource)
public void setTemplatesOverrideResource(org.springframework.core.io.Resource templatesOverrideResource)
public void doInit(org.apache.commons.configuration2.Configuration config) throws org.craftercms.commons.config.ConfigurationException
doInit
in class AbstractLifecycleHook
org.craftercms.commons.config.ConfigurationException
public void doExecute(Target target) throws DeployerException
doExecute
in class AbstractLifecycleHook
DeployerException
protected void createCloudFormationStack(com.amazonaws.services.cloudformation.AmazonCloudFormation cloudFormation) throws DeployerException
DeployerException
protected String getTemplateBody() throws DeployerException
DeployerException
Copyright © 2023. All rights reserved.