Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #266 from cloudify-cosmo/dev
adding elastic ip stuff
- Loading branch information
Showing
5 changed files
with
76 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
tosca_definitions_version: cloudify_dsl_1_3 | ||
imports: | ||
- http://www.getcloudify.org/spec/cloudify/4.5/types.yaml | ||
- plugin:cloudify-aws-plugin | ||
inputs: | ||
aws_access_key_id: | ||
type: string | ||
description: YOUR AWS ACCESS KEY ID | ||
default: { get_secret: aws_access_key_id } | ||
aws_secret_access_key: | ||
type: string | ||
description: YOUR AWS SECRET ACCESS KEY | ||
default: { get_secret: aws_secret_access_key } | ||
region_name: | ||
type: string | ||
description: YOUR AWS Region | ||
default: { get_secret: aws_region_name } | ||
ec2_region_endpoint: | ||
type: string | ||
description: YOUR AWS Region endpoint | ||
default: { get_secret: ec2_region_endpoint } | ||
availability_zone: | ||
type: string | ||
description: Your AWS Region availability_zone. | ||
default: { get_secret: aws_availability_zone } | ||
use_external_ip: | ||
type: boolean | ||
default: False | ||
existing_ip: | ||
type: string | ||
default: '' | ||
subnet_id: | ||
type: string | ||
dsl_definitions: | ||
client_config: &client_config | ||
aws_access_key_id: { get_input: aws_access_key_id } | ||
aws_secret_access_key: { get_input: aws_secret_access_key } | ||
region_name: { get_input: aws_region_name } | ||
node_templates: | ||
nic: | ||
type: cloudify.nodes.aws.ec2.Interface | ||
properties: | ||
client_config: *client_config | ||
resource_config: | ||
kwargs: | ||
Description: Test EIP/NICs. | ||
SubnetId: { get_input: subnet_id } | ||
eip: | ||
type: cloudify.nodes.aws.ec2.ElasticIP | ||
properties: | ||
client_config: *client_config | ||
use_external_resource: { get_input: use_external_ip } | ||
resource_id: { get_input: existing_ip } | ||
relationships: | ||
- type: cloudify.relationships.depends_on | ||
target: nic | ||
outputs: | ||
nic_id: | ||
value: { get_attribute: [ nic, aws_resource_id ] } | ||
eip_id: | ||
value: { get_attribute: [ eip, aws_resource_id ] } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters