Skip to main content

CloudFormation Templates

CloudFormation actions allow you to perform operations to manage your AWS resources.

Integration Actions

You can add these actions in the Spot Connect workflow builder as part of your workflow:

CloudFormation Filter Resources

The action retrieves the resources for CloudFormation stack and returns a list matching the specified type.

Input

ParameterDescriptionRequired
aliasTarget account alias to be used to perform given operation.True
region_nameAWS region nameTrue
stackAvailable CloudFormation StacksTrue
resource_typeCloudFormation Resource like AWS::DynamoDB::TableTrue

Output

ParameterTypeDescription
resource_idsStringListIDs of filtered resources
execution_statusStringStatus of run (ie: S_OK / E_FAIL)

Action Example

Input

cloudformation-1

Output

cloudformation-2

CloudFormation Onboard Spot Eco

This action onboards an AWS account with Spot Eco.

Input

ParameterDescriptionRequired
aliasAWS target account for running the CloudFormation templateTrue
region_nameThe region where CloudFormation stack deploysTrue
stack_nameA stack name can contain only alphanumeric characters (case sensitive) and hyphens. It must start with an alphabetical character and can't be longer than 128 characters.True
permissionsLevel of permissions to be given to the new Spot PolicyTrue
s3_bucketAWS S3 bucket where AWS Cost and Usage Report (CUR) is placedTrue

Output

ParameterTypeDescription
execution_statusStringStatus of run (ie: S_OK / E_FAIL)
aliasStringAWS target account
region_nameStringRegion where CloudFormation stack is deployed.
stack_idStringID of deployed CloudFormation stack.

Action Example

Input

cloudformation-3

Output

cloudformation-4

CloudFormation Onboard Spot User

This action connects an AWS account to Spot.

Input

ParameterDescriptionRequired
aliasAWS target account for running the CloudFormation templateTrue
nameName of Spot StackSetTrue
permissionsLevel of permissions to be given to the new Spot PolicyTrue
org_unit_idsThe organization root ID or organizational unit (OU) IDs where StackSets deployTrue
region_nameRegion where to deploy StackSetTrue
auto_deploymentDescribes whether StackSets automatically deploy to Organization accounts that are added to the target organization or organizational unit (OU).True
aws_account_idsAWS account IDs under given OU where a StackSet will deployFalse

Output

ParameterTypeDescription
stack_set_idStringID of StackSet deployed
stack_instance_idStringID of stack instance
execution_statusStringStatus of run (ie: S_OK / E_FAIL)

Action Example

Input

cloudformation-5

Output

cloudformation-6

CloudFormation Run Template

The action runs a CloudFormation template.

Input

ParameterDescriptionRequired
aliasAWS target account for running the CloudFormation template.True
stack_nameA stack name can contain only alphanumeric characters (case sensitive) and hyphens. It must start with an alphabetical character and can't be longer than 128 characters.True
integration_idCloudFormation Template Resource integration IDFalse
template_urlURL to fetch CloudFormation templateFalse
parametersCloudFormation template parametersFalse
capabilitiesCapabilities in order for CloudFormation to create the stackFalse

Output

ParameterTypeDescription
stack_idStringID of stack deployed
execution_statusStringStatus of run (ie: S_OK / E_FAIL)

Action Example

Input

cloudformation-7

Output

cloudformation-8