Class: Ansible::Ruby::Modules::Ec2
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Ec2
- Defined in:
- lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2.rb
Instance Method Summary collapse
-
#assign_public_ip ⇒ :yes, ...
When provisioning within vpc, assign a public IP address.
-
#count ⇒ Integer?
Number of instances to launch.
-
#count_tag ⇒ Array<String>, ...
Used with ‘exact_count’ to determine how many nodes based on a specific tag criteria should be running.
-
#ebs_optimized ⇒ String?
Whether instance is using optimized EBS volumes, see U(docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSOptimized.html).
-
#exact_count ⇒ Integer?
An integer value which indicates how many instances that match the ‘count_tag’ parameter should be running.
-
#group ⇒ Array<String>, ...
Security group (or list of groups) to use with the instance.
-
#group_id ⇒ String?
Security group id (or list of ids) to use with the instance.
-
#image ⇒ String
I(ami) ID to use for the instance.
-
#instance_ids ⇒ Array<String>, ...
List of instance ids, currently used for states: absent, running, stopped.
-
#instance_profile_name ⇒ Object?
Name of the IAM instance profile to use.
-
#instance_tags ⇒ Hash?
A hash/dictionary of tags to add to the new instance or for starting/stopping instance by tag; ‘“key”:“value”’ and ‘“key”:“value”,“key”:“value”’.
-
#instance_type ⇒ String
Instance type to use for the instance, see U(docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html).
-
#kernel ⇒ Object?
Kernel I(eki) to use for the instance.
-
#key_name ⇒ String?
Key pair to use on the instance.
-
#monitoring ⇒ :yes, ...
Enable detailed monitoring (CloudWatch) for instance.
-
#network_interfaces ⇒ Array<String>, ...
A list of existing network interfaces to attach to the instance at launch.
-
#placement_group ⇒ Object?
Placement group for the instance when using EC2 Clustered Compute.
-
#private_ip ⇒ Object?
The private ip address to assign the instance (from the vpc subnet).
-
#ramdisk ⇒ Object?
Ramdisk I(eri) to use for the instance.
-
#region ⇒ String?
The AWS region to use.
-
#source_dest_check ⇒ Boolean?
Enable or Disable the Source/Destination checks (for NAT instances and Virtual Routers).
-
#spot_launch_group ⇒ String?
Launch group for spot request, see U(docs.aws.amazon.com/AWSEC2/latest/UserGuide/how-spot-instances-work.html#spot-launch-group).
-
#spot_price ⇒ Float?
Maximum spot price to bid, If not set a regular on-demand instance is requested.
-
#spot_type ⇒ :"one-time", ...
Type of spot request; one of “one-time” or “persistent”.
-
#spot_wait_timeout ⇒ Integer?
How long to wait for the spot instance request to be fulfilled.
-
#state ⇒ :present, ...
Create or terminate instances.
-
#tenancy ⇒ :default, ...
An instance with a tenancy of “dedicated” runs on single-tenant hardware and can only be launched into a VPC.
-
#termination_protection ⇒ Boolean?
Enable or Disable the Termination Protection.
-
#user_data ⇒ Object?
Opaque blob of data which is made available to the ec2 instance.
-
#volumes ⇒ Array<Hash>, ...
A list of hash/dictionaries of volumes to add to the new instance; ‘[“key”:“value”]’; keys allowed are - device_name (str; required), delete_on_termination (bool; False), device_type (deprecated), ephemeral (str), encrypted (bool; False), snapshot (str), volume_type (str), iops (int) - device_type is deprecated use volume_type, iops must be set when volume_type=‘io1’, ephemeral and snapshot are mutually exclusive.
-
#vpc_subnet_id ⇒ String?
The subnet ID in which to launch the instance (VPC).
-
#wait ⇒ :yes, ...
Wait for the instance to be ‘running’ before returning.
-
#wait_timeout ⇒ Integer?
How long before wait gives up, in seconds.
-
#zone ⇒ Object?
AWS availability zone in which to launch the instance.
Methods inherited from Base
Methods inherited from Ansible::Ruby::Models::Base
attr_options, attribute, #initialize, #to_h, validates
Constructor Details
This class inherits a constructor from Ansible::Ruby::Models::Base
Instance Method Details
#assign_public_ip ⇒ :yes, ...
89 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2.rb', line 89 attribute :assign_public_ip |
#count ⇒ Integer?
67 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2.rb', line 67 attribute :count |
#count_tag ⇒ Array<String>, ...
127 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2.rb', line 127 attribute :count_tag |
#ebs_optimized ⇒ String?
119 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2.rb', line 119 attribute :ebs_optimized |
#exact_count ⇒ Integer?
123 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2.rb', line 123 attribute :exact_count |
#group ⇒ Array<String>, ...
14 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2.rb', line 14 attribute :group |
#group_id ⇒ String?
18 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2.rb', line 18 attribute :group_id |
#image ⇒ String
45 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2.rb', line 45 attribute :image |
#instance_ids ⇒ Array<String>, ...
99 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2.rb', line 99 attribute :instance_ids |
#instance_profile_name ⇒ Object?
96 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2.rb', line 96 attribute :instance_profile_name |
#instance_tags ⇒ Hash?
78 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2.rb', line 78 attribute :instance_tags |
#instance_type ⇒ String
29 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2.rb', line 29 attribute :instance_type |
#kernel ⇒ Object?
49 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2.rb', line 49 attribute :kernel |
#key_name ⇒ String?
10 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2.rb', line 10 attribute :key_name |
#monitoring ⇒ :yes, ...
71 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2.rb', line 71 attribute :monitoring |
#network_interfaces ⇒ Array<String>, ...
131 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2.rb', line 131 attribute :network_interfaces |
#placement_group ⇒ Object?
82 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2.rb', line 82 attribute :placement_group |
#private_ip ⇒ Object?
93 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2.rb', line 93 attribute :private_ip |
#ramdisk ⇒ Object?
52 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2.rb', line 52 attribute :ramdisk |
#region ⇒ String?
22 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2.rb', line 22 attribute :region |
#source_dest_check ⇒ Boolean?
103 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2.rb', line 103 attribute :source_dest_check |
#spot_launch_group ⇒ String?
135 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2.rb', line 135 attribute :spot_launch_group |
#spot_price ⇒ Float?
37 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2.rb', line 37 attribute :spot_price |
#spot_type ⇒ :"one-time", ...
41 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2.rb', line 41 attribute :spot_type |
#spot_wait_timeout ⇒ Integer?
63 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2.rb', line 63 attribute :spot_wait_timeout |
#state ⇒ :present, ...
111 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2.rb', line 111 attribute :state |
#tenancy ⇒ :default, ...
33 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2.rb', line 33 attribute :tenancy |
#termination_protection ⇒ Boolean?
107 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2.rb', line 107 attribute :termination_protection |
#user_data ⇒ Object?
75 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2.rb', line 75 attribute :user_data |
#volumes ⇒ Array<Hash>, ...
115 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2.rb', line 115 attribute :volumes |
#vpc_subnet_id ⇒ String?
85 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2.rb', line 85 attribute :vpc_subnet_id |
#wait ⇒ :yes, ...
55 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2.rb', line 55 attribute :wait |
#wait_timeout ⇒ Integer?
59 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2.rb', line 59 attribute :wait_timeout |
#zone ⇒ Object?
26 |
# File 'lib/ansible/ruby/modules/generated/core/cloud/amazon/ec2.rb', line 26 attribute :zone |