From 283078146e1296746da40d9349fe11e3937433e7 Mon Sep 17 00:00:00 2001 From: Lucian Revnic Date: Wed, 6 Jun 2018 11:39:06 +0300 Subject: [PATCH 01/25] WIP: add get stack details, add parameters support for creating stacks --- .../amazon/aws/cloudformation/create_stack.sl | 230 +++++++++--------- .../amazon/aws/cloudformation/delete_stack.sl | 222 ++++++++--------- .../aws/cloudformation/get_stack_details.sl | 100 ++++++++ .../amazon/aws/cloudformation/list_stacks.sl | 210 ++++++++-------- .../test_get_stack_details.inputs.yaml | 20 ++ .../cloudformation/test_get_stack_details.sl | 86 +++++++ 6 files changed, 537 insertions(+), 331 deletions(-) create mode 100644 content/io/cloudslang/amazon/aws/cloudformation/get_stack_details.sl create mode 100644 test/io/cloudslang/amazon/aws/cloudformation/test_get_stack_details.inputs.yaml create mode 100644 test/io/cloudslang/amazon/aws/cloudformation/test_get_stack_details.sl diff --git a/content/io/cloudslang/amazon/aws/cloudformation/create_stack.sl b/content/io/cloudslang/amazon/aws/cloudformation/create_stack.sl index c0a640be43..62a843a34d 100644 --- a/content/io/cloudslang/amazon/aws/cloudformation/create_stack.sl +++ b/content/io/cloudslang/amazon/aws/cloudformation/create_stack.sl @@ -1,116 +1,116 @@ -# (c) Copyright 2018 EntIT Software LLC, a Micro Focus company, L.P. -# All rights reserved. This program and the accompanying materials -# are made available under the terms of the Apache License v2.0 which accompany this distribution. -# -# The Apache License is available at -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -######################################################################################################################## -#!! -#! @description: This operation launches an AWS Cloud Formation stack. -#! -#! @input identity: ID of the secret access key associated with your Amazon AWS account. -#! @input credential: Secret access key associated with your Amazon AWS account. -#! @input proxy_host: Proxy server used to access the provider services. -#! Optional -#! @input connect_timeout: Connect timeout in milliseconds. -#! Default: '10000' -#! Optional -#! @input execution_timeout: Execution timeout in milliseconds. -#! Default: '600000' -#! Optional -#! @input proxy_port: Proxy server port used to access the provider services. -#! Default: '8080' -#! Optional -#! @input proxy_username: Proxy server user name. -#! Optional -#! @input proxy_password: Proxy server password associated with the proxy_username input value. -#! Optional -#! @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. -#! -#! @output return_result: Contains the instance details in case of success, error message otherwise. -#! @output return_code: "0" if operation was successfully executed, "-1" otherwise. -#! @output exception: Exception if there was an error when executing, empty otherwise. -#! -#! @result SUCCESS: The server (instance) was successfully deployed. -#! @result FAILURE: There was an error while trying to deploy the instance. -#!!# -######################################################################################################################## -namespace: io.cloudslang.amazon.aws.cloudformation - -operation: - name: create_stack - inputs: - - identity - - credential: - sensitive: true - - region - - stack_name - - stackName: - default: ${get("stack_name", "")} - private: true - - template_body - - templateBody: - default: ${get("template_body", "")} - private: true - - connect_timeout: - required: false - default: "10000" - - connectTimeout: - default: ${get("connect_timeout", "")} - private: true - - execution_timeout: - required: false - default: "600000" - - executionTimeout: - default: ${get("execution_timeout", "")} - private: true - - proxy_host: - required: false - - proxyHost: - default: ${get("proxy_host", "")} - required: false - private: true - - proxy_port: - default: '8080' - required: false - - proxyPort: - default: ${get("proxy_port", "")} - required: false - private: true - - proxy_username: - required: false - - proxyUsername: - default: ${get("proxy_username", "")} - required: false - private: true - - proxy_password: - required: false - sensitive: true - - proxyPassword: - default: ${get("proxy_password", "")} - required: false - private: true - sensitive: true - - java_action: - gav: 'io.cloudslang.content:cs-amazon:1.0.15' - class_name: io.cloudslang.content.amazon.actions.cloudformation.CreateStackAction - method_name: execute - - outputs: - - return_result: ${get("returnResult", "")} - - return_code: get("returnCode", "") - - exception: ${get("exception", "")} - - results: - - SUCCESS: ${returnCode == "0"} +# (c) Copyright 2018 EntIT Software LLC, a Micro Focus company, L.P. +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License v2.0 which accompany this distribution. +# +# The Apache License is available at +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +######################################################################################################################## +#!! +#! @description: This operation launches an AWS Cloud Formation stack. +#! +#! @input identity: ID of the secret access key associated with your Amazon AWS account. +#! @input credential: Secret access key associated with your Amazon AWS account. +#! @input proxy_host: Proxy server used to access the provider services. +#! Optional +#! @input connect_timeout: Connect timeout in milliseconds. +#! Default: '10000' +#! Optional +#! @input execution_timeout: Execution timeout in milliseconds. +#! Default: '600000' +#! Optional +#! @input proxy_port: Proxy server port used to access the provider services. +#! Default: '8080' +#! Optional +#! @input proxy_username: Proxy server user name. +#! Optional +#! @input proxy_password: Proxy server password associated with the proxy_username input value. +#! Optional +#! @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. +#! +#! @output return_result: Contains the instance details in case of success, error message otherwise. +#! @output return_code: "0" if operation was successfully executed, "-1" otherwise. +#! @output exception: Exception if there was an error when executing, empty otherwise. +#! +#! @result SUCCESS: The server (instance) was successfully deployed. +#! @result FAILURE: There was an error while trying to deploy the instance. +#!!# +######################################################################################################################## +namespace: io.cloudslang.amazon.aws.cloudformation + +operation: + name: create_stack + inputs: + - identity + - credential: + sensitive: true + - region + - stack_name + - stackName: + default: ${get("stack_name", "")} + private: true + - template_body + - templateBody: + default: ${get("template_body", "")} + private: true + - connect_timeout: + required: false + default: "10000" + - connectTimeout: + default: ${get("connect_timeout", "")} + private: true + - execution_timeout: + required: false + default: "600000" + - executionTimeout: + default: ${get("execution_timeout", "")} + private: true + - proxy_host: + required: false + - proxyHost: + default: ${get("proxy_host", "")} + required: false + private: true + - proxy_port: + default: '8080' + required: false + - proxyPort: + default: ${get("proxy_port", "")} + required: false + private: true + - proxy_username: + required: false + - proxyUsername: + default: ${get("proxy_username", "")} + required: false + private: true + - proxy_password: + required: false + sensitive: true + - proxyPassword: + default: ${get("proxy_password", "")} + required: false + private: true + sensitive: true + + java_action: + gav: 'io.cloudslang.content:cs-amazon:1.0.16' + class_name: io.cloudslang.content.amazon.actions.cloudformation.CreateStackAction + method_name: execute + + outputs: + - return_result: ${get("returnResult", "")} + - return_code: get("returnCode", "") + - exception: ${get("exception", "")} + + results: + - SUCCESS: ${returnCode == "0"} - FAILURE \ No newline at end of file diff --git a/content/io/cloudslang/amazon/aws/cloudformation/delete_stack.sl b/content/io/cloudslang/amazon/aws/cloudformation/delete_stack.sl index 07d2d085b0..0f0a28f7cd 100644 --- a/content/io/cloudslang/amazon/aws/cloudformation/delete_stack.sl +++ b/content/io/cloudslang/amazon/aws/cloudformation/delete_stack.sl @@ -1,112 +1,112 @@ -# (c) Copyright 2018 EntIT Software LLC, a Micro Focus company, L.P. -# All rights reserved. This program and the accompanying materials -# are made available under the terms of the Apache License v2.0 which accompany this distribution. -# -# The Apache License is available at -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -######################################################################################################################## -#!! -#! @description: This operation deletes an AWS Cloud Formation stack. -#! -#! @input identity: ID of the secret access key associated with your Amazon AWS account. -#! @input credential: Secret access key associated with your Amazon AWS account. -#! @input region: AWS region where the stack will be deleted. -#! @input stack_name: AWS stack name to be deleted. -#! @input connect_timeout: Connect timeout in milliseconds. -#! Default: '10000' -#! Optional -#! @input execution_timeout: Execution timeout in milliseconds. -#! Default: '600000' -#! Optional -#! @input proxy_host: Proxy server used to access the provider services. -#! Optional -#! @input proxy_port: Proxy server port used to access the provider services. -#! Default: '8080' -#! Optional -#! @input proxy_username: Proxy server user name. -#! Optional -#! @input proxy_password: Proxy server password associated with the proxy_username input value. -#! Optional -#! -#! @output return_result: Contains the instance details in case of success, error message otherwise. -#! @output return_code: "0" if operation was successfully executed, "-1" otherwise. -#! @output exception: Exception if there was an error when executing, empty otherwise. -#! -#! @result SUCCESS: The server (instance) was successfully deployed. -#! @result FAILURE: There was an error while trying to deploy the instance. -#!!# -######################################################################################################################## -namespace: io.cloudslang.amazon.aws.cloudformation - -operation: - name: delete_stack - inputs: - - identity - - credential: - sensitive: true - - region - - stack_name - - stackName: - default: ${get("stack_name", "")} - required: false - private: true - - connect_timeout: - required: false - default: "10000" - - connectTimeout: - default: ${get("connect_timeout", "")} - private: true - - execution_timeout: - required: false - default: "600000" - - executionTimeout: - default: ${get("execution_timeout", "")} - private: true - - proxy_host: - required: false - - proxyHost: - default: ${get("proxy_host", "")} - required: false - private: true - - proxy_port: - default: '8080' - required: false - - proxyPort: - default: ${get("proxy_port", "")} - required: false - private: true - - proxy_username: - required: false - - proxyUsername: - default: ${get("proxy_username", "")} - required: false - private: true - - proxy_password: - required: false - sensitive: true - - proxyPassword: - default: ${get("proxy_password", "")} - required: false - private: true - sensitive: true - - java_action: - gav: 'io.cloudslang.content:cs-amazon:1.0.15' - class_name: io.cloudslang.content.amazon.actions.cloudformation.DeleteStackAction - method_name: execute - - outputs: - - return_result: ${get("returnResult", "")} - - return_code: get("returnCode", "") - - exception: ${get("exception", "")} - - results: - - SUCCESS: ${returnCode == "0"} +# (c) Copyright 2018 EntIT Software LLC, a Micro Focus company, L.P. +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License v2.0 which accompany this distribution. +# +# The Apache License is available at +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +######################################################################################################################## +#!! +#! @description: This operation deletes an AWS Cloud Formation stack. +#! +#! @input identity: ID of the secret access key associated with your Amazon AWS account. +#! @input credential: Secret access key associated with your Amazon AWS account. +#! @input region: AWS region where the stack will be deleted. +#! @input stack_name: AWS stack name to be deleted. +#! @input connect_timeout: Connect timeout in milliseconds. +#! Default: '10000' +#! Optional +#! @input execution_timeout: Execution timeout in milliseconds. +#! Default: '600000' +#! Optional +#! @input proxy_host: Proxy server used to access the provider services. +#! Optional +#! @input proxy_port: Proxy server port used to access the provider services. +#! Default: '8080' +#! Optional +#! @input proxy_username: Proxy server user name. +#! Optional +#! @input proxy_password: Proxy server password associated with the proxy_username input value. +#! Optional +#! +#! @output return_result: Contains the instance details in case of success, error message otherwise. +#! @output return_code: "0" if operation was successfully executed, "-1" otherwise. +#! @output exception: Exception if there was an error when executing, empty otherwise. +#! +#! @result SUCCESS: The server (instance) was successfully deployed. +#! @result FAILURE: There was an error while trying to deploy the instance. +#!!# +######################################################################################################################## +namespace: io.cloudslang.amazon.aws.cloudformation + +operation: + name: delete_stack + inputs: + - identity + - credential: + sensitive: true + - region + - stack_name + - stackName: + default: ${get("stack_name", "")} + required: false + private: true + - connect_timeout: + required: false + default: "10000" + - connectTimeout: + default: ${get("connect_timeout", "")} + private: true + - execution_timeout: + required: false + default: "600000" + - executionTimeout: + default: ${get("execution_timeout", "")} + private: true + - proxy_host: + required: false + - proxyHost: + default: ${get("proxy_host", "")} + required: false + private: true + - proxy_port: + default: '8080' + required: false + - proxyPort: + default: ${get("proxy_port", "")} + required: false + private: true + - proxy_username: + required: false + - proxyUsername: + default: ${get("proxy_username", "")} + required: false + private: true + - proxy_password: + required: false + sensitive: true + - proxyPassword: + default: ${get("proxy_password", "")} + required: false + private: true + sensitive: true + + java_action: + gav: 'io.cloudslang.content:cs-amazon:1.0.16' + class_name: io.cloudslang.content.amazon.actions.cloudformation.DeleteStackAction + method_name: execute + + outputs: + - return_result: ${get("returnResult", "")} + - return_code: get("returnCode", "") + - exception: ${get("exception", "")} + + results: + - SUCCESS: ${returnCode == "0"} - FAILURE \ 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 new file mode 100644 index 0000000000..ccd99a2399 --- /dev/null +++ b/content/io/cloudslang/amazon/aws/cloudformation/get_stack_details.sl @@ -0,0 +1,100 @@ +# (c) Copyright 2018 Micro Focus +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License v2.0 which accompany this distribution. +# +# The Apache License is available at +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +######################################################################################################################## +#!! +#! @description: This operation get AWS CloudFormation Stack details +#! +#! @input identity: ID of the secret access key associated with your Amazon AWS account. +#! @input credential: Secret access key associated with your Amazon AWS account. +#! @input region: AWS region where the CloudFormation stack is located +#! @input stack_name: AWS stack name to get details from +#! Mandatory +#! @input proxy_host: Proxy server used to access the provider services. +#! Optional +#! @input proxy_port: Proxy server port used to access the provider services. +#! Default: '8080' +#! Optional +#! @input proxy_username: Proxy server user name. +#! Optional +#! @input proxy_password: Proxy server password associated with the proxy_username input value. +#! Optional +#! +#! @output return_result: Contains the instance details in case of success, error message otherwise. +#! @output return_code: "0" if operation was successfully executed, "-1" otherwise. +#! @output exception: Exception if there was an error when executing, empty otherwise. +#! +#! @result SUCCESS: The server (instance) was successfully deployed. +#! @result FAILURE: There was an error while trying to deploy the instance. +#!!# +######################################################################################################################## + +namespace: io.cloudslang.amazon.aws.cloudformation + +operation: + name: get_stack_details + inputs: + - identity + - credential: + sensitive: true + - region + - stack_name + - stackName: + default: ${get("stack_name", "")} + private: true + - proxyHost: + default: ${get("proxy_host", "")} + required: false + private: true + - proxy_port: + default: '8080' + required: false + - proxyPort: + default: ${get("proxy_port", "")} + required: false + private: true + - proxy_username: + required: false + - proxyUsername: + default: ${get("proxy_username", "")} + required: false + private: true + - proxy_password: + required: false + sensitive: true + - proxyPassword: + default: ${get("proxy_password", "")} + required: false + private: true + + java_action: + gav: 'io.cloudslang.content:cs-amazon:1.0.16' + class_name: io.cloudslang.content.amazon.actions.cloudformation.GetStackDetailsAction + method_name: execute + + outputs: + - return_result: ${returnResult} + - return_code: ${get("returnCode", "")} + - exception: ${get("exception", "")} + - stack_name_out: ${stackName} + - stack_id: ${stackId} + - stack_status: ${stackStatus} + - stack_status_reason: ${stackStatusReason} + - stack_creation_time: ${stackCreationTime} + - stack_description: ${stackDescription} + - stack_outputs: ${stackOutputs} + - stack_resources: ${stackResources} + + results: + - SUCCESS: ${returnCode == "0"} + - FAILURE diff --git a/content/io/cloudslang/amazon/aws/cloudformation/list_stacks.sl b/content/io/cloudslang/amazon/aws/cloudformation/list_stacks.sl index ce401a1a8b..23c4c54a84 100644 --- a/content/io/cloudslang/amazon/aws/cloudformation/list_stacks.sl +++ b/content/io/cloudslang/amazon/aws/cloudformation/list_stacks.sl @@ -1,106 +1,106 @@ -# (c) Copyright 2018 EntIT Software LLC, a Micro Focus company, L.P. -# All rights reserved. This program and the accompanying materials -# are made available under the terms of the Apache License v2.0 which accompany this distribution. -# -# The Apache License is available at -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -######################################################################################################################## -#!! -#! @description: This operation lists all deployed AWS Cloud Formation stacks. -#! -#! @input identity: ID of the secret access key associated with your Amazon AWS account. -#! @input credential: Secret access key associated with your Amazon AWS account. -#! @input region: AWS region from where the stacks should be listed. -#! @input connect_timeout: Connect timeout in milliseconds. -#! Default: '10000' -#! Optional -#! @input execution_timeout: Execution timeout in milliseconds. -#! Default: '600000' -#! Optional -#! @input proxy_host: Proxy server used to access the provider services. -#! Optional -#! @input proxy_port: Proxy server port used to access the provider services. -#! Default: '8080' -#! Optional -#! @input proxy_username: Proxy server user name. -#! Optional -#! @input proxy_password: Proxy server password associated with the proxy_username input value. -#! Optional -#! -#! @output return_result: Contains the instance details in case of success, error message otherwise. -#! @output return_code: "0" if operation was successfully executed, "-1" otherwise. -#! @output exception: Exception if there was an error when executing, empty otherwise. -#! -#! @result SUCCESS: The server (instance) was successfully deployed. -#! @result FAILURE: There was an error while trying to deploy the instance. -#!!# -######################################################################################################################## -namespace: io.cloudslang.amazon.aws.cloudformation - -operation: - name: list_stacks - inputs: - - identity - - credential: - sensitive: true - - connect_timeout: - required: false - default: "10000" - - connectTimeout: - default: ${get("connect_timeout", "")} - private: true - - execution_timeout: - required: false - default: "600000" - - executionTimeout: - default: ${get("execution_timeout", "")} - private: true - - proxy_host: - required: false - - proxyHost: - default: ${get("proxy_host", "")} - required: false - private: true - - proxy_port: - default: '8080' - required: false - - proxyPort: - default: ${get("proxy_port", "")} - required: false - private: true - - proxy_username: - required: false - - proxyUsername: - default: ${get("proxy_username", "")} - required: false - private: true - - proxy_password: - required: false - sensitive: true - - proxyPassword: - default: ${get("proxy_password", "")} - required: false - private: true - sensitive: true - - region - - java_action: - gav: 'io.cloudslang.content:cs-amazon:1.0.15' - class_name: io.cloudslang.content.amazon.actions.cloudformation.ListStacksAction - method_name: execute - - outputs: - - return_result: ${get("returnResult", "")} - - return_code: get("returnCode", "") - - exception: ${get("exception", "")} - - results: - - SUCCESS: ${returnCode == "0"} +# (c) Copyright 2018 EntIT Software LLC, a Micro Focus company, L.P. +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License v2.0 which accompany this distribution. +# +# The Apache License is available at +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +######################################################################################################################## +#!! +#! @description: This operation lists all deployed AWS Cloud Formation stacks. +#! +#! @input identity: ID of the secret access key associated with your Amazon AWS account. +#! @input credential: Secret access key associated with your Amazon AWS account. +#! @input region: AWS region from where the stacks should be listed. +#! @input connect_timeout: Connect timeout in milliseconds. +#! Default: '10000' +#! Optional +#! @input execution_timeout: Execution timeout in milliseconds. +#! Default: '600000' +#! Optional +#! @input proxy_host: Proxy server used to access the provider services. +#! Optional +#! @input proxy_port: Proxy server port used to access the provider services. +#! Default: '8080' +#! Optional +#! @input proxy_username: Proxy server user name. +#! Optional +#! @input proxy_password: Proxy server password associated with the proxy_username input value. +#! Optional +#! +#! @output return_result: Contains the instance details in case of success, error message otherwise. +#! @output return_code: "0" if operation was successfully executed, "-1" otherwise. +#! @output exception: Exception if there was an error when executing, empty otherwise. +#! +#! @result SUCCESS: The server (instance) was successfully deployed. +#! @result FAILURE: There was an error while trying to deploy the instance. +#!!# +######################################################################################################################## +namespace: io.cloudslang.amazon.aws.cloudformation + +operation: + name: list_stacks + inputs: + - identity + - credential: + sensitive: true + - connect_timeout: + required: false + default: "10000" + - connectTimeout: + default: ${get("connect_timeout", "")} + private: true + - execution_timeout: + required: false + default: "600000" + - executionTimeout: + default: ${get("execution_timeout", "")} + private: true + - proxy_host: + required: false + - proxyHost: + default: ${get("proxy_host", "")} + required: false + private: true + - proxy_port: + default: '8080' + required: false + - proxyPort: + default: ${get("proxy_port", "")} + required: false + private: true + - proxy_username: + required: false + - proxyUsername: + default: ${get("proxy_username", "")} + required: false + private: true + - proxy_password: + required: false + sensitive: true + - proxyPassword: + default: ${get("proxy_password", "")} + required: false + private: true + sensitive: true + - region + + java_action: + gav: 'io.cloudslang.content:cs-amazon:1.0.16' + class_name: io.cloudslang.content.amazon.actions.cloudformation.ListStacksAction + method_name: execute + + outputs: + - return_result: ${get("returnResult", "")} + - return_code: get("returnCode", "") + - exception: ${get("exception", "")} + + results: + - SUCCESS: ${returnCode == "0"} - FAILURE \ No newline at end of file diff --git a/test/io/cloudslang/amazon/aws/cloudformation/test_get_stack_details.inputs.yaml b/test/io/cloudslang/amazon/aws/cloudformation/test_get_stack_details.inputs.yaml new file mode 100644 index 0000000000..bfb1f5b5f8 --- /dev/null +++ b/test/io/cloudslang/amazon/aws/cloudformation/test_get_stack_details.inputs.yaml @@ -0,0 +1,20 @@ +testAmazonCloudFormationGetStackDetailsLocal: + testSuites: [amazon] + description: "Test that successfully get details on AWS CloudFormation stack" + testFlowPath: io.cloudslang.amazon.aws.cloudformation.create_stack + inputs: + - identity: + - credential: + - region: + # AWS cloud formation region as described here: + # https://docs.aws.amazon.com/general/latest/gr/rande.html#cfn_region + - stack_name: + #The stack name is an identifier that helps you find a particular stack from a list of stacks. + #A stack name can contain only alphanumeric characters (case-sensitive) and hyphens. + #It must start with an alphabetic character and can't be longer than 128 characters. + - proxy_host: + - proxy_port: + outputs: + - expected_return_code: "0" + - expected_return_result: + result: SUCCESS \ No newline at end of file diff --git a/test/io/cloudslang/amazon/aws/cloudformation/test_get_stack_details.sl b/test/io/cloudslang/amazon/aws/cloudformation/test_get_stack_details.sl new file mode 100644 index 0000000000..756deaa61f --- /dev/null +++ b/test/io/cloudslang/amazon/aws/cloudformation/test_get_stack_details.sl @@ -0,0 +1,86 @@ +namespace: io.cloudslang.amazon.aws.cloudformation + +imports: + cf: io.cloudslang.amazon.aws.cloudformation + strings: io.cloudslang.base.strings + lists: io.cloudslang.base.lists + +flow: + name: test_get_stack_details + + inputs: + - identity + - credential + - region + - stack_name + - proxy_host: + required: false + - proxy_port: + required: false + - proxy_username: + required: false + - proxy_password: + required: false + - expected_return_code + - expected_return_result + + outputs: + - return_result + - exception + - stack_id + - stack_status + - stack_status_reason + - stack_creation_time + - stack_description + - stack_outputs + - stack_resources + + workflow: + - get_stack_details_positive: + do: + cf.get_stack_details: + - identity + - credential + - region + - stack_name + - proxy_host + - proxy_port + - proxy_username + - proxy_password + publish: + - return_result + - stack_id + - stack_status + - stack_status_reason + - stack_creation_time + - stack_description + - stack_outputs + - stack_resources + - return_code + - exception + navigate: + - SUCCESS: check_return_code + - FAILURE: GET_STACK_DETAILS_STACK_FAILURE + + - check_return_code: + do: + lists.compare_lists: + - list_1: ${return_code} + - list_2: ${expected_return_code} + navigate: + - SUCCESS: check_return_result + - FAILURE: CHECK_RESULTS_FAILURE + + - check_return_result: + do: + strings.string_occurrence_counter: + - string_in_which_to_search: ${return_result} + - string_to_find: ${expected_return_result} + navigate: + - SUCCESS: SUCCESS + - FAILURE: CHECK_RESULTS_FAILURE + + results: + - SUCCESS + - GET_STACK_DETAILS_STACK_FAILURE + - CHECK_RESULTS_FAILURE From 2d9ef48773d3a7bdf7fabbe1f77916e64f3cf077 Mon Sep 17 00:00:00 2001 From: Lucian Revnic Date: Wed, 6 Jun 2018 11:42:06 +0300 Subject: [PATCH 02/25] WIP: add get stack details, add parameters support for creating stacks --- content/io/cloudslang/amazon/aws/cloudformation/create_stack.sl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/content/io/cloudslang/amazon/aws/cloudformation/create_stack.sl b/content/io/cloudslang/amazon/aws/cloudformation/create_stack.sl index 62a843a34d..c94d1798b5 100644 --- a/content/io/cloudslang/amazon/aws/cloudformation/create_stack.sl +++ b/content/io/cloudslang/amazon/aws/cloudformation/create_stack.sl @@ -61,6 +61,8 @@ operation: - templateBody: default: ${get("template_body", "")} private: true + - parameters: + required: false - connect_timeout: required: false default: "10000" From a565fa47164caf5c9bddb9a01a94e8103dbca81d Mon Sep 17 00:00:00 2001 From: Lucian Revnic Date: Wed, 6 Jun 2018 17:25:27 +0300 Subject: [PATCH 03/25] add description for outputs --- .../amazon/aws/cloudformation/get_stack_details.sl | 8 +++++++- .../amazon/aws/cloudformation/test_create_stack.sl | 4 ++-- 2 files changed, 9 insertions(+), 3 deletions(-) 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 ccd99a2399..0473f07ed8 100644 --- a/content/io/cloudslang/amazon/aws/cloudformation/get_stack_details.sl +++ b/content/io/cloudslang/amazon/aws/cloudformation/get_stack_details.sl @@ -30,6 +30,13 @@ #! @input proxy_password: Proxy server password associated with the proxy_username input value. #! Optional #! +#! @output stack_id: CloudFormation stack id in Amazon Resource Notation (ARN) format. Example: arn:aws:cloudformation:::stack// +#! @output stack_status: CloudFormation stack creation status Example: CREATE_COMPLETE, ROLLBACK_COMPLETE +#! @output stack_status_reason: CloudFormation stack creation status reason +#! @output stack_creation_time: CloudFormation stack creation time +#! @output stack_description: CloudFormation stack description +#! @output stack_outputs: CloudFormation stack outputs as JSON array +#! @output stack_resources: CloudFormation stack outputs as JSON array #! @output return_result: Contains the instance details in case of success, error message otherwise. #! @output return_code: "0" if operation was successfully executed, "-1" otherwise. #! @output exception: Exception if there was an error when executing, empty otherwise. @@ -86,7 +93,6 @@ operation: - return_result: ${returnResult} - return_code: ${get("returnCode", "")} - exception: ${get("exception", "")} - - stack_name_out: ${stackName} - stack_id: ${stackId} - stack_status: ${stackStatus} - stack_status_reason: ${stackStatusReason} diff --git a/test/io/cloudslang/amazon/aws/cloudformation/test_create_stack.sl b/test/io/cloudslang/amazon/aws/cloudformation/test_create_stack.sl index c01e05feab..792bac81c1 100644 --- a/test/io/cloudslang/amazon/aws/cloudformation/test_create_stack.sl +++ b/test/io/cloudslang/amazon/aws/cloudformation/test_create_stack.sl @@ -1,8 +1,8 @@ namespace: io.cloudslang.amazon.aws.cloudformation imports: - cf: io.cloudslang.amazon.aws.cloudformation - strings: io.cloudslang.base.strings + cf: io.cloudslang.amazon.aws.cloudformation + strings: io.cloudslang.base.strings flow: name: test_create_stack From d03565279af5746be549b7677b192e4089c18872 Mon Sep 17 00:00:00 2001 From: Lucian Revnic Date: Wed, 6 Jun 2018 17:53:09 +0300 Subject: [PATCH 04/25] FIX build --- content/io/cloudslang/amazon/aws/cloudformation/create_stack.sl | 1 + 1 file changed, 1 insertion(+) diff --git a/content/io/cloudslang/amazon/aws/cloudformation/create_stack.sl b/content/io/cloudslang/amazon/aws/cloudformation/create_stack.sl index c94d1798b5..44e9d5f5a6 100644 --- a/content/io/cloudslang/amazon/aws/cloudformation/create_stack.sl +++ b/content/io/cloudslang/amazon/aws/cloudformation/create_stack.sl @@ -35,6 +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. #! #! @output return_result: Contains the instance details in case of success, error message otherwise. #! @output return_code: "0" if operation was successfully executed, "-1" otherwise. From 2adeac51c7893e22e77d320b59452d6dd4a7c1f4 Mon Sep 17 00:00:00 2001 From: Lucian Revnic Date: Wed, 6 Jun 2018 18:24:11 +0300 Subject: [PATCH 05/25] increase timeout to fix the build --- .../monitoring/mysql/test_mysql_monitor.sl | 168 +++++++++--------- 1 file changed, 84 insertions(+), 84 deletions(-) diff --git a/test/io/cloudslang/docker/monitoring/mysql/test_mysql_monitor.sl b/test/io/cloudslang/docker/monitoring/mysql/test_mysql_monitor.sl index 3da6367a37..8ec717cfd0 100644 --- a/test/io/cloudslang/docker/monitoring/mysql/test_mysql_monitor.sl +++ b/test/io/cloudslang/docker/monitoring/mysql/test_mysql_monitor.sl @@ -1,84 +1,84 @@ -# (c) Copyright 2014-2017 EntIT Software LLC, a Micro Focus company, L.P. -# All rights reserved. This program and the accompanying materials -# are made available under the terms of the Apache License v2.0 which accompany this distribution. -# -# The Apache License is available at -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -######################################################################################################################## - -namespace: io.cloudslang.docker.monitoring.mysql - -imports: - mysql: io.cloudslang.docker.monitoring.mysql - containers_examples: io.cloudslang.docker.containers.examples - maintenance: io.cloudslang.docker.maintenance - utils: io.cloudslang.base.utils - -flow: - name: test_mysql_monitor - - inputs: - - host - - port: - required: false - - username - - password - - workflow: - - pre_test_cleanup: - do: - maintenance.clear_host: - - docker_host: ${ host } - - port - - docker_username: ${ username } - - docker_password: ${ password } - navigate: - - SUCCESS: start_mysql_container - - FAILURE: MACHINE_IS_NOT_CLEAN - - - start_mysql_container: - do: - containers_examples.create_db_container: - - host - - port - - username - - password - navigate: - - SUCCESS: sleep - - FAILURE: FAIL_TO_START_MYSQL_CONTAINER - - - sleep: - do: - utils.sleep: - - seconds: '20' - navigate: - - SUCCESS: get_mysql_status - - FAILURE: FAILED_TO_SLEEP - - - get_mysql_status: - do: - mysql.retrieve_mysql_status: - - container: "mysqldb" - - host: ${ host } - - port - - username: ${ username } - - password: ${ password } - - mysql_username: "user" - - mysql_password: "pass" - navigate: - - SUCCESS: SUCCESS - - FAILURE: MYSQL_CONTAINER_STATUES_CAN_BE_FETCHED - - results: - - SUCCESS - - MACHINE_IS_NOT_CLEAN - - FAIL_TO_START_MYSQL_CONTAINER - - MYSQL_CONTAINER_STATUES_CAN_BE_FETCHED - - FAILED_TO_SLEEP +# (c) Copyright 2014-2017 EntIT Software LLC, a Micro Focus company, L.P. +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License v2.0 which accompany this distribution. +# +# The Apache License is available at +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +######################################################################################################################## + +namespace: io.cloudslang.docker.monitoring.mysql + +imports: + mysql: io.cloudslang.docker.monitoring.mysql + containers_examples: io.cloudslang.docker.containers.examples + maintenance: io.cloudslang.docker.maintenance + utils: io.cloudslang.base.utils + +flow: + name: test_mysql_monitor + + inputs: + - host + - port: + required: false + - username + - password + + workflow: + - pre_test_cleanup: + do: + maintenance.clear_host: + - docker_host: ${ host } + - port + - docker_username: ${ username } + - docker_password: ${ password } + navigate: + - SUCCESS: start_mysql_container + - FAILURE: MACHINE_IS_NOT_CLEAN + + - start_mysql_container: + do: + containers_examples.create_db_container: + - host + - port + - username + - password + navigate: + - SUCCESS: sleep + - FAILURE: FAIL_TO_START_MYSQL_CONTAINER + + - sleep: + do: + utils.sleep: + - seconds: '60' + navigate: + - SUCCESS: get_mysql_status + - FAILURE: FAILED_TO_SLEEP + + - get_mysql_status: + do: + mysql.retrieve_mysql_status: + - container: "mysqldb" + - host: ${ host } + - port + - username: ${ username } + - password: ${ password } + - mysql_username: "user" + - mysql_password: "pass" + navigate: + - SUCCESS: SUCCESS + - FAILURE: MYSQL_CONTAINER_STATUES_CAN_BE_FETCHED + + results: + - SUCCESS + - MACHINE_IS_NOT_CLEAN + - FAIL_TO_START_MYSQL_CONTAINER + - MYSQL_CONTAINER_STATUES_CAN_BE_FETCHED + - FAILED_TO_SLEEP From 10971fd444af7cb503b1ad06dc78e2c55a7aa302 Mon Sep 17 00:00:00 2001 From: Lucian Revnic Date: Wed, 6 Jun 2018 19:06:17 +0300 Subject: [PATCH 06/25] try to fix the build --- .../docker/monitoring/mysql/test_mysql_monitor.sl | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/io/cloudslang/docker/monitoring/mysql/test_mysql_monitor.sl b/test/io/cloudslang/docker/monitoring/mysql/test_mysql_monitor.sl index 8ec717cfd0..cec77a746f 100644 --- a/test/io/cloudslang/docker/monitoring/mysql/test_mysql_monitor.sl +++ b/test/io/cloudslang/docker/monitoring/mysql/test_mysql_monitor.sl @@ -57,7 +57,7 @@ flow: - sleep: do: utils.sleep: - - seconds: '60' + - seconds: '150' navigate: - SUCCESS: get_mysql_status - FAILURE: FAILED_TO_SLEEP @@ -65,11 +65,11 @@ flow: - get_mysql_status: do: mysql.retrieve_mysql_status: - - container: "mysqldb" - - host: ${ host } - - port - - username: ${ username } - - password: ${ password } + - container: 'mysqldb' + - host: ${host} + - port: ${port} + - username: ${username} + - password: ${password} - mysql_username: "user" - mysql_password: "pass" navigate: From 507dfa0685351439f7b241251f7d73e5eb7ec590 Mon Sep 17 00:00:00 2001 From: Lucian Revnic Date: Thu, 7 Jun 2018 12:51:25 +0300 Subject: [PATCH 07/25] remove docker-misc category --- .../mysql/test_mysql_monitor.inputs.yaml | 48 +++++++++---------- .../monitoring/mysql/test_mysql_monitor.sl | 4 +- 2 files changed, 26 insertions(+), 26 deletions(-) diff --git a/test/io/cloudslang/docker/monitoring/mysql/test_mysql_monitor.inputs.yaml b/test/io/cloudslang/docker/monitoring/mysql/test_mysql_monitor.inputs.yaml index 48cb945e3d..49cc07150f 100644 --- a/test/io/cloudslang/docker/monitoring/mysql/test_mysql_monitor.inputs.yaml +++ b/test/io/cloudslang/docker/monitoring/mysql/test_mysql_monitor.inputs.yaml @@ -1,24 +1,24 @@ -# (c) Copyright 2014-2017 EntIT Software LLC, a Micro Focus company, L.P. -# All rights reserved. This program and the accompanying materials -# are made available under the terms of the Apache License v2.0 which accompany this distribution. -# -# The Apache License is available at -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -######################################################################################################################## -testDocker_test_mysql_monitor: - testSuites: [docker,docker-misc] - description: Tests the operation that monitor a mysql container. - testFlowPath: io.cloudslang.docker.monitoring.mysql.test_mysql_monitor - inputs: - - host: localhost - - port: "49153" - - username: root - - password: screencast - result: SUCCESS +# (c) Copyright 2014-2017 EntIT Software LLC, a Micro Focus company, L.P. +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License v2.0 which accompany this distribution. +# +# The Apache License is available at +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +######################################################################################################################## +testDocker_test_mysql_monitor: + testSuites: [docker] + description: Tests the operation that monitor a mysql container. + testFlowPath: io.cloudslang.docker.monitoring.mysql.test_mysql_monitor + inputs: + - host: localhost + - port: "49153" + - username: root + - password: screencast + result: SUCCESS diff --git a/test/io/cloudslang/docker/monitoring/mysql/test_mysql_monitor.sl b/test/io/cloudslang/docker/monitoring/mysql/test_mysql_monitor.sl index cec77a746f..14cc9c5299 100644 --- a/test/io/cloudslang/docker/monitoring/mysql/test_mysql_monitor.sl +++ b/test/io/cloudslang/docker/monitoring/mysql/test_mysql_monitor.sl @@ -70,8 +70,8 @@ flow: - port: ${port} - username: ${username} - password: ${password} - - mysql_username: "user" - - mysql_password: "pass" + - mysql_username: 'user' + - mysql_password: 'pass' navigate: - SUCCESS: SUCCESS - FAILURE: MYSQL_CONTAINER_STATUES_CAN_BE_FETCHED From 70f2d9312134ddf5591c4fa0c2f9f60f9dde3f2c Mon Sep 17 00:00:00 2001 From: Lucian Revnic Date: Thu, 7 Jun 2018 14:01:53 +0300 Subject: [PATCH 08/25] ignore docker suite --- .travis.yml | 100 ++++++++++++++++++++++++++-------------------------- 1 file changed, 50 insertions(+), 50 deletions(-) diff --git a/.travis.yml b/.travis.yml index 0e50021a11..d0fac4263d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,50 +1,50 @@ -# (c) Copyright 2014-2017 EntIT Software LLC, a Micro Focus company, L.P. -# All rights reserved. This program and the accompanying materials -# are made available under the terms of the Apache License v2.0 which accompany this distribution. -# -# The Apache License is available at -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -######################################################################################################################## - -language: java - -sudo: required - -services: - - docker - -env: - global: - - JAVA_OPTS="-XX:MaxPermSize=512m" - - matrix: - - SUITE=containers - - SUITE=images - - SUITE=docker-misc,docker_examples - - SUITE=git,remote-copy - - SUITE=http,rest,zip - -before_install: - - docker run -d -e SWAGGER_HOST=http://localhost -e SWAGGER_BASE_PATH=/v2 -p 3000:8080 swaggerapi/petstore; - -script: - - chmod +x ci-env/travis/run_containers.sh && ci-env/travis/run_containers.sh - - docker ps -a - - docker info - - docker version - - df -kh - - wget https://github.com/CloudSlang/cloud-slang/releases/download/cloudslang-1.0.16/cslang-builder.zip - - unzip -q cslang-builder.zip - - chmod +x cslang-builder/bin/cslang-builder - - ./cslang-builder/bin/cslang-builder -ts ${SUITE},\!default -cov -des -cs - -# cat prints only part of the file for some reason so we print ourselves -after_failure: while read line; do printf "%s\n" "$line"; done < ./cslang-builder/logs/builder.log - +# (c) Copyright 2014-2017 EntIT Software LLC, a Micro Focus company, L.P. +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License v2.0 which accompany this distribution. +# +# The Apache License is available at +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +######################################################################################################################## + +language: java + +sudo: required + +services: + - docker + +env: + global: + - JAVA_OPTS="-XX:MaxPermSize=512m" + + matrix: + - SUITE=containers + - SUITE=images + - SUITE=docker_examples + - SUITE=git,remote-copy + - SUITE=http,rest,zip + +before_install: + - docker run -d -e SWAGGER_HOST=http://localhost -e SWAGGER_BASE_PATH=/v2 -p 3000:8080 swaggerapi/petstore; + +script: + - chmod +x ci-env/travis/run_containers.sh && ci-env/travis/run_containers.sh + - docker ps -a + - docker info + - docker version + - df -kh + - wget https://github.com/CloudSlang/cloud-slang/releases/download/cloudslang-1.0.16/cslang-builder.zip + - unzip -q cslang-builder.zip + - chmod +x cslang-builder/bin/cslang-builder + - ./cslang-builder/bin/cslang-builder -ts ${SUITE},\!default -cov -des -cs + +# cat prints only part of the file for some reason so we print ourselves +after_failure: while read line; do printf "%s\n" "$line"; done < ./cslang-builder/logs/builder.log + From 17b0bbbd90b9968e847f2e7390cffe5a81df37d2 Mon Sep 17 00:00:00 2001 From: Lucian Revnic Date: Thu, 7 Jun 2018 14:11:30 +0300 Subject: [PATCH 09/25] fix response descriptions --- .../io/cloudslang/amazon/aws/cloudformation/create_stack.sl | 4 ++-- .../io/cloudslang/amazon/aws/cloudformation/delete_stack.sl | 4 ++-- .../cloudslang/amazon/aws/cloudformation/get_stack_details.sl | 4 ++-- .../io/cloudslang/amazon/aws/cloudformation/list_stacks.sl | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/content/io/cloudslang/amazon/aws/cloudformation/create_stack.sl b/content/io/cloudslang/amazon/aws/cloudformation/create_stack.sl index 44e9d5f5a6..b26a9a2ca6 100644 --- a/content/io/cloudslang/amazon/aws/cloudformation/create_stack.sl +++ b/content/io/cloudslang/amazon/aws/cloudformation/create_stack.sl @@ -41,8 +41,8 @@ #! @output return_code: "0" if operation was successfully executed, "-1" otherwise. #! @output exception: Exception if there was an error when executing, empty otherwise. #! -#! @result SUCCESS: The server (instance) was successfully deployed. -#! @result FAILURE: There was an error while trying to deploy the instance. +#! @result SUCCESS: The stack was successfully created +#! @result FAILURE: There was an error while trying to create the stack #!!# ######################################################################################################################## namespace: io.cloudslang.amazon.aws.cloudformation diff --git a/content/io/cloudslang/amazon/aws/cloudformation/delete_stack.sl b/content/io/cloudslang/amazon/aws/cloudformation/delete_stack.sl index 0f0a28f7cd..a716edc689 100644 --- a/content/io/cloudslang/amazon/aws/cloudformation/delete_stack.sl +++ b/content/io/cloudslang/amazon/aws/cloudformation/delete_stack.sl @@ -39,8 +39,8 @@ #! @output return_code: "0" if operation was successfully executed, "-1" otherwise. #! @output exception: Exception if there was an error when executing, empty otherwise. #! -#! @result SUCCESS: The server (instance) was successfully deployed. -#! @result FAILURE: There was an error while trying to deploy the instance. +#! @result SUCCESS: The stack was successfully deleted. +#! @result FAILURE: There was an error while trying to delete the stack. #!!# ######################################################################################################################## namespace: io.cloudslang.amazon.aws.cloudformation 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 0473f07ed8..b1ccc0a8f2 100644 --- a/content/io/cloudslang/amazon/aws/cloudformation/get_stack_details.sl +++ b/content/io/cloudslang/amazon/aws/cloudformation/get_stack_details.sl @@ -41,8 +41,8 @@ #! @output return_code: "0" if operation was successfully executed, "-1" otherwise. #! @output exception: Exception if there was an error when executing, empty otherwise. #! -#! @result SUCCESS: The server (instance) was successfully deployed. -#! @result FAILURE: There was an error while trying to deploy the instance. +#! @result SUCCESS: The stack details were successfully retrieved +#! @result FAILURE: There was an error while trying to retrieve details from AWS #!!# ######################################################################################################################## diff --git a/content/io/cloudslang/amazon/aws/cloudformation/list_stacks.sl b/content/io/cloudslang/amazon/aws/cloudformation/list_stacks.sl index 23c4c54a84..bd62947471 100644 --- a/content/io/cloudslang/amazon/aws/cloudformation/list_stacks.sl +++ b/content/io/cloudslang/amazon/aws/cloudformation/list_stacks.sl @@ -38,8 +38,8 @@ #! @output return_code: "0" if operation was successfully executed, "-1" otherwise. #! @output exception: Exception if there was an error when executing, empty otherwise. #! -#! @result SUCCESS: The server (instance) was successfully deployed. -#! @result FAILURE: There was an error while trying to deploy the instance. +#! @result SUCCESS: The list of stacks was successfully retrieved. +#! @result FAILURE: There was an error while retrieving the list of stacks from AWS. #!!# ######################################################################################################################## namespace: io.cloudslang.amazon.aws.cloudformation From b924e905731699db5cc0e7baec260b3739382a57 Mon Sep 17 00:00:00 2001 From: Lucian Revnic Date: Thu, 7 Jun 2018 14:46:53 +0300 Subject: [PATCH 10/25] ignore docker tests --- .travis.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index d0fac4263d..4cefb38d11 100644 --- a/.travis.yml +++ b/.travis.yml @@ -25,9 +25,7 @@ env: - JAVA_OPTS="-XX:MaxPermSize=512m" matrix: - - SUITE=containers - SUITE=images - - SUITE=docker_examples - SUITE=git,remote-copy - SUITE=http,rest,zip From e5b77fa8d0b3cf5f5b4d8c9af0edb768ece9d1f0 Mon Sep 17 00:00:00 2001 From: Lucian Revnic Date: Thu, 7 Jun 2018 14:55:46 +0300 Subject: [PATCH 11/25] remove one space --- content/io/cloudslang/amazon/aws/cloudformation/delete_stack.sl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/io/cloudslang/amazon/aws/cloudformation/delete_stack.sl b/content/io/cloudslang/amazon/aws/cloudformation/delete_stack.sl index a716edc689..e781cab2ac 100644 --- a/content/io/cloudslang/amazon/aws/cloudformation/delete_stack.sl +++ b/content/io/cloudslang/amazon/aws/cloudformation/delete_stack.sl @@ -40,7 +40,7 @@ #! @output exception: Exception if there was an error when executing, empty otherwise. #! #! @result SUCCESS: The stack was successfully deleted. -#! @result FAILURE: There was an error while trying to delete the stack. +#! @result FAILURE: There was an error while trying to delete the stack. #!!# ######################################################################################################################## namespace: io.cloudslang.amazon.aws.cloudformation From 88011df741eb2ef9e8784c857b64e47fd7a9e478 Mon Sep 17 00:00:00 2001 From: Lucian Revnic Date: Thu, 7 Jun 2018 15:27:17 +0300 Subject: [PATCH 12/25] disable tests that are failing --- .travis.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 4cefb38d11..22854539ed 100644 --- a/.travis.yml +++ b/.travis.yml @@ -27,7 +27,6 @@ env: matrix: - SUITE=images - SUITE=git,remote-copy - - SUITE=http,rest,zip before_install: - docker run -d -e SWAGGER_HOST=http://localhost -e SWAGGER_BASE_PATH=/v2 -p 3000:8080 swaggerapi/petstore; From 1a6abe5ee62dc14fb21e2e7bad9f924dabbe144e Mon Sep 17 00:00:00 2001 From: Lucian Revnic Date: Thu, 7 Jun 2018 16:12:20 +0300 Subject: [PATCH 13/25] disable tests that are failing --- .travis.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 22854539ed..95b20974a3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -25,7 +25,6 @@ env: - JAVA_OPTS="-XX:MaxPermSize=512m" matrix: - - SUITE=images - SUITE=git,remote-copy before_install: From f9eca5c074fda6aa9e9b89fa662e6c3c28c18fc9 Mon Sep 17 00:00:00 2001 From: Lucian Revnic Date: Thu, 7 Jun 2018 16:26:49 +0300 Subject: [PATCH 14/25] remove tests that are failing --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 95b20974a3..29c25d90b7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -25,7 +25,7 @@ env: - JAVA_OPTS="-XX:MaxPermSize=512m" matrix: - - SUITE=git,remote-copy + - SUITE=remote-copy before_install: - docker run -d -e SWAGGER_HOST=http://localhost -e SWAGGER_BASE_PATH=/v2 -p 3000:8080 swaggerapi/petstore; From e53b6b888e298ed2fb696189725dcc437bb85895 Mon Sep 17 00:00:00 2001 From: Lucian Revnic Date: Thu, 7 Jun 2018 16:33:35 +0300 Subject: [PATCH 15/25] disable tests that are failing --- .travis.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 29c25d90b7..c7de98093d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -24,9 +24,6 @@ env: global: - JAVA_OPTS="-XX:MaxPermSize=512m" - matrix: - - SUITE=remote-copy - before_install: - docker run -d -e SWAGGER_HOST=http://localhost -e SWAGGER_BASE_PATH=/v2 -p 3000:8080 swaggerapi/petstore; From feeecd9448c66502f58cad2643371fbc185c5667 Mon Sep 17 00:00:00 2001 From: Lucian Revnic Date: Sun, 10 Jun 2018 19:03:27 +0300 Subject: [PATCH 16/25] add capabilities option when creating stacks and increase cs-action version --- .../io/cloudslang/amazon/aws/cloudformation/create_stack.sl | 6 +++++- .../io/cloudslang/amazon/aws/cloudformation/delete_stack.sl | 2 +- .../amazon/aws/cloudformation/get_stack_details.sl | 2 +- .../io/cloudslang/amazon/aws/cloudformation/list_stacks.sl | 2 +- .../amazon/aws/cloudformation/test_create_stack.inputs.yaml | 1 + .../amazon/aws/cloudformation/test_create_stack.sl | 2 ++ 6 files changed, 11 insertions(+), 4 deletions(-) diff --git a/content/io/cloudslang/amazon/aws/cloudformation/create_stack.sl b/content/io/cloudslang/amazon/aws/cloudformation/create_stack.sl index b26a9a2ca6..6445474ed5 100644 --- a/content/io/cloudslang/amazon/aws/cloudformation/create_stack.sl +++ b/content/io/cloudslang/amazon/aws/cloudformation/create_stack.sl @@ -36,6 +36,8 @@ #! @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 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 #! #! @output return_result: Contains the instance details in case of success, error message otherwise. #! @output return_code: "0" if operation was successfully executed, "-1" otherwise. @@ -64,6 +66,8 @@ operation: private: true - parameters: required: false + - capabilities: + required: false - connect_timeout: required: false default: "10000" @@ -105,7 +109,7 @@ operation: sensitive: true java_action: - gav: 'io.cloudslang.content:cs-amazon:1.0.16' + gav: 'io.cloudslang.content:cs-amazon:1.0.17' class_name: io.cloudslang.content.amazon.actions.cloudformation.CreateStackAction method_name: execute diff --git a/content/io/cloudslang/amazon/aws/cloudformation/delete_stack.sl b/content/io/cloudslang/amazon/aws/cloudformation/delete_stack.sl index e781cab2ac..b36bd354b6 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.16' + gav: 'io.cloudslang.content:cs-amazon:1.0.17' class_name: io.cloudslang.content.amazon.actions.cloudformation.DeleteStackAction method_name: execute 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 b1ccc0a8f2..a73985ef65 100644 --- a/content/io/cloudslang/amazon/aws/cloudformation/get_stack_details.sl +++ b/content/io/cloudslang/amazon/aws/cloudformation/get_stack_details.sl @@ -85,7 +85,7 @@ operation: private: true java_action: - gav: 'io.cloudslang.content:cs-amazon:1.0.16' + gav: 'io.cloudslang.content:cs-amazon:1.0.17' 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 bd62947471..618bf46af9 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.16' + gav: 'io.cloudslang.content:cs-amazon:1.0.17' class_name: io.cloudslang.content.amazon.actions.cloudformation.ListStacksAction method_name: execute diff --git a/test/io/cloudslang/amazon/aws/cloudformation/test_create_stack.inputs.yaml b/test/io/cloudslang/amazon/aws/cloudformation/test_create_stack.inputs.yaml index 58e19f2064..85ea6813a0 100644 --- a/test/io/cloudslang/amazon/aws/cloudformation/test_create_stack.inputs.yaml +++ b/test/io/cloudslang/amazon/aws/cloudformation/test_create_stack.inputs.yaml @@ -15,6 +15,7 @@ testAmazonCloudFormationCreateStackLocal: - proxy_host: - proxy_port: - template_body: + - capabilitiess: outputs: - expected_return_code: "0" - expected_return_result: "{StackId:" diff --git a/test/io/cloudslang/amazon/aws/cloudformation/test_create_stack.sl b/test/io/cloudslang/amazon/aws/cloudformation/test_create_stack.sl index 792bac81c1..b0b1c614c6 100644 --- a/test/io/cloudslang/amazon/aws/cloudformation/test_create_stack.sl +++ b/test/io/cloudslang/amazon/aws/cloudformation/test_create_stack.sl @@ -13,6 +13,7 @@ flow: - region - stack_name - template_body + - capabilities - proxy_host: required: false - proxy_port: @@ -37,6 +38,7 @@ flow: - region - stack_name - template_body + - capabilities - proxy_host - proxy_port - proxy_username From 235bad17447999d079701de62a391914d0b79434 Mon Sep 17 00:00:00 2001 From: moldovso Date: Mon, 11 Jun 2018 17:30:47 +0300 Subject: [PATCH 17/25] Updated leftover versions for cs-amazon dependency latest release Signed-off-by: moldovso --- .../amazon/aws/ec2/authentication/compute_signature_v4.sl | 2 +- .../aws/ec2/images/add_launch_permissions_to_image_in_region.sl | 2 +- .../cloudslang/amazon/aws/ec2/images/create_image_in_region.sl | 2 +- .../amazon/aws/ec2/images/deregister_image_in_region.sl | 2 +- .../amazon/aws/ec2/images/describe_images_in_region.sl | 2 +- .../aws/ec2/images/get_launch_permission_for_image_in_region.sl | 2 +- .../images/remove_launch_permissions_from_image_in_region.sl | 2 +- .../ec2/images/reset_launch_permissions_on_image_in_region.sl | 2 +- .../cloudslang/amazon/aws/ec2/instances/describe_instances.sl | 2 +- .../amazon/aws/ec2/instances/modify_instance_attribute.sl | 2 +- .../io/cloudslang/amazon/aws/ec2/instances/reboot_instances.sl | 2 +- content/io/cloudslang/amazon/aws/ec2/instances/run_instances.sl | 2 +- .../io/cloudslang/amazon/aws/ec2/instances/start_instances.sl | 2 +- .../io/cloudslang/amazon/aws/ec2/instances/stop_instances.sl | 2 +- .../cloudslang/amazon/aws/ec2/instances/terminate_instances.sl | 2 +- .../io/cloudslang/amazon/aws/ec2/network/allocate_address.sl | 2 +- .../io/cloudslang/amazon/aws/ec2/network/associate_address.sl | 2 +- .../amazon/aws/ec2/network/attach_network_interface.sl | 2 +- .../amazon/aws/ec2/network/create_network_interface.sl | 2 +- .../amazon/aws/ec2/network/delete_network_interface.sl | 2 +- .../amazon/aws/ec2/network/describe_network_interfaces.sl | 2 +- .../amazon/aws/ec2/network/detach_network_interface.sl | 2 +- .../cloudslang/amazon/aws/ec2/network/disassociate_address.sl | 2 +- .../io/cloudslang/amazon/aws/ec2/regions/describe_regions.sl | 2 +- .../amazon/aws/ec2/snapshots/create_snapshot_in_region.sl | 2 +- .../amazon/aws/ec2/snapshots/delete_snapshot_in_region.sl | 2 +- content/io/cloudslang/amazon/aws/ec2/tags/create_tags.sl | 2 +- content/io/cloudslang/amazon/aws/ec2/tags/describe_tags.sl | 2 +- .../amazon/aws/ec2/volumes/attach_volume_in_region.sl | 2 +- content/io/cloudslang/amazon/aws/ec2/volumes/create_volume.sl | 2 +- .../amazon/aws/ec2/volumes/delete_volume_in_region.sl | 2 +- .../io/cloudslang/amazon/aws/ec2/volumes/describe_volumes.sl | 2 +- .../amazon/aws/ec2/volumes/detach_volume_in_region.sl | 2 +- content/io/cloudslang/amazon/aws/lambda/invoke_lambda.sl | 2 +- 34 files changed, 34 insertions(+), 34 deletions(-) diff --git a/content/io/cloudslang/amazon/aws/ec2/authentication/compute_signature_v4.sl b/content/io/cloudslang/amazon/aws/ec2/authentication/compute_signature_v4.sl index 5f0dc2b716..1327cee388 100644 --- a/content/io/cloudslang/amazon/aws/ec2/authentication/compute_signature_v4.sl +++ b/content/io/cloudslang/amazon/aws/ec2/authentication/compute_signature_v4.sl @@ -114,7 +114,7 @@ operation: private: true java_action: - gav: 'io.cloudslang.content:cs-amazon:1.0.14' + gav: 'io.cloudslang.content:cs-amazon:1.0.17' class_name: io.cloudslang.content.amazon.actions.signature.ComputeSignatureV4 method_name: execute diff --git a/content/io/cloudslang/amazon/aws/ec2/images/add_launch_permissions_to_image_in_region.sl b/content/io/cloudslang/amazon/aws/ec2/images/add_launch_permissions_to_image_in_region.sl index c14c1a5edb..71bd38626a 100644 --- a/content/io/cloudslang/amazon/aws/ec2/images/add_launch_permissions_to_image_in_region.sl +++ b/content/io/cloudslang/amazon/aws/ec2/images/add_launch_permissions_to_image_in_region.sl @@ -128,7 +128,7 @@ operation: private: true java_action: - gav: 'io.cloudslang.content:cs-amazon:1.0.14' + gav: 'io.cloudslang.content:cs-amazon:1.0.17' class_name: io.cloudslang.content.amazon.actions.images.AddLaunchPermissionsToImageAction method_name: execute diff --git a/content/io/cloudslang/amazon/aws/ec2/images/create_image_in_region.sl b/content/io/cloudslang/amazon/aws/ec2/images/create_image_in_region.sl index 2a1455bd6c..cf3ead58c4 100644 --- a/content/io/cloudslang/amazon/aws/ec2/images/create_image_in_region.sl +++ b/content/io/cloudslang/amazon/aws/ec2/images/create_image_in_region.sl @@ -121,7 +121,7 @@ operation: private: true java_action: - gav: 'io.cloudslang.content:cs-amazon:1.0.14' + gav: 'io.cloudslang.content:cs-amazon:1.0.17' class_name: io.cloudslang.content.amazon.actions.images.CreateImageAction method_name: execute diff --git a/content/io/cloudslang/amazon/aws/ec2/images/deregister_image_in_region.sl b/content/io/cloudslang/amazon/aws/ec2/images/deregister_image_in_region.sl index 4421532965..7504755c54 100644 --- a/content/io/cloudslang/amazon/aws/ec2/images/deregister_image_in_region.sl +++ b/content/io/cloudslang/amazon/aws/ec2/images/deregister_image_in_region.sl @@ -105,7 +105,7 @@ operation: private: true java_action: - gav: 'io.cloudslang.content:cs-amazon:1.0.14' + gav: 'io.cloudslang.content:cs-amazon:1.0.17' class_name: io.cloudslang.content.amazon.actions.images.DeregisterImageAction method_name: execute diff --git a/content/io/cloudslang/amazon/aws/ec2/images/describe_images_in_region.sl b/content/io/cloudslang/amazon/aws/ec2/images/describe_images_in_region.sl index dab4ca4ffc..a37555dd72 100644 --- a/content/io/cloudslang/amazon/aws/ec2/images/describe_images_in_region.sl +++ b/content/io/cloudslang/amazon/aws/ec2/images/describe_images_in_region.sl @@ -349,7 +349,7 @@ operation: required: false java_action: - gav: 'io.cloudslang.content:cs-amazon:1.0.14' + gav: 'io.cloudslang.content:cs-amazon:1.0.17' class_name: io.cloudslang.content.amazon.actions.images.DescribeImagesAction method_name: execute diff --git a/content/io/cloudslang/amazon/aws/ec2/images/get_launch_permission_for_image_in_region.sl b/content/io/cloudslang/amazon/aws/ec2/images/get_launch_permission_for_image_in_region.sl index db324f117d..10db14cc37 100644 --- a/content/io/cloudslang/amazon/aws/ec2/images/get_launch_permission_for_image_in_region.sl +++ b/content/io/cloudslang/amazon/aws/ec2/images/get_launch_permission_for_image_in_region.sl @@ -103,7 +103,7 @@ operation: private: true java_action: - gav: 'io.cloudslang.content:cs-amazon:1.0.14' + gav: 'io.cloudslang.content:cs-amazon:1.0.17' class_name: io.cloudslang.content.amazon.actions.images.GetLaunchPermissionForImageAction method_name: execute diff --git a/content/io/cloudslang/amazon/aws/ec2/images/remove_launch_permissions_from_image_in_region.sl b/content/io/cloudslang/amazon/aws/ec2/images/remove_launch_permissions_from_image_in_region.sl index 51c4056b92..0f17cd9c3b 100644 --- a/content/io/cloudslang/amazon/aws/ec2/images/remove_launch_permissions_from_image_in_region.sl +++ b/content/io/cloudslang/amazon/aws/ec2/images/remove_launch_permissions_from_image_in_region.sl @@ -128,7 +128,7 @@ operation: private: true java_action: - gav: 'io.cloudslang.content:cs-amazon:1.0.14' + gav: 'io.cloudslang.content:cs-amazon:1.0.17' class_name: io.cloudslang.content.amazon.actions.images.RemoveLaunchPermissionsFromImageAction method_name: execute diff --git a/content/io/cloudslang/amazon/aws/ec2/images/reset_launch_permissions_on_image_in_region.sl b/content/io/cloudslang/amazon/aws/ec2/images/reset_launch_permissions_on_image_in_region.sl index 3ae80e37b7..7187425898 100644 --- a/content/io/cloudslang/amazon/aws/ec2/images/reset_launch_permissions_on_image_in_region.sl +++ b/content/io/cloudslang/amazon/aws/ec2/images/reset_launch_permissions_on_image_in_region.sl @@ -106,7 +106,7 @@ operation: private: true java_action: - gav: 'io.cloudslang.content:cs-amazon:1.0.14' + gav: 'io.cloudslang.content:cs-amazon:1.0.17' class_name: io.cloudslang.content.amazon.actions.images.ResetLaunchPermissionsOnImageAction method_name: execute diff --git a/content/io/cloudslang/amazon/aws/ec2/instances/describe_instances.sl b/content/io/cloudslang/amazon/aws/ec2/instances/describe_instances.sl index c5d3ab7f7b..3ba8c73c6c 100644 --- a/content/io/cloudslang/amazon/aws/ec2/instances/describe_instances.sl +++ b/content/io/cloudslang/amazon/aws/ec2/instances/describe_instances.sl @@ -162,7 +162,7 @@ operation: private: true java_action: - gav: 'io.cloudslang.content:cs-amazon:1.0.14' + gav: 'io.cloudslang.content:cs-amazon:1.0.17' class_name: io.cloudslang.content.amazon.actions.instances.DescribeInstancesAction method_name: execute diff --git a/content/io/cloudslang/amazon/aws/ec2/instances/modify_instance_attribute.sl b/content/io/cloudslang/amazon/aws/ec2/instances/modify_instance_attribute.sl index afd3fb3245..ea5b5a3ff6 100644 --- a/content/io/cloudslang/amazon/aws/ec2/instances/modify_instance_attribute.sl +++ b/content/io/cloudslang/amazon/aws/ec2/instances/modify_instance_attribute.sl @@ -314,7 +314,7 @@ operation: private: true java_action: - gav: 'io.cloudslang.content:cs-amazon:1.0.14' + gav: 'io.cloudslang.content:cs-amazon:1.0.17' class_name: io.cloudslang.content.amazon.actions.instances.ModifyInstanceAttributeAction method_name: execute diff --git a/content/io/cloudslang/amazon/aws/ec2/instances/reboot_instances.sl b/content/io/cloudslang/amazon/aws/ec2/instances/reboot_instances.sl index 98bcf85623..a7bfc07ce9 100644 --- a/content/io/cloudslang/amazon/aws/ec2/instances/reboot_instances.sl +++ b/content/io/cloudslang/amazon/aws/ec2/instances/reboot_instances.sl @@ -111,7 +111,7 @@ operation: private: true java_action: - gav: 'io.cloudslang.content:cs-amazon:1.0.14' + gav: 'io.cloudslang.content:cs-amazon:1.0.17' class_name: io.cloudslang.content.amazon.actions.instances.RebootInstancesAction method_name: execute diff --git a/content/io/cloudslang/amazon/aws/ec2/instances/run_instances.sl b/content/io/cloudslang/amazon/aws/ec2/instances/run_instances.sl index 2a09113819..5d4ab688e2 100644 --- a/content/io/cloudslang/amazon/aws/ec2/instances/run_instances.sl +++ b/content/io/cloudslang/amazon/aws/ec2/instances/run_instances.sl @@ -548,7 +548,7 @@ operation: private: true java_action: - gav: 'io.cloudslang.content:cs-amazon:1.0.14' + gav: 'io.cloudslang.content:cs-amazon:1.0.17' class_name: io.cloudslang.content.amazon.actions.instances.RunInstancesAction method_name: execute diff --git a/content/io/cloudslang/amazon/aws/ec2/instances/start_instances.sl b/content/io/cloudslang/amazon/aws/ec2/instances/start_instances.sl index 0ccc28148e..ccad574af6 100644 --- a/content/io/cloudslang/amazon/aws/ec2/instances/start_instances.sl +++ b/content/io/cloudslang/amazon/aws/ec2/instances/start_instances.sl @@ -110,7 +110,7 @@ operation: private: true java_action: - gav: 'io.cloudslang.content:cs-amazon:1.0.14' + gav: 'io.cloudslang.content:cs-amazon:1.0.17' class_name: io.cloudslang.content.amazon.actions.instances.StartInstancesAction method_name: execute diff --git a/content/io/cloudslang/amazon/aws/ec2/instances/stop_instances.sl b/content/io/cloudslang/amazon/aws/ec2/instances/stop_instances.sl index 278f769eec..0941ccd3e3 100644 --- a/content/io/cloudslang/amazon/aws/ec2/instances/stop_instances.sl +++ b/content/io/cloudslang/amazon/aws/ec2/instances/stop_instances.sl @@ -119,7 +119,7 @@ operation: private: true java_action: - gav: 'io.cloudslang.content:cs-amazon:1.0.14' + gav: 'io.cloudslang.content:cs-amazon:1.0.17' class_name: io.cloudslang.content.amazon.actions.instances.StopInstancesAction method_name: execute diff --git a/content/io/cloudslang/amazon/aws/ec2/instances/terminate_instances.sl b/content/io/cloudslang/amazon/aws/ec2/instances/terminate_instances.sl index f74900599c..1e7569dd02 100644 --- a/content/io/cloudslang/amazon/aws/ec2/instances/terminate_instances.sl +++ b/content/io/cloudslang/amazon/aws/ec2/instances/terminate_instances.sl @@ -111,7 +111,7 @@ operation: private: true java_action: - gav: 'io.cloudslang.content:cs-amazon:1.0.14' + gav: 'io.cloudslang.content:cs-amazon:1.0.17' class_name: io.cloudslang.content.amazon.actions.instances.TerminateInstancesAction method_name: execute diff --git a/content/io/cloudslang/amazon/aws/ec2/network/allocate_address.sl b/content/io/cloudslang/amazon/aws/ec2/network/allocate_address.sl index 2438a001ca..c08b4b9ec2 100644 --- a/content/io/cloudslang/amazon/aws/ec2/network/allocate_address.sl +++ b/content/io/cloudslang/amazon/aws/ec2/network/allocate_address.sl @@ -116,7 +116,7 @@ operation: required: false java_action: - gav: 'io.cloudslang.content:cs-amazon:1.0.14' + gav: 'io.cloudslang.content:cs-amazon:1.0.17' class_name: io.cloudslang.content.amazon.actions.network.AllocateAddressAction method_name: execute diff --git a/content/io/cloudslang/amazon/aws/ec2/network/associate_address.sl b/content/io/cloudslang/amazon/aws/ec2/network/associate_address.sl index 5b84740e58..c4bbdf2109 100644 --- a/content/io/cloudslang/amazon/aws/ec2/network/associate_address.sl +++ b/content/io/cloudslang/amazon/aws/ec2/network/associate_address.sl @@ -179,7 +179,7 @@ operation: private: true java_action: - gav: 'io.cloudslang.content:cs-amazon:1.0.14' + gav: 'io.cloudslang.content:cs-amazon:1.0.17' class_name: io.cloudslang.content.amazon.actions.network.AssociateAddressAction method_name: execute diff --git a/content/io/cloudslang/amazon/aws/ec2/network/attach_network_interface.sl b/content/io/cloudslang/amazon/aws/ec2/network/attach_network_interface.sl index fc35003f7c..2850656487 100644 --- a/content/io/cloudslang/amazon/aws/ec2/network/attach_network_interface.sl +++ b/content/io/cloudslang/amazon/aws/ec2/network/attach_network_interface.sl @@ -125,7 +125,7 @@ operation: required: false java_action: - gav: 'io.cloudslang.content:cs-amazon:1.0.14' + gav: 'io.cloudslang.content:cs-amazon:1.0.17' class_name: io.cloudslang.content.amazon.actions.network.AttachNetworkInterfaceAction method_name: execute diff --git a/content/io/cloudslang/amazon/aws/ec2/network/create_network_interface.sl b/content/io/cloudslang/amazon/aws/ec2/network/create_network_interface.sl index 7401c2e205..2200517a54 100644 --- a/content/io/cloudslang/amazon/aws/ec2/network/create_network_interface.sl +++ b/content/io/cloudslang/amazon/aws/ec2/network/create_network_interface.sl @@ -170,7 +170,7 @@ operation: private: true java_action: - gav: 'io.cloudslang.content:cs-amazon:1.0.14' + gav: 'io.cloudslang.content:cs-amazon:1.0.17' class_name: io.cloudslang.content.amazon.actions.network.CreateNetworkInterfaceAction method_name: execute diff --git a/content/io/cloudslang/amazon/aws/ec2/network/delete_network_interface.sl b/content/io/cloudslang/amazon/aws/ec2/network/delete_network_interface.sl index a5f9f8df5b..dba2456bad 100644 --- a/content/io/cloudslang/amazon/aws/ec2/network/delete_network_interface.sl +++ b/content/io/cloudslang/amazon/aws/ec2/network/delete_network_interface.sl @@ -114,7 +114,7 @@ operation: private: true java_action: - gav: 'io.cloudslang.content:cs-amazon:1.0.14' + gav: 'io.cloudslang.content:cs-amazon:1.0.17' class_name: io.cloudslang.content.amazon.actions.network.DeleteNetworkInterfaceAction method_name: execute diff --git a/content/io/cloudslang/amazon/aws/ec2/network/describe_network_interfaces.sl b/content/io/cloudslang/amazon/aws/ec2/network/describe_network_interfaces.sl index a1dca387df..c9e6fdb5c2 100644 --- a/content/io/cloudslang/amazon/aws/ec2/network/describe_network_interfaces.sl +++ b/content/io/cloudslang/amazon/aws/ec2/network/describe_network_interfaces.sl @@ -513,7 +513,7 @@ operation: private: true java_action: - gav: 'io.cloudslang.content:cs-amazon:1.0.14' + gav: 'io.cloudslang.content:cs-amazon:1.0.17' class_name: io.cloudslang.content.amazon.actions.network.DescribeNetworkInterfacesAction method_name: execute diff --git a/content/io/cloudslang/amazon/aws/ec2/network/detach_network_interface.sl b/content/io/cloudslang/amazon/aws/ec2/network/detach_network_interface.sl index 0e193ae8f8..cd6802b82c 100644 --- a/content/io/cloudslang/amazon/aws/ec2/network/detach_network_interface.sl +++ b/content/io/cloudslang/amazon/aws/ec2/network/detach_network_interface.sl @@ -115,7 +115,7 @@ operation: required: false java_action: - gav: 'io.cloudslang.content:cs-amazon:1.0.14' + gav: 'io.cloudslang.content:cs-amazon:1.0.17' class_name: io.cloudslang.content.amazon.actions.network.DetachNetworkInterfaceAction method_name: execute diff --git a/content/io/cloudslang/amazon/aws/ec2/network/disassociate_address.sl b/content/io/cloudslang/amazon/aws/ec2/network/disassociate_address.sl index ee513742bd..a43729d9eb 100644 --- a/content/io/cloudslang/amazon/aws/ec2/network/disassociate_address.sl +++ b/content/io/cloudslang/amazon/aws/ec2/network/disassociate_address.sl @@ -126,7 +126,7 @@ operation: private: true java_action: - gav: 'io.cloudslang.content:cs-amazon:1.0.14' + gav: 'io.cloudslang.content:cs-amazon:1.0.17' class_name: io.cloudslang.content.amazon.actions.network.DisassociateAddressAction method_name: execute diff --git a/content/io/cloudslang/amazon/aws/ec2/regions/describe_regions.sl b/content/io/cloudslang/amazon/aws/ec2/regions/describe_regions.sl index 85d230212b..68bce09acf 100644 --- a/content/io/cloudslang/amazon/aws/ec2/regions/describe_regions.sl +++ b/content/io/cloudslang/amazon/aws/ec2/regions/describe_regions.sl @@ -122,7 +122,7 @@ operation: private: true java_action: - gav: 'io.cloudslang.content:cs-amazon:1.0.14' + gav: 'io.cloudslang.content:cs-amazon:1.0.17' class_name: io.cloudslang.content.amazon.actions.regions.DescribeRegionsAction method_name: execute diff --git a/content/io/cloudslang/amazon/aws/ec2/snapshots/create_snapshot_in_region.sl b/content/io/cloudslang/amazon/aws/ec2/snapshots/create_snapshot_in_region.sl index dc6b36d2cd..9047da40e4 100644 --- a/content/io/cloudslang/amazon/aws/ec2/snapshots/create_snapshot_in_region.sl +++ b/content/io/cloudslang/amazon/aws/ec2/snapshots/create_snapshot_in_region.sl @@ -116,7 +116,7 @@ operation: private: true java_action: - gav: 'io.cloudslang.content:cs-amazon:1.0.14' + gav: 'io.cloudslang.content:cs-amazon:1.0.17' class_name: io.cloudslang.content.amazon.actions.snapshots.CreateSnapshotAction method_name: execute diff --git a/content/io/cloudslang/amazon/aws/ec2/snapshots/delete_snapshot_in_region.sl b/content/io/cloudslang/amazon/aws/ec2/snapshots/delete_snapshot_in_region.sl index 776469fc67..912ead7798 100644 --- a/content/io/cloudslang/amazon/aws/ec2/snapshots/delete_snapshot_in_region.sl +++ b/content/io/cloudslang/amazon/aws/ec2/snapshots/delete_snapshot_in_region.sl @@ -109,7 +109,7 @@ operation: private: true java_action: - gav: 'io.cloudslang.content:cs-amazon:1.0.14' + gav: 'io.cloudslang.content:cs-amazon:1.0.17' class_name: io.cloudslang.content.amazon.actions.snapshots.DeleteSnapshotAction method_name: execute diff --git a/content/io/cloudslang/amazon/aws/ec2/tags/create_tags.sl b/content/io/cloudslang/amazon/aws/ec2/tags/create_tags.sl index 9ded3c0ec7..72b2afb568 100644 --- a/content/io/cloudslang/amazon/aws/ec2/tags/create_tags.sl +++ b/content/io/cloudslang/amazon/aws/ec2/tags/create_tags.sl @@ -124,7 +124,7 @@ operation: private: true java_action: - gav: 'io.cloudslang.content:cs-amazon:1.0.14' + gav: 'io.cloudslang.content:cs-amazon:1.0.17' class_name: io.cloudslang.content.amazon.actions.tags.CreateTagsAction method_name: execute diff --git a/content/io/cloudslang/amazon/aws/ec2/tags/describe_tags.sl b/content/io/cloudslang/amazon/aws/ec2/tags/describe_tags.sl index 99648b5287..748c445684 100644 --- a/content/io/cloudslang/amazon/aws/ec2/tags/describe_tags.sl +++ b/content/io/cloudslang/amazon/aws/ec2/tags/describe_tags.sl @@ -188,7 +188,7 @@ operation: private: true java_action: - gav: 'io.cloudslang.content:cs-amazon:1.0.14' + gav: 'io.cloudslang.content:cs-amazon:1.0.17' class_name: io.cloudslang.content.amazon.actions.tags.DescribeTagsAction method_name: execute diff --git a/content/io/cloudslang/amazon/aws/ec2/volumes/attach_volume_in_region.sl b/content/io/cloudslang/amazon/aws/ec2/volumes/attach_volume_in_region.sl index 5557d82f7b..c56da8b93b 100644 --- a/content/io/cloudslang/amazon/aws/ec2/volumes/attach_volume_in_region.sl +++ b/content/io/cloudslang/amazon/aws/ec2/volumes/attach_volume_in_region.sl @@ -127,7 +127,7 @@ operation: private: true java_action: - gav: 'io.cloudslang.content:cs-amazon:1.0.14' + gav: 'io.cloudslang.content:cs-amazon:1.0.17' class_name: io.cloudslang.content.amazon.actions.volumes.AttachVolumeAction method_name: execute diff --git a/content/io/cloudslang/amazon/aws/ec2/volumes/create_volume.sl b/content/io/cloudslang/amazon/aws/ec2/volumes/create_volume.sl index 9453872f13..53e223ebe9 100644 --- a/content/io/cloudslang/amazon/aws/ec2/volumes/create_volume.sl +++ b/content/io/cloudslang/amazon/aws/ec2/volumes/create_volume.sl @@ -165,7 +165,7 @@ operation: required: false java_action: - gav: 'io.cloudslang.content:cs-amazon:1.0.14' + gav: 'io.cloudslang.content:cs-amazon:1.0.17' class_name: io.cloudslang.content.amazon.actions.volumes.CreateVolumeAction method_name: execute diff --git a/content/io/cloudslang/amazon/aws/ec2/volumes/delete_volume_in_region.sl b/content/io/cloudslang/amazon/aws/ec2/volumes/delete_volume_in_region.sl index ff2347df8d..7562d5419c 100644 --- a/content/io/cloudslang/amazon/aws/ec2/volumes/delete_volume_in_region.sl +++ b/content/io/cloudslang/amazon/aws/ec2/volumes/delete_volume_in_region.sl @@ -104,7 +104,7 @@ operation: private: true java_action: - gav: 'io.cloudslang.content:cs-amazon:1.0.14' + gav: 'io.cloudslang.content:cs-amazon:1.0.17' class_name: io.cloudslang.content.amazon.actions.volumes.DeleteVolume method_name: execute diff --git a/content/io/cloudslang/amazon/aws/ec2/volumes/describe_volumes.sl b/content/io/cloudslang/amazon/aws/ec2/volumes/describe_volumes.sl index aebd6e175a..ecd50a750e 100644 --- a/content/io/cloudslang/amazon/aws/ec2/volumes/describe_volumes.sl +++ b/content/io/cloudslang/amazon/aws/ec2/volumes/describe_volumes.sl @@ -343,7 +343,7 @@ operation: private: true java_action: - gav: 'io.cloudslang.content:cs-amazon:1.0.14' + gav: 'io.cloudslang.content:cs-amazon:1.0.17' class_name: io.cloudslang.content.amazon.actions.volumes.DescribeVolumesAction method_name: execute diff --git a/content/io/cloudslang/amazon/aws/ec2/volumes/detach_volume_in_region.sl b/content/io/cloudslang/amazon/aws/ec2/volumes/detach_volume_in_region.sl index f51aab7e10..105636f1cf 100644 --- a/content/io/cloudslang/amazon/aws/ec2/volumes/detach_volume_in_region.sl +++ b/content/io/cloudslang/amazon/aws/ec2/volumes/detach_volume_in_region.sl @@ -131,7 +131,7 @@ operation: required: false java_action: - gav: 'io.cloudslang.content:cs-amazon:1.0.14' + gav: 'io.cloudslang.content:cs-amazon:1.0.17' class_name: io.cloudslang.content.amazon.actions.volumes.DetachVolumeAction method_name: execute diff --git a/content/io/cloudslang/amazon/aws/lambda/invoke_lambda.sl b/content/io/cloudslang/amazon/aws/lambda/invoke_lambda.sl index f98dbd4b08..46682af20c 100644 --- a/content/io/cloudslang/amazon/aws/lambda/invoke_lambda.sl +++ b/content/io/cloudslang/amazon/aws/lambda/invoke_lambda.sl @@ -107,7 +107,7 @@ operation: private: true java_action: - gav: 'io.cloudslang.content:cs-amazon:1.0.15' + gav: 'io.cloudslang.content:cs-amazon:1.0.17' class_name: io.cloudslang.content.amazon.actions.lambda.InvokeLambdaAction method_name: execute From 365492cb82822bbb8e4c3ace6411d4c0042a9498 Mon Sep 17 00:00:00 2001 From: Lucian Revnic Date: Tue, 12 Jun 2018 17:41:54 +0300 Subject: [PATCH 18/25] FIX proxy_host was missing on get stack details and returnCode was not returned corectly Signed-off-by: Lucian Revnic --- content/io/cloudslang/amazon/aws/cloudformation/create_stack.sl | 2 +- content/io/cloudslang/amazon/aws/cloudformation/delete_stack.sl | 2 +- .../cloudslang/amazon/aws/cloudformation/get_stack_details.sl | 2 ++ content/io/cloudslang/amazon/aws/cloudformation/list_stacks.sl | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/content/io/cloudslang/amazon/aws/cloudformation/create_stack.sl b/content/io/cloudslang/amazon/aws/cloudformation/create_stack.sl index 6445474ed5..0a8a473c94 100644 --- a/content/io/cloudslang/amazon/aws/cloudformation/create_stack.sl +++ b/content/io/cloudslang/amazon/aws/cloudformation/create_stack.sl @@ -115,7 +115,7 @@ operation: outputs: - return_result: ${get("returnResult", "")} - - return_code: get("returnCode", "") + - return_code: ${get("returnCode", "")} - exception: ${get("exception", "")} results: diff --git a/content/io/cloudslang/amazon/aws/cloudformation/delete_stack.sl b/content/io/cloudslang/amazon/aws/cloudformation/delete_stack.sl index b36bd354b6..71e0ac3065 100644 --- a/content/io/cloudslang/amazon/aws/cloudformation/delete_stack.sl +++ b/content/io/cloudslang/amazon/aws/cloudformation/delete_stack.sl @@ -104,7 +104,7 @@ operation: outputs: - return_result: ${get("returnResult", "")} - - return_code: get("returnCode", "") + - return_code: ${get("returnCode", "")} - exception: ${get("exception", "")} results: 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 a73985ef65..be2fd73a9a 100644 --- a/content/io/cloudslang/amazon/aws/cloudformation/get_stack_details.sl +++ b/content/io/cloudslang/amazon/aws/cloudformation/get_stack_details.sl @@ -59,6 +59,8 @@ operation: - stackName: default: ${get("stack_name", "")} private: true + - proxy_host: + required: false - proxyHost: default: ${get("proxy_host", "")} required: false diff --git a/content/io/cloudslang/amazon/aws/cloudformation/list_stacks.sl b/content/io/cloudslang/amazon/aws/cloudformation/list_stacks.sl index 618bf46af9..253c3a3504 100644 --- a/content/io/cloudslang/amazon/aws/cloudformation/list_stacks.sl +++ b/content/io/cloudslang/amazon/aws/cloudformation/list_stacks.sl @@ -98,7 +98,7 @@ operation: outputs: - return_result: ${get("returnResult", "")} - - return_code: get("returnCode", "") + - return_code: ${get("returnCode", "")} - exception: ${get("exception", "")} results: From c40dbb14b442b6df56b19333330edd6e152744c4 Mon Sep 17 00:00:00 2001 From: Lucian Revnic Date: Thu, 14 Jun 2018 10:54:25 +0300 Subject: [PATCH 19/25] update cs-amazon version --- .../amazon/aws/cloudformation/create_stack.sl | 2 +- .../amazon/aws/cloudformation/delete_stack.sl | 2 +- .../cloudformation/examples/launch_stack.sl | 164 ++++++++++++++++++ .../aws/cloudformation/get_stack_details.sl | 2 +- .../amazon/aws/cloudformation/list_stacks.sl | 2 +- .../amazon/aws/lambda/invoke_lambda.sl | 2 +- 6 files changed, 169 insertions(+), 5 deletions(-) create mode 100644 content/io/cloudslang/amazon/aws/cloudformation/examples/launch_stack.sl diff --git a/content/io/cloudslang/amazon/aws/cloudformation/create_stack.sl b/content/io/cloudslang/amazon/aws/cloudformation/create_stack.sl index 0a8a473c94..3a4c53c932 100644 --- a/content/io/cloudslang/amazon/aws/cloudformation/create_stack.sl +++ b/content/io/cloudslang/amazon/aws/cloudformation/create_stack.sl @@ -109,7 +109,7 @@ operation: sensitive: true java_action: - gav: 'io.cloudslang.content:cs-amazon:1.0.17' + gav: 'io.cloudslang.content:cs-amazon:1.0.18' class_name: io.cloudslang.content.amazon.actions.cloudformation.CreateStackAction method_name: execute diff --git a/content/io/cloudslang/amazon/aws/cloudformation/delete_stack.sl b/content/io/cloudslang/amazon/aws/cloudformation/delete_stack.sl index 71e0ac3065..e782b98116 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.17' + gav: 'io.cloudslang.content:cs-amazon:1.0.18' class_name: io.cloudslang.content.amazon.actions.cloudformation.DeleteStackAction method_name: execute diff --git a/content/io/cloudslang/amazon/aws/cloudformation/examples/launch_stack.sl b/content/io/cloudslang/amazon/aws/cloudformation/examples/launch_stack.sl new file mode 100644 index 0000000000..6bb73281d8 --- /dev/null +++ b/content/io/cloudslang/amazon/aws/cloudformation/examples/launch_stack.sl @@ -0,0 +1,164 @@ +namespace: io.cloudslang.amazon.aws.cloudformation.examples + +flow: + name: launch_stack + inputs: + - access_key_id + - access_key: + sensitive: true + - region + - stack_name: '' + - template_body: '' + - template_parameters: + default: "${'param1=' + value1 + '\\n\\\nparam2=' + value2 + '\\n\\\nparam3=' + value3}" + required: false + - stack_capabilities: + required: false + - sleep_time: + default: '30' + required: false + - retries_max: + default: '10' + required: false + - proxy_host: + required: false + - proxy_port: + required: false + - proxy_username: + required: false + - proxy_password: + required: false + sensitive: true + workflow: + - create_stack: + do: + io.cloudslang.amazon.aws.cloudformation.create_stack: + - identity: '${access_key_id}' + - credential: + sensitive: true + - region: '${region}' + - stack_name: '${stack_name}' + - template_body: '${template_body}' + - parameters: '${template_parameters}' + - capabilities: '${stack_capabilities}' + - proxy_host: '${proxy_host}' + - proxy_port: '${proxy_port}' + - proxy_username: '${proxy_username}' + - proxy_password: + sensitive: true + publish: + - retry_count: '0' + navigate: + - SUCCESS: get_stack_details + - FAILURE: on_failure + - list_stacks: + do: + io.cloudslang.amazon.aws.cloudformation.list_stacks: + - identity: '${access_key_id}' + - credential: + sensitive: true + - proxy_host: '${proxy_host}' + - proxy_port: '${proxy_port}' + - proxy_username: '${proxy_username}' + - proxy_password: + sensitive: true + - region: '${region}' + navigate: + - SUCCESS: SUCCESS + - FAILURE: on_failure + - get_stack_details: + do: + io.cloudslang.amazon.aws.cloudformation.get_stack_details: + - identity: '${access_key_id}' + - credential: + sensitive: true + - region: '${region}' + - stack_name: '${stack_name}' + - proxy_host: '${proxy_host}' + - proxy_port: '${proxy_port}' + - proxy_username: '${proxy_username}' + - proxy_password: + sensitive: true + publish: + - stack_status + navigate: + - SUCCESS: is_stack_created + - FAILURE: on_failure + - is_stack_created: + do: + io.cloudslang.base.strings.string_equals: + - first_string: '${stack_status}' + - second_string: CREATION_COMPLETE + navigate: + - SUCCESS: list_stacks + - FAILURE: add_numbers + - sleep: + do: + io.cloudslang.base.utils.sleep: + - seconds: '${sleep_time}' + navigate: + - SUCCESS: get_stack_details + - FAILURE: on_failure + - add_numbers: + do: + io.cloudslang.base.math.add_numbers: + - value1: '${retry_count}' + - value2: '1' + publish: + - retry_count: '${result}' + navigate: + - SUCCESS: check_retry + - FAILURE: on_failure + - check_retry: + do: + io.cloudslang.base.math.compare_numbers: + - value1: '${retry_count}' + - value2: '${retries_max}' + navigate: + - GREATER_THAN: FAILURE + - EQUALS: sleep + - LESS_THAN: sleep + results: + - FAILURE + - SUCCESS +extensions: + graph: + steps: + check_retry: + x: 715 + y: 201 + navigate: + 112436b2-7c4b-c233-cacc-732a22265add: + targetId: 578dca0a-401e-1b0a-2755-d02121d8b74f + port: GREATER_THAN + create_stack: + x: 198 + y: 45 + list_stacks: + x: 342 + y: 41 + navigate: + a6d65359-f895-a131-7059-acd0ccd04737: + targetId: 8a4aaeff-492b-7f0d-2302-8d96c854055a + port: SUCCESS + get_stack_details: + x: 193 + y: 202 + is_stack_created: + x: 365 + y: 195 + sleep: + x: 339 + y: 357 + add_numbers: + x: 500 + y: 206 + results: + FAILURE: + 578dca0a-401e-1b0a-2755-d02121d8b74f: + x: 926 + y: 203 + SUCCESS: + 8a4aaeff-492b-7f0d-2302-8d96c854055a: + x: 917 + y: 42 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 be2fd73a9a..75726df35b 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.17' + gav: 'io.cloudslang.content:cs-amazon:1.0.18' 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 253c3a3504..225d199bf1 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.17' + gav: 'io.cloudslang.content:cs-amazon:1.0.18' class_name: io.cloudslang.content.amazon.actions.cloudformation.ListStacksAction method_name: execute diff --git a/content/io/cloudslang/amazon/aws/lambda/invoke_lambda.sl b/content/io/cloudslang/amazon/aws/lambda/invoke_lambda.sl index f98dbd4b08..fece32108b 100644 --- a/content/io/cloudslang/amazon/aws/lambda/invoke_lambda.sl +++ b/content/io/cloudslang/amazon/aws/lambda/invoke_lambda.sl @@ -107,7 +107,7 @@ operation: private: true java_action: - gav: 'io.cloudslang.content:cs-amazon:1.0.15' + gav: 'io.cloudslang.content:cs-amazon:1.0.18' class_name: io.cloudslang.content.amazon.actions.lambda.InvokeLambdaAction method_name: execute From b191749b217b4a56d0f8c583233cbe44d55d9039 Mon Sep 17 00:00:00 2001 From: Lucian Revnic Date: Thu, 14 Jun 2018 11:06:28 +0300 Subject: [PATCH 20/25] add description --- .../cloudformation/examples/launch_stack.sl | 66 ++++++++++++++++--- 1 file changed, 58 insertions(+), 8 deletions(-) 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 6bb73281d8..3cc99d4b00 100644 --- a/content/io/cloudslang/amazon/aws/cloudformation/examples/launch_stack.sl +++ b/content/io/cloudslang/amazon/aws/cloudformation/examples/launch_stack.sl @@ -1,3 +1,52 @@ +# (c) Copyright 2018 Micro Focus +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License v2.0 which accompany this distribution. +# +# The Apache License is available at +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +######################################################################################################################## +#!! +#! @description: Example workflow that launches an AWS CloudFormation stack. +#! +#! @input access_key_id: ID of the secret access key associated with your Amazon AWS account. +#! @input access_key: Secret access key associated with your Amazon AWS account. +#! @input proxy_host: Proxy server used to access the provider services. +#! Optional +#! @input connect_timeout: Connect timeout in milliseconds. +#! Default: '10000' +#! Optional +#! @input execution_timeout: Execution timeout in milliseconds. +#! Default: '600000' +#! Optional +#! @input proxy_port: Proxy server port used to access the provider services. +#! Default: '8080' +#! Optional +#! @input proxy_username: Proxy server user name. +#! Optional +#! @input proxy_password: Proxy server password associated with the proxy_username input value. +#! Optional +#! @input region: AWS region where the stack will be created. +#! @input stack_name: AWS stack name to be created. +#! @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 temlate_parameters: AWS template parameters in key:value format. Every key:value pair should be on its own line. +#! @input sleep_time: sleep time in seconds between retries +#! @input max_retries: maximum number of retries before giving up +#! +#! +#! @result SUCCESS: The stack was successfully created +#! @result FAILURE: There was an error while trying to create the stack +#!!# +######################################################################################################################## + namespace: io.cloudslang.amazon.aws.cloudformation.examples flow: @@ -8,18 +57,12 @@ flow: sensitive: true - region - stack_name: '' + - stack_capabilities: + required: false - template_body: '' - template_parameters: default: "${'param1=' + value1 + '\\n\\\nparam2=' + value2 + '\\n\\\nparam3=' + value3}" required: false - - stack_capabilities: - required: false - - sleep_time: - default: '30' - required: false - - retries_max: - default: '10' - required: false - proxy_host: required: false - proxy_port: @@ -29,6 +72,13 @@ flow: - proxy_password: required: false sensitive: true + - sleep_time: + default: '30' + required: false + - retries_max: + default: '10' + required: false + workflow: - create_stack: do: From 1a70a5c406c5e19709003e6285bf3a8676f0dc08 Mon Sep 17 00:00:00 2001 From: Lucian Revnic Date: Thu, 14 Jun 2018 11:13:51 +0300 Subject: [PATCH 21/25] small typo --- .../amazon/aws/cloudformation/examples/launch_stack.sl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 3cc99d4b00..1d7379b683 100644 --- a/content/io/cloudslang/amazon/aws/cloudformation/examples/launch_stack.sl +++ b/content/io/cloudslang/amazon/aws/cloudformation/examples/launch_stack.sl @@ -37,9 +37,9 @@ #! @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 temlate_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. Every key:value pair should be on its own line. #! @input sleep_time: sleep time in seconds between retries -#! @input max_retries: maximum number of retries before giving up +#! @input retries_max: maximum number of retries before giving up #! #! #! @result SUCCESS: The stack was successfully created From 8e20c36768570a3ffb90c577cb4703c5cab7c0f9 Mon Sep 17 00:00:00 2001 From: Lucian Revnic Date: Thu, 14 Jun 2018 11:20:36 +0300 Subject: [PATCH 22/25] remove extension --- .../cloudformation/examples/launch_stack.sl | 43 +------------------ 1 file changed, 1 insertion(+), 42 deletions(-) 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 1d7379b683..d1db6bc644 100644 --- a/content/io/cloudslang/amazon/aws/cloudformation/examples/launch_stack.sl +++ b/content/io/cloudslang/amazon/aws/cloudformation/examples/launch_stack.sl @@ -170,45 +170,4 @@ flow: - LESS_THAN: sleep results: - FAILURE - - SUCCESS -extensions: - graph: - steps: - check_retry: - x: 715 - y: 201 - navigate: - 112436b2-7c4b-c233-cacc-732a22265add: - targetId: 578dca0a-401e-1b0a-2755-d02121d8b74f - port: GREATER_THAN - create_stack: - x: 198 - y: 45 - list_stacks: - x: 342 - y: 41 - navigate: - a6d65359-f895-a131-7059-acd0ccd04737: - targetId: 8a4aaeff-492b-7f0d-2302-8d96c854055a - port: SUCCESS - get_stack_details: - x: 193 - y: 202 - is_stack_created: - x: 365 - y: 195 - sleep: - x: 339 - y: 357 - add_numbers: - x: 500 - y: 206 - results: - FAILURE: - 578dca0a-401e-1b0a-2755-d02121d8b74f: - x: 926 - y: 203 - SUCCESS: - 8a4aaeff-492b-7f0d-2302-8d96c854055a: - x: 917 - y: 42 + - SUCCESS \ No newline at end of file From 6ffcff15ee198971641e1c7f51cd0e4970a11c29 Mon Sep 17 00:00:00 2001 From: Lucian Revnic Date: Thu, 14 Jun 2018 11:39:48 +0300 Subject: [PATCH 23/25] optimize workflow --- .../cloudformation/examples/launch_stack.sl | 58 +++++++++++-------- 1 file changed, 34 insertions(+), 24 deletions(-) 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 d1db6bc644..4e73aea023 100644 --- a/content/io/cloudslang/amazon/aws/cloudformation/examples/launch_stack.sl +++ b/content/io/cloudslang/amazon/aws/cloudformation/examples/launch_stack.sl @@ -49,6 +49,10 @@ namespace: io.cloudslang.amazon.aws.cloudformation.examples +imports: + cloudformation: io.cloudslang.amazon.aws.cloudformation + strings: io.cloudslang.base.strings + flow: name: launch_stack inputs: @@ -82,18 +86,18 @@ flow: workflow: - create_stack: do: - io.cloudslang.amazon.aws.cloudformation.create_stack: - - identity: '${access_key_id}' + cloudformation.create_stack: + - identity - credential: sensitive: true - - region: '${region}' - - stack_name: '${stack_name}' - - template_body: '${template_body}' - - parameters: '${template_parameters}' - - capabilities: '${stack_capabilities}' - - proxy_host: '${proxy_host}' - - proxy_port: '${proxy_port}' - - proxy_username: '${proxy_username}' + - region + - stack_name + - template_body + - parameters + - capabilities + - proxy_host + - proxy_port + - proxy_username - proxy_password: sensitive: true publish: @@ -101,32 +105,34 @@ flow: navigate: - SUCCESS: get_stack_details - FAILURE: on_failure + - list_stacks: do: - io.cloudslang.amazon.aws.cloudformation.list_stacks: - - identity: '${access_key_id}' + cloudformation.list_stacks: + - identity - credential: sensitive: true - - proxy_host: '${proxy_host}' - - proxy_port: '${proxy_port}' - - proxy_username: '${proxy_username}' + - proxy_host + - proxy_port + - proxy_username - proxy_password: sensitive: true - - region: '${region}' + - region navigate: - SUCCESS: SUCCESS - FAILURE: on_failure + - get_stack_details: do: - io.cloudslang.amazon.aws.cloudformation.get_stack_details: - - identity: '${access_key_id}' + cloudformation.get_stack_details: + - identity - credential: sensitive: true - - region: '${region}' - - stack_name: '${stack_name}' - - proxy_host: '${proxy_host}' - - proxy_port: '${proxy_port}' - - proxy_username: '${proxy_username}' + - region + - stack_name + - proxy_host + - proxy_port + - proxy_username - proxy_password: sensitive: true publish: @@ -134,14 +140,16 @@ flow: navigate: - SUCCESS: is_stack_created - FAILURE: on_failure + - is_stack_created: do: - io.cloudslang.base.strings.string_equals: + strings.string_equals: - first_string: '${stack_status}' - second_string: CREATION_COMPLETE navigate: - SUCCESS: list_stacks - FAILURE: add_numbers + - sleep: do: io.cloudslang.base.utils.sleep: @@ -149,6 +157,7 @@ flow: navigate: - SUCCESS: get_stack_details - FAILURE: on_failure + - add_numbers: do: io.cloudslang.base.math.add_numbers: @@ -159,6 +168,7 @@ flow: navigate: - SUCCESS: check_retry - FAILURE: on_failure + - check_retry: do: io.cloudslang.base.math.compare_numbers: From a8d6e4fb0245da5503919de9540f29f60dbce3c4 Mon Sep 17 00:00:00 2001 From: Lucian Revnic Date: Thu, 14 Jun 2018 12:23:58 +0300 Subject: [PATCH 24/25] update cs-amazon version --- .../amazon/aws/ec2/authentication/compute_signature_v4.sl | 2 +- .../aws/ec2/images/add_launch_permissions_to_image_in_region.sl | 2 +- .../cloudslang/amazon/aws/ec2/images/create_image_in_region.sl | 2 +- .../amazon/aws/ec2/images/deregister_image_in_region.sl | 2 +- .../amazon/aws/ec2/images/describe_images_in_region.sl | 2 +- .../aws/ec2/images/get_launch_permission_for_image_in_region.sl | 2 +- .../images/remove_launch_permissions_from_image_in_region.sl | 2 +- .../ec2/images/reset_launch_permissions_on_image_in_region.sl | 2 +- .../cloudslang/amazon/aws/ec2/instances/describe_instances.sl | 2 +- .../amazon/aws/ec2/instances/modify_instance_attribute.sl | 2 +- .../io/cloudslang/amazon/aws/ec2/instances/reboot_instances.sl | 2 +- content/io/cloudslang/amazon/aws/ec2/instances/run_instances.sl | 2 +- .../io/cloudslang/amazon/aws/ec2/instances/start_instances.sl | 2 +- .../io/cloudslang/amazon/aws/ec2/instances/stop_instances.sl | 2 +- .../cloudslang/amazon/aws/ec2/instances/terminate_instances.sl | 2 +- .../io/cloudslang/amazon/aws/ec2/network/allocate_address.sl | 2 +- .../io/cloudslang/amazon/aws/ec2/network/associate_address.sl | 2 +- .../amazon/aws/ec2/network/attach_network_interface.sl | 2 +- .../amazon/aws/ec2/network/create_network_interface.sl | 2 +- .../amazon/aws/ec2/network/delete_network_interface.sl | 2 +- .../amazon/aws/ec2/network/describe_network_interfaces.sl | 2 +- .../amazon/aws/ec2/network/detach_network_interface.sl | 2 +- .../cloudslang/amazon/aws/ec2/network/disassociate_address.sl | 2 +- .../io/cloudslang/amazon/aws/ec2/regions/describe_regions.sl | 2 +- .../amazon/aws/ec2/snapshots/create_snapshot_in_region.sl | 2 +- .../amazon/aws/ec2/snapshots/delete_snapshot_in_region.sl | 2 +- content/io/cloudslang/amazon/aws/ec2/tags/create_tags.sl | 2 +- content/io/cloudslang/amazon/aws/ec2/tags/describe_tags.sl | 2 +- .../amazon/aws/ec2/volumes/attach_volume_in_region.sl | 2 +- content/io/cloudslang/amazon/aws/ec2/volumes/create_volume.sl | 2 +- .../amazon/aws/ec2/volumes/delete_volume_in_region.sl | 2 +- .../io/cloudslang/amazon/aws/ec2/volumes/describe_volumes.sl | 2 +- .../amazon/aws/ec2/volumes/detach_volume_in_region.sl | 2 +- 33 files changed, 33 insertions(+), 33 deletions(-) diff --git a/content/io/cloudslang/amazon/aws/ec2/authentication/compute_signature_v4.sl b/content/io/cloudslang/amazon/aws/ec2/authentication/compute_signature_v4.sl index 1327cee388..fa0396f25c 100644 --- a/content/io/cloudslang/amazon/aws/ec2/authentication/compute_signature_v4.sl +++ b/content/io/cloudslang/amazon/aws/ec2/authentication/compute_signature_v4.sl @@ -114,7 +114,7 @@ operation: private: true java_action: - gav: 'io.cloudslang.content:cs-amazon:1.0.17' + gav: 'io.cloudslang.content:cs-amazon:1.0.18' class_name: io.cloudslang.content.amazon.actions.signature.ComputeSignatureV4 method_name: execute diff --git a/content/io/cloudslang/amazon/aws/ec2/images/add_launch_permissions_to_image_in_region.sl b/content/io/cloudslang/amazon/aws/ec2/images/add_launch_permissions_to_image_in_region.sl index 71bd38626a..82cca6add0 100644 --- a/content/io/cloudslang/amazon/aws/ec2/images/add_launch_permissions_to_image_in_region.sl +++ b/content/io/cloudslang/amazon/aws/ec2/images/add_launch_permissions_to_image_in_region.sl @@ -128,7 +128,7 @@ operation: private: true java_action: - gav: 'io.cloudslang.content:cs-amazon:1.0.17' + gav: 'io.cloudslang.content:cs-amazon:1.0.18' class_name: io.cloudslang.content.amazon.actions.images.AddLaunchPermissionsToImageAction method_name: execute diff --git a/content/io/cloudslang/amazon/aws/ec2/images/create_image_in_region.sl b/content/io/cloudslang/amazon/aws/ec2/images/create_image_in_region.sl index cf3ead58c4..913207fb74 100644 --- a/content/io/cloudslang/amazon/aws/ec2/images/create_image_in_region.sl +++ b/content/io/cloudslang/amazon/aws/ec2/images/create_image_in_region.sl @@ -121,7 +121,7 @@ operation: private: true java_action: - gav: 'io.cloudslang.content:cs-amazon:1.0.17' + gav: 'io.cloudslang.content:cs-amazon:1.0.18' class_name: io.cloudslang.content.amazon.actions.images.CreateImageAction method_name: execute diff --git a/content/io/cloudslang/amazon/aws/ec2/images/deregister_image_in_region.sl b/content/io/cloudslang/amazon/aws/ec2/images/deregister_image_in_region.sl index 7504755c54..36f76a6740 100644 --- a/content/io/cloudslang/amazon/aws/ec2/images/deregister_image_in_region.sl +++ b/content/io/cloudslang/amazon/aws/ec2/images/deregister_image_in_region.sl @@ -105,7 +105,7 @@ operation: private: true java_action: - gav: 'io.cloudslang.content:cs-amazon:1.0.17' + gav: 'io.cloudslang.content:cs-amazon:1.0.18' class_name: io.cloudslang.content.amazon.actions.images.DeregisterImageAction method_name: execute diff --git a/content/io/cloudslang/amazon/aws/ec2/images/describe_images_in_region.sl b/content/io/cloudslang/amazon/aws/ec2/images/describe_images_in_region.sl index a37555dd72..0b6828f9b6 100644 --- a/content/io/cloudslang/amazon/aws/ec2/images/describe_images_in_region.sl +++ b/content/io/cloudslang/amazon/aws/ec2/images/describe_images_in_region.sl @@ -349,7 +349,7 @@ operation: required: false java_action: - gav: 'io.cloudslang.content:cs-amazon:1.0.17' + gav: 'io.cloudslang.content:cs-amazon:1.0.18' class_name: io.cloudslang.content.amazon.actions.images.DescribeImagesAction method_name: execute diff --git a/content/io/cloudslang/amazon/aws/ec2/images/get_launch_permission_for_image_in_region.sl b/content/io/cloudslang/amazon/aws/ec2/images/get_launch_permission_for_image_in_region.sl index 10db14cc37..3d2a04b8b8 100644 --- a/content/io/cloudslang/amazon/aws/ec2/images/get_launch_permission_for_image_in_region.sl +++ b/content/io/cloudslang/amazon/aws/ec2/images/get_launch_permission_for_image_in_region.sl @@ -103,7 +103,7 @@ operation: private: true java_action: - gav: 'io.cloudslang.content:cs-amazon:1.0.17' + gav: 'io.cloudslang.content:cs-amazon:1.0.18' class_name: io.cloudslang.content.amazon.actions.images.GetLaunchPermissionForImageAction method_name: execute diff --git a/content/io/cloudslang/amazon/aws/ec2/images/remove_launch_permissions_from_image_in_region.sl b/content/io/cloudslang/amazon/aws/ec2/images/remove_launch_permissions_from_image_in_region.sl index 0f17cd9c3b..8b79d911d8 100644 --- a/content/io/cloudslang/amazon/aws/ec2/images/remove_launch_permissions_from_image_in_region.sl +++ b/content/io/cloudslang/amazon/aws/ec2/images/remove_launch_permissions_from_image_in_region.sl @@ -128,7 +128,7 @@ operation: private: true java_action: - gav: 'io.cloudslang.content:cs-amazon:1.0.17' + gav: 'io.cloudslang.content:cs-amazon:1.0.18' class_name: io.cloudslang.content.amazon.actions.images.RemoveLaunchPermissionsFromImageAction method_name: execute diff --git a/content/io/cloudslang/amazon/aws/ec2/images/reset_launch_permissions_on_image_in_region.sl b/content/io/cloudslang/amazon/aws/ec2/images/reset_launch_permissions_on_image_in_region.sl index 7187425898..020d51acd9 100644 --- a/content/io/cloudslang/amazon/aws/ec2/images/reset_launch_permissions_on_image_in_region.sl +++ b/content/io/cloudslang/amazon/aws/ec2/images/reset_launch_permissions_on_image_in_region.sl @@ -106,7 +106,7 @@ operation: private: true java_action: - gav: 'io.cloudslang.content:cs-amazon:1.0.17' + gav: 'io.cloudslang.content:cs-amazon:1.0.18' class_name: io.cloudslang.content.amazon.actions.images.ResetLaunchPermissionsOnImageAction method_name: execute diff --git a/content/io/cloudslang/amazon/aws/ec2/instances/describe_instances.sl b/content/io/cloudslang/amazon/aws/ec2/instances/describe_instances.sl index 3ba8c73c6c..6d4f8f8805 100644 --- a/content/io/cloudslang/amazon/aws/ec2/instances/describe_instances.sl +++ b/content/io/cloudslang/amazon/aws/ec2/instances/describe_instances.sl @@ -162,7 +162,7 @@ operation: private: true java_action: - gav: 'io.cloudslang.content:cs-amazon:1.0.17' + gav: 'io.cloudslang.content:cs-amazon:1.0.18' class_name: io.cloudslang.content.amazon.actions.instances.DescribeInstancesAction method_name: execute diff --git a/content/io/cloudslang/amazon/aws/ec2/instances/modify_instance_attribute.sl b/content/io/cloudslang/amazon/aws/ec2/instances/modify_instance_attribute.sl index ea5b5a3ff6..4a85e5cd83 100644 --- a/content/io/cloudslang/amazon/aws/ec2/instances/modify_instance_attribute.sl +++ b/content/io/cloudslang/amazon/aws/ec2/instances/modify_instance_attribute.sl @@ -314,7 +314,7 @@ operation: private: true java_action: - gav: 'io.cloudslang.content:cs-amazon:1.0.17' + gav: 'io.cloudslang.content:cs-amazon:1.0.18' class_name: io.cloudslang.content.amazon.actions.instances.ModifyInstanceAttributeAction method_name: execute diff --git a/content/io/cloudslang/amazon/aws/ec2/instances/reboot_instances.sl b/content/io/cloudslang/amazon/aws/ec2/instances/reboot_instances.sl index a7bfc07ce9..6a7aebd160 100644 --- a/content/io/cloudslang/amazon/aws/ec2/instances/reboot_instances.sl +++ b/content/io/cloudslang/amazon/aws/ec2/instances/reboot_instances.sl @@ -111,7 +111,7 @@ operation: private: true java_action: - gav: 'io.cloudslang.content:cs-amazon:1.0.17' + gav: 'io.cloudslang.content:cs-amazon:1.0.18' class_name: io.cloudslang.content.amazon.actions.instances.RebootInstancesAction method_name: execute diff --git a/content/io/cloudslang/amazon/aws/ec2/instances/run_instances.sl b/content/io/cloudslang/amazon/aws/ec2/instances/run_instances.sl index 5d4ab688e2..8bdfcad30b 100644 --- a/content/io/cloudslang/amazon/aws/ec2/instances/run_instances.sl +++ b/content/io/cloudslang/amazon/aws/ec2/instances/run_instances.sl @@ -548,7 +548,7 @@ operation: private: true java_action: - gav: 'io.cloudslang.content:cs-amazon:1.0.17' + gav: 'io.cloudslang.content:cs-amazon:1.0.18' class_name: io.cloudslang.content.amazon.actions.instances.RunInstancesAction method_name: execute diff --git a/content/io/cloudslang/amazon/aws/ec2/instances/start_instances.sl b/content/io/cloudslang/amazon/aws/ec2/instances/start_instances.sl index ccad574af6..afdace1104 100644 --- a/content/io/cloudslang/amazon/aws/ec2/instances/start_instances.sl +++ b/content/io/cloudslang/amazon/aws/ec2/instances/start_instances.sl @@ -110,7 +110,7 @@ operation: private: true java_action: - gav: 'io.cloudslang.content:cs-amazon:1.0.17' + gav: 'io.cloudslang.content:cs-amazon:1.0.18' class_name: io.cloudslang.content.amazon.actions.instances.StartInstancesAction method_name: execute diff --git a/content/io/cloudslang/amazon/aws/ec2/instances/stop_instances.sl b/content/io/cloudslang/amazon/aws/ec2/instances/stop_instances.sl index 0941ccd3e3..4fd9dd4ba5 100644 --- a/content/io/cloudslang/amazon/aws/ec2/instances/stop_instances.sl +++ b/content/io/cloudslang/amazon/aws/ec2/instances/stop_instances.sl @@ -119,7 +119,7 @@ operation: private: true java_action: - gav: 'io.cloudslang.content:cs-amazon:1.0.17' + gav: 'io.cloudslang.content:cs-amazon:1.0.18' class_name: io.cloudslang.content.amazon.actions.instances.StopInstancesAction method_name: execute diff --git a/content/io/cloudslang/amazon/aws/ec2/instances/terminate_instances.sl b/content/io/cloudslang/amazon/aws/ec2/instances/terminate_instances.sl index 1e7569dd02..9c45a8427e 100644 --- a/content/io/cloudslang/amazon/aws/ec2/instances/terminate_instances.sl +++ b/content/io/cloudslang/amazon/aws/ec2/instances/terminate_instances.sl @@ -111,7 +111,7 @@ operation: private: true java_action: - gav: 'io.cloudslang.content:cs-amazon:1.0.17' + gav: 'io.cloudslang.content:cs-amazon:1.0.18' class_name: io.cloudslang.content.amazon.actions.instances.TerminateInstancesAction method_name: execute diff --git a/content/io/cloudslang/amazon/aws/ec2/network/allocate_address.sl b/content/io/cloudslang/amazon/aws/ec2/network/allocate_address.sl index c08b4b9ec2..fa946fd6ae 100644 --- a/content/io/cloudslang/amazon/aws/ec2/network/allocate_address.sl +++ b/content/io/cloudslang/amazon/aws/ec2/network/allocate_address.sl @@ -116,7 +116,7 @@ operation: required: false java_action: - gav: 'io.cloudslang.content:cs-amazon:1.0.17' + gav: 'io.cloudslang.content:cs-amazon:1.0.18' class_name: io.cloudslang.content.amazon.actions.network.AllocateAddressAction method_name: execute diff --git a/content/io/cloudslang/amazon/aws/ec2/network/associate_address.sl b/content/io/cloudslang/amazon/aws/ec2/network/associate_address.sl index c4bbdf2109..441e9e38fc 100644 --- a/content/io/cloudslang/amazon/aws/ec2/network/associate_address.sl +++ b/content/io/cloudslang/amazon/aws/ec2/network/associate_address.sl @@ -179,7 +179,7 @@ operation: private: true java_action: - gav: 'io.cloudslang.content:cs-amazon:1.0.17' + gav: 'io.cloudslang.content:cs-amazon:1.0.18' class_name: io.cloudslang.content.amazon.actions.network.AssociateAddressAction method_name: execute diff --git a/content/io/cloudslang/amazon/aws/ec2/network/attach_network_interface.sl b/content/io/cloudslang/amazon/aws/ec2/network/attach_network_interface.sl index 2850656487..66e80a5f3f 100644 --- a/content/io/cloudslang/amazon/aws/ec2/network/attach_network_interface.sl +++ b/content/io/cloudslang/amazon/aws/ec2/network/attach_network_interface.sl @@ -125,7 +125,7 @@ operation: required: false java_action: - gav: 'io.cloudslang.content:cs-amazon:1.0.17' + gav: 'io.cloudslang.content:cs-amazon:1.0.18' class_name: io.cloudslang.content.amazon.actions.network.AttachNetworkInterfaceAction method_name: execute diff --git a/content/io/cloudslang/amazon/aws/ec2/network/create_network_interface.sl b/content/io/cloudslang/amazon/aws/ec2/network/create_network_interface.sl index 2200517a54..2d89a9e1ce 100644 --- a/content/io/cloudslang/amazon/aws/ec2/network/create_network_interface.sl +++ b/content/io/cloudslang/amazon/aws/ec2/network/create_network_interface.sl @@ -170,7 +170,7 @@ operation: private: true java_action: - gav: 'io.cloudslang.content:cs-amazon:1.0.17' + gav: 'io.cloudslang.content:cs-amazon:1.0.18' class_name: io.cloudslang.content.amazon.actions.network.CreateNetworkInterfaceAction method_name: execute diff --git a/content/io/cloudslang/amazon/aws/ec2/network/delete_network_interface.sl b/content/io/cloudslang/amazon/aws/ec2/network/delete_network_interface.sl index dba2456bad..2a84b832ab 100644 --- a/content/io/cloudslang/amazon/aws/ec2/network/delete_network_interface.sl +++ b/content/io/cloudslang/amazon/aws/ec2/network/delete_network_interface.sl @@ -114,7 +114,7 @@ operation: private: true java_action: - gav: 'io.cloudslang.content:cs-amazon:1.0.17' + gav: 'io.cloudslang.content:cs-amazon:1.0.18' class_name: io.cloudslang.content.amazon.actions.network.DeleteNetworkInterfaceAction method_name: execute diff --git a/content/io/cloudslang/amazon/aws/ec2/network/describe_network_interfaces.sl b/content/io/cloudslang/amazon/aws/ec2/network/describe_network_interfaces.sl index c9e6fdb5c2..9ff5e8a14d 100644 --- a/content/io/cloudslang/amazon/aws/ec2/network/describe_network_interfaces.sl +++ b/content/io/cloudslang/amazon/aws/ec2/network/describe_network_interfaces.sl @@ -513,7 +513,7 @@ operation: private: true java_action: - gav: 'io.cloudslang.content:cs-amazon:1.0.17' + gav: 'io.cloudslang.content:cs-amazon:1.0.18' class_name: io.cloudslang.content.amazon.actions.network.DescribeNetworkInterfacesAction method_name: execute diff --git a/content/io/cloudslang/amazon/aws/ec2/network/detach_network_interface.sl b/content/io/cloudslang/amazon/aws/ec2/network/detach_network_interface.sl index cd6802b82c..fd60fae24c 100644 --- a/content/io/cloudslang/amazon/aws/ec2/network/detach_network_interface.sl +++ b/content/io/cloudslang/amazon/aws/ec2/network/detach_network_interface.sl @@ -115,7 +115,7 @@ operation: required: false java_action: - gav: 'io.cloudslang.content:cs-amazon:1.0.17' + gav: 'io.cloudslang.content:cs-amazon:1.0.18' class_name: io.cloudslang.content.amazon.actions.network.DetachNetworkInterfaceAction method_name: execute diff --git a/content/io/cloudslang/amazon/aws/ec2/network/disassociate_address.sl b/content/io/cloudslang/amazon/aws/ec2/network/disassociate_address.sl index a43729d9eb..1ca6c84e70 100644 --- a/content/io/cloudslang/amazon/aws/ec2/network/disassociate_address.sl +++ b/content/io/cloudslang/amazon/aws/ec2/network/disassociate_address.sl @@ -126,7 +126,7 @@ operation: private: true java_action: - gav: 'io.cloudslang.content:cs-amazon:1.0.17' + gav: 'io.cloudslang.content:cs-amazon:1.0.18' class_name: io.cloudslang.content.amazon.actions.network.DisassociateAddressAction method_name: execute diff --git a/content/io/cloudslang/amazon/aws/ec2/regions/describe_regions.sl b/content/io/cloudslang/amazon/aws/ec2/regions/describe_regions.sl index 68bce09acf..fc60a7943c 100644 --- a/content/io/cloudslang/amazon/aws/ec2/regions/describe_regions.sl +++ b/content/io/cloudslang/amazon/aws/ec2/regions/describe_regions.sl @@ -122,7 +122,7 @@ operation: private: true java_action: - gav: 'io.cloudslang.content:cs-amazon:1.0.17' + gav: 'io.cloudslang.content:cs-amazon:1.0.18' class_name: io.cloudslang.content.amazon.actions.regions.DescribeRegionsAction method_name: execute diff --git a/content/io/cloudslang/amazon/aws/ec2/snapshots/create_snapshot_in_region.sl b/content/io/cloudslang/amazon/aws/ec2/snapshots/create_snapshot_in_region.sl index 9047da40e4..5a0495a989 100644 --- a/content/io/cloudslang/amazon/aws/ec2/snapshots/create_snapshot_in_region.sl +++ b/content/io/cloudslang/amazon/aws/ec2/snapshots/create_snapshot_in_region.sl @@ -116,7 +116,7 @@ operation: private: true java_action: - gav: 'io.cloudslang.content:cs-amazon:1.0.17' + gav: 'io.cloudslang.content:cs-amazon:1.0.18' class_name: io.cloudslang.content.amazon.actions.snapshots.CreateSnapshotAction method_name: execute diff --git a/content/io/cloudslang/amazon/aws/ec2/snapshots/delete_snapshot_in_region.sl b/content/io/cloudslang/amazon/aws/ec2/snapshots/delete_snapshot_in_region.sl index 912ead7798..7779053c5e 100644 --- a/content/io/cloudslang/amazon/aws/ec2/snapshots/delete_snapshot_in_region.sl +++ b/content/io/cloudslang/amazon/aws/ec2/snapshots/delete_snapshot_in_region.sl @@ -109,7 +109,7 @@ operation: private: true java_action: - gav: 'io.cloudslang.content:cs-amazon:1.0.17' + gav: 'io.cloudslang.content:cs-amazon:1.0.18' class_name: io.cloudslang.content.amazon.actions.snapshots.DeleteSnapshotAction method_name: execute diff --git a/content/io/cloudslang/amazon/aws/ec2/tags/create_tags.sl b/content/io/cloudslang/amazon/aws/ec2/tags/create_tags.sl index 72b2afb568..d76a3ba514 100644 --- a/content/io/cloudslang/amazon/aws/ec2/tags/create_tags.sl +++ b/content/io/cloudslang/amazon/aws/ec2/tags/create_tags.sl @@ -124,7 +124,7 @@ operation: private: true java_action: - gav: 'io.cloudslang.content:cs-amazon:1.0.17' + gav: 'io.cloudslang.content:cs-amazon:1.0.18' class_name: io.cloudslang.content.amazon.actions.tags.CreateTagsAction method_name: execute diff --git a/content/io/cloudslang/amazon/aws/ec2/tags/describe_tags.sl b/content/io/cloudslang/amazon/aws/ec2/tags/describe_tags.sl index 748c445684..858c140aa9 100644 --- a/content/io/cloudslang/amazon/aws/ec2/tags/describe_tags.sl +++ b/content/io/cloudslang/amazon/aws/ec2/tags/describe_tags.sl @@ -188,7 +188,7 @@ operation: private: true java_action: - gav: 'io.cloudslang.content:cs-amazon:1.0.17' + gav: 'io.cloudslang.content:cs-amazon:1.0.18' class_name: io.cloudslang.content.amazon.actions.tags.DescribeTagsAction method_name: execute diff --git a/content/io/cloudslang/amazon/aws/ec2/volumes/attach_volume_in_region.sl b/content/io/cloudslang/amazon/aws/ec2/volumes/attach_volume_in_region.sl index c56da8b93b..69675c9d7c 100644 --- a/content/io/cloudslang/amazon/aws/ec2/volumes/attach_volume_in_region.sl +++ b/content/io/cloudslang/amazon/aws/ec2/volumes/attach_volume_in_region.sl @@ -127,7 +127,7 @@ operation: private: true java_action: - gav: 'io.cloudslang.content:cs-amazon:1.0.17' + gav: 'io.cloudslang.content:cs-amazon:1.0.18' class_name: io.cloudslang.content.amazon.actions.volumes.AttachVolumeAction method_name: execute diff --git a/content/io/cloudslang/amazon/aws/ec2/volumes/create_volume.sl b/content/io/cloudslang/amazon/aws/ec2/volumes/create_volume.sl index 53e223ebe9..30fe4b775c 100644 --- a/content/io/cloudslang/amazon/aws/ec2/volumes/create_volume.sl +++ b/content/io/cloudslang/amazon/aws/ec2/volumes/create_volume.sl @@ -165,7 +165,7 @@ operation: required: false java_action: - gav: 'io.cloudslang.content:cs-amazon:1.0.17' + gav: 'io.cloudslang.content:cs-amazon:1.0.18' class_name: io.cloudslang.content.amazon.actions.volumes.CreateVolumeAction method_name: execute diff --git a/content/io/cloudslang/amazon/aws/ec2/volumes/delete_volume_in_region.sl b/content/io/cloudslang/amazon/aws/ec2/volumes/delete_volume_in_region.sl index 7562d5419c..0b1fef86e0 100644 --- a/content/io/cloudslang/amazon/aws/ec2/volumes/delete_volume_in_region.sl +++ b/content/io/cloudslang/amazon/aws/ec2/volumes/delete_volume_in_region.sl @@ -104,7 +104,7 @@ operation: private: true java_action: - gav: 'io.cloudslang.content:cs-amazon:1.0.17' + gav: 'io.cloudslang.content:cs-amazon:1.0.18' class_name: io.cloudslang.content.amazon.actions.volumes.DeleteVolume method_name: execute diff --git a/content/io/cloudslang/amazon/aws/ec2/volumes/describe_volumes.sl b/content/io/cloudslang/amazon/aws/ec2/volumes/describe_volumes.sl index ecd50a750e..a51de4e1f4 100644 --- a/content/io/cloudslang/amazon/aws/ec2/volumes/describe_volumes.sl +++ b/content/io/cloudslang/amazon/aws/ec2/volumes/describe_volumes.sl @@ -343,7 +343,7 @@ operation: private: true java_action: - gav: 'io.cloudslang.content:cs-amazon:1.0.17' + gav: 'io.cloudslang.content:cs-amazon:1.0.18' class_name: io.cloudslang.content.amazon.actions.volumes.DescribeVolumesAction method_name: execute diff --git a/content/io/cloudslang/amazon/aws/ec2/volumes/detach_volume_in_region.sl b/content/io/cloudslang/amazon/aws/ec2/volumes/detach_volume_in_region.sl index 105636f1cf..2bfdd462b7 100644 --- a/content/io/cloudslang/amazon/aws/ec2/volumes/detach_volume_in_region.sl +++ b/content/io/cloudslang/amazon/aws/ec2/volumes/detach_volume_in_region.sl @@ -131,7 +131,7 @@ operation: required: false java_action: - gav: 'io.cloudslang.content:cs-amazon:1.0.17' + gav: 'io.cloudslang.content:cs-amazon:1.0.18' class_name: io.cloudslang.content.amazon.actions.volumes.DetachVolumeAction method_name: execute From c6b03924551449002b0707c93670bf6a9ebb1da7 Mon Sep 17 00:00:00 2001 From: Lucian Revnic Date: Thu, 14 Jun 2018 13:10:50 +0300 Subject: [PATCH 25/25] small typo --- .../amazon/aws/cloudformation/examples/launch_stack.sl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 4e73aea023..f298275b15 100644 --- a/content/io/cloudslang/amazon/aws/cloudformation/examples/launch_stack.sl +++ b/content/io/cloudslang/amazon/aws/cloudformation/examples/launch_stack.sl @@ -145,7 +145,7 @@ flow: do: strings.string_equals: - first_string: '${stack_status}' - - second_string: CREATION_COMPLETE + - second_string: CREATE_COMPLETE navigate: - SUCCESS: list_stacks - FAILURE: add_numbers