1 tosca_definitions_version: tosca_simple_yaml_1_0
4 - https://raw.githubusercontent.com/cloudify-cosmo/aria-extension-cloudify/master/plugins/aws/plugin.yaml
9 derived_from: tosca.nodes.WebApplication
17 description: The HTTP web server port
21 description: AWS EC2 image id to use for the server
24 description: AWS EC2 instance type to use for the server
34 description: Path to the private key used to authenticate into the instance
39 type: aria.aws.nodes.ElasticIP
42 type: aria.aws.nodes.SecurityGroup
44 description: Security group for Hello World VM
48 from_port: { get_property: [ http_web_server, port ] }
49 to_port: { get_property: [ http_web_server, port ] }
52 from_port: { get_input: ssh_port }
53 to_port: { get_input: ssh_port }
56 type: aria.aws.nodes.Instance
58 image_id: { get_input: image_id }
59 instance_type: { get_input: instance_type }
60 name: aria-aws-hello-world-instance
62 key_name: { get_attribute: [ keypair, aws_resource_id ] }
64 - elastic_ip: elastic_ip
65 - security_group: security_group
69 type: aria.aws.nodes.KeyPair
71 private_key_path: { get_input: private_key_path }
76 port: { get_input: webserver_port }
83 primary: scripts/configure.sh
85 - "ssh.user > { get_input: ssh_username }"
86 - "ssh.key_filename > { get_input: private_key_path }"
87 - "ssh.address > { get_attribute: [ vm, public_ip_address ] }"
90 primary: scripts/start.sh
92 - "ssh.user > { get_input: ssh_username }"
93 - "ssh.key_filename > { get_input: private_key_path }"
94 - "ssh.address > { get_attribute: [ vm, public_ip_address ] }"
97 primary: scripts/stop.sh
99 - "ssh.user > { get_input: ssh_username }"
100 - "ssh.key_filename > { get_input: private_key_path }"
101 - "ssh.address > { get_attribute: [ vm, public_ip_address ] }"