Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cloudformation #1105

Open
wants to merge 18 commits into
base: master
Choose a base branch
from
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
#! @input region: AWS region where the stack will be created.
#! @input stack_name: AWS stack name to be created.
#! @input template_body: AWS template body.
#! @input parameters: AWS template parameters in key:value format. Every key:value pair should be on its own line.
#! @input parameters: AWS template parameters in key=value format. Every key:value pair should be on its own line.
#! @input capabilities: A list of values that you must specify before AWS CloudFormation can create certain stacks. Some stack templates might include resources that can affect permissions in your AWS account, for example, by creating new AWS Identity and Access Management (IAM) users. or those stacks, you must explicitly acknowledge their capabilities by specifying this parameter.
#! Valid values: CAPABILITY_IAM, CAPABILITY_NAMED_IAM
#!
Expand Down Expand Up @@ -109,7 +109,7 @@ operation:
sensitive: true

java_action:
gav: 'io.cloudslang.content:cs-amazon:1.0.18'
gav: 'io.cloudslang.content:cs-amazon:1.0.27'
class_name: io.cloudslang.content.amazon.actions.cloudformation.CreateStackAction
method_name: execute

Expand All @@ -120,4 +120,4 @@ operation:

results:
- SUCCESS: ${returnCode == "0"}
- FAILURE
- FAILURE
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ operation:
sensitive: true

java_action:
gav: 'io.cloudslang.content:cs-amazon:1.0.18'
gav: 'io.cloudslang.content:cs-amazon:1.0.27'
class_name: io.cloudslang.content.amazon.actions.cloudformation.DeleteStackAction
method_name: execute

Expand All @@ -109,4 +109,4 @@ operation:

results:
- SUCCESS: ${returnCode == "0"}
- FAILURE
- FAILURE
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
#! @input stack_capabilities: A list of values that you must specify before AWS CloudFormation can create certain stacks. Some stack templates might include resources that can affect permissions in your AWS account, for example, by creating new AWS Identity and Access Management (IAM) users. or those stacks, you must explicitly acknowledge their capabilities by specifying this parameter.
#! Valid values: CAPABILITY_IAM, CAPABILITY_NAMED_IAM
#! @input template_body: AWS template body.
#! @input template_parameters: AWS template parameters in key:value format. Every key:value pair should be on its own line.
#! @input template_parameters: AWS template parameters in key=value format. Example: ${'param1=' + value1 + '\\n\\\nparam2=' + value2 + '\\n\\\nparam3=' + value3}
#! @input sleep_time: sleep time in seconds between retries
#! @input retries_max: maximum number of retries before giving up
#!
Expand Down Expand Up @@ -65,7 +65,6 @@ flow:
required: false
- template_body: ''
- template_parameters:
default: "${'param1=' + value1 + '\\n\\\nparam2=' + value2 + '\\n\\\nparam3=' + value3}"
required: false
- proxy_host:
required: false
Expand All @@ -82,23 +81,31 @@ flow:
- retries_max:
default: '10'
required: false
outputs:
- return_result
- stack_outputs
- stack_resources
- exception

workflow:
- create_stack:
do:
cloudformation.create_stack:
- identity
- identity:
value: '${access_key_id}'
- credential:
value: '${access_key}'
sensitive: true
- region
- stack_name
- template_body
- parameters
- capabilities
- parameters: '${template_parameters}'
- capabilities: '${stack_capabilities}'
- proxy_host
- proxy_port
- proxy_username
- proxy_password:
value: '${proxy_password}'
sensitive: true
publish:
- retry_count: '0'
Expand All @@ -109,13 +116,16 @@ flow:
- list_stacks:
do:
cloudformation.list_stacks:
- identity
- identity:
value: '${access_key_id}'
- credential:
value: '${access_key}'
sensitive: true
- proxy_host
- proxy_port
- proxy_username
- proxy_password:
value: '${proxy_password}'
sensitive: true
- region
navigate:
Expand All @@ -125,18 +135,23 @@ flow:
- get_stack_details:
do:
cloudformation.get_stack_details:
- identity
- identity:
value: '${access_key_id}'
- credential:
value: '${access_key}'
sensitive: true
- region
- stack_name
- proxy_host
- proxy_port
- proxy_username
- proxy_password:
value: '${proxy_password}'
sensitive: true
publish:
- stack_status
- stack_outputs
- stack_resources
navigate:
- SUCCESS: is_stack_created
- FAILURE: on_failure
Expand Down Expand Up @@ -180,4 +195,46 @@ flow:
- LESS_THAN: sleep
results:
- FAILURE
- SUCCESS
- SUCCESS

extensions:
graph:
steps:
create_stack:
x: 71
y: 106
list_stacks:
x: 659
y: 107
navigate:
40f99d8a-14df-ee1e-08fa-2150abef743d:
targetId: 9b31debc-5211-7ae2-d870-fa22325e37a9
port: SUCCESS
get_stack_details:
x: 280
y: 106
is_stack_created:
x: 494
y: 99
sleep:
x: 281
y: 280
add_numbers:
x: 462
y: 281
check_retry:
x: 458
y: 433
navigate:
9675d7e4-57c4-13b5-7a01-dee957d1d14b:
targetId: 3aa9d9ea-1ecd-b4d8-106c-f95ab0ef5472
port: GREATER_THAN
results:
FAILURE:
3aa9d9ea-1ecd-b4d8-106c-f95ab0ef5472:
x: 651
y: 423
SUCCESS:
9b31debc-5211-7ae2-d870-fa22325e37a9:
x: 839
y: 113
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ operation:
private: true

java_action:
gav: 'io.cloudslang.content:cs-amazon:1.0.18'
gav: 'io.cloudslang.content:cs-amazon:1.0.27'
class_name: io.cloudslang.content.amazon.actions.cloudformation.GetStackDetailsAction
method_name: execute

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ operation:
- region

java_action:
gav: 'io.cloudslang.content:cs-amazon:1.0.18'
gav: 'io.cloudslang.content:cs-amazon:1.0.27'
class_name: io.cloudslang.content.amazon.actions.cloudformation.ListStacksAction
method_name: execute

Expand All @@ -103,4 +103,4 @@ operation:

results:
- SUCCESS: ${returnCode == "0"}
- FAILURE
- FAILURE