diff --git a/content/io/cloudslang/amazon/aws/cloudformation/create_stack.sl b/content/io/cloudslang/amazon/aws/cloudformation/create_stack.sl index 3a4c53c932..1deb3229ed 100644 --- a/content/io/cloudslang/amazon/aws/cloudformation/create_stack.sl +++ b/content/io/cloudslang/amazon/aws/cloudformation/create_stack.sl @@ -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 #! @@ -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 @@ -120,4 +120,4 @@ operation: results: - SUCCESS: ${returnCode == "0"} - - FAILURE \ No newline at end of file + - FAILURE diff --git a/content/io/cloudslang/amazon/aws/cloudformation/delete_stack.sl b/content/io/cloudslang/amazon/aws/cloudformation/delete_stack.sl index e782b98116..ba44ef5b85 100644 --- a/content/io/cloudslang/amazon/aws/cloudformation/delete_stack.sl +++ b/content/io/cloudslang/amazon/aws/cloudformation/delete_stack.sl @@ -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 @@ -109,4 +109,4 @@ operation: results: - SUCCESS: ${returnCode == "0"} - - FAILURE \ No newline at end of file + - FAILURE diff --git a/content/io/cloudslang/amazon/aws/cloudformation/examples/launch_stack.sl b/content/io/cloudslang/amazon/aws/cloudformation/examples/launch_stack.sl index f298275b15..a32a51410c 100644 --- a/content/io/cloudslang/amazon/aws/cloudformation/examples/launch_stack.sl +++ b/content/io/cloudslang/amazon/aws/cloudformation/examples/launch_stack.sl @@ -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 #! @@ -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 @@ -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' @@ -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: @@ -125,8 +135,10 @@ flow: - get_stack_details: do: cloudformation.get_stack_details: - - identity + - identity: + value: '${access_key_id}' - credential: + value: '${access_key}' sensitive: true - region - stack_name @@ -134,9 +146,12 @@ flow: - 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 @@ -180,4 +195,46 @@ flow: - LESS_THAN: sleep results: - FAILURE - - SUCCESS \ No newline at end of file + - 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 \ No newline at end of file diff --git a/content/io/cloudslang/amazon/aws/cloudformation/get_stack_details.sl b/content/io/cloudslang/amazon/aws/cloudformation/get_stack_details.sl index 75726df35b..5f8ef374b0 100644 --- a/content/io/cloudslang/amazon/aws/cloudformation/get_stack_details.sl +++ b/content/io/cloudslang/amazon/aws/cloudformation/get_stack_details.sl @@ -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 diff --git a/content/io/cloudslang/amazon/aws/cloudformation/list_stacks.sl b/content/io/cloudslang/amazon/aws/cloudformation/list_stacks.sl index 225d199bf1..eaf591263d 100644 --- a/content/io/cloudslang/amazon/aws/cloudformation/list_stacks.sl +++ b/content/io/cloudslang/amazon/aws/cloudformation/list_stacks.sl @@ -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 @@ -103,4 +103,4 @@ operation: results: - SUCCESS: ${returnCode == "0"} - - FAILURE \ No newline at end of file + - FAILURE