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
- CloudFormation Onboard Spot Eco
- CloudFormation Onboard Spot User
- CloudFormation Run Template
CloudFormation Filter Resources
The action retrieves the resources for CloudFormation stack and returns a list matching the specified type.
Input
Parameter | Description | Required |
---|---|---|
alias | Target account alias to be used to perform given operation. | True |
region_name | AWS region name | True |
stack | Available CloudFormation Stacks | True |
resource_type | CloudFormation Resource like AWS::DynamoDB::Table | True |
Output
Parameter | Type | Description |
---|---|---|
resource_ids | StringList | IDs of filtered resources |
execution_status | String | Status of run (ie: S_OK / E_FAIL) |
Action Example
Input
Output
CloudFormation Onboard Spot Eco
This action onboards an AWS account with Spot Eco.
Input
Parameter | Description | Required |
---|---|---|
alias | AWS target account for running the CloudFormation template | True |
region_name | The region where CloudFormation stack deploys | True |
stack_name | A 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 |
permissions | Level of permissions to be given to the new Spot Policy | True |
s3_bucket | AWS S3 bucket where AWS Cost and Usage Report (CUR) is placed | True |
Output
Parameter | Type | Description |
---|---|---|
execution_status | String | Status of run (ie: S_OK / E_FAIL) |
alias | String | AWS target account |
region_name | String | Region where CloudFormation stack is deployed. |
stack_id | String | ID of deployed CloudFormation stack. |
Action Example
Input
Output
CloudFormation Onboard Spot User
This action connects an AWS account to Spot.
Input
Parameter | Description | Required |
---|---|---|
alias | AWS target account for running the CloudFormation template | True |
name | Name of Spot StackSet | True |
permissions | Level of permissions to be given to the new Spot Policy | True |
org_unit_ids | The organization root ID or organizational unit (OU) IDs where StackSets deploy | True |
region_name | Region where to deploy StackSet | True |
auto_deployment | Describes whether StackSets automatically deploy to Organization accounts that are added to the target organization or organizational unit (OU). | True |
aws_account_ids | AWS account IDs under given OU where a StackSet will deploy | False |
Output
Parameter | Type | Description |
---|---|---|
stack_set_id | String | ID of StackSet deployed |
stack_instance_id | String | ID of stack instance |
execution_status | String | Status of run (ie: S_OK / E_FAIL) |
Action Example
Input
Output
CloudFormation Run Template
The action runs a CloudFormation template.
Input
Parameter | Description | Required |
---|---|---|
alias | AWS target account for running the CloudFormation template. | True |
stack_name | A 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_id | CloudFormation Template Resource integration ID | False |
template_url | URL to fetch CloudFormation template | False |
parameters | CloudFormation template parameters | False |
capabilities | Capabilities in order for CloudFormation to create the stack | False |
Output
Parameter | Type | Description |
---|---|---|
stack_id | String | ID of stack deployed |
execution_status | String | Status of run (ie: S_OK / E_FAIL) |
Action Example
Input
Output