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, initprotected 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 AbstractLifecycleHookorg.craftercms.commons.config.ConfigurationExceptionpublic void doExecute(Target target) throws DeployerException
doExecute in class AbstractLifecycleHookDeployerExceptionprotected void createCloudFormationStack(com.amazonaws.services.cloudformation.AmazonCloudFormation cloudFormation)
throws DeployerException
DeployerExceptionprotected String getTemplateBody() throws DeployerException
DeployerExceptionCopyright © 2023. All rights reserved.