@@ -3,74 +3,75 @@ module "wrapper" {
3
3
4
4
for_each = var. items
5
5
6
- create = try (each. value . create , var. defaults . create , true )
7
- name = try (each. value . name , var. defaults . name , " " )
8
- ami_ssm_parameter = try (each. value . ami_ssm_parameter , var. defaults . ami_ssm_parameter , " /aws/service/ami-amazon-linux-latest/amzn2-ami-hvm-x86_64-gp2" )
9
6
ami = try (each. value . ami , var. defaults . ami , null )
10
- ignore_ami_changes = try (each. value . ignore_ami_changes , var. defaults . ignore_ami_changes , false )
7
+ ami_ssm_parameter = try (each. value . ami_ssm_parameter , var. defaults . ami_ssm_parameter , " /aws/service/ami-amazon-linux-latest/amzn2-ami-hvm-x86_64-gp2 " )
11
8
associate_public_ip_address = try (each. value . associate_public_ip_address , var. defaults . associate_public_ip_address , null )
12
- maintenance_options = try (each. value . maintenance_options , var. defaults . maintenance_options , {})
13
9
availability_zone = try (each. value . availability_zone , var. defaults . availability_zone , null )
14
10
capacity_reservation_specification = try (each. value . capacity_reservation_specification , var. defaults . capacity_reservation_specification , {})
11
+ cpu_core_count = try (each. value . cpu_core_count , var. defaults . cpu_core_count , null )
15
12
cpu_credits = try (each. value . cpu_credits , var. defaults . cpu_credits , null )
13
+ cpu_options = try (each. value . cpu_options , var. defaults . cpu_options , {})
14
+ cpu_threads_per_core = try (each. value . cpu_threads_per_core , var. defaults . cpu_threads_per_core , null )
15
+ create = try (each. value . create , var. defaults . create , true )
16
+ create_iam_instance_profile = try (each. value . create_iam_instance_profile , var. defaults . create_iam_instance_profile , false )
17
+ create_spot_instance = try (each. value . create_spot_instance , var. defaults . create_spot_instance , false )
18
+ disable_api_stop = try (each. value . disable_api_stop , var. defaults . disable_api_stop , null )
16
19
disable_api_termination = try (each. value . disable_api_termination , var. defaults . disable_api_termination , null )
17
20
ebs_block_device = try (each. value . ebs_block_device , var. defaults . ebs_block_device , [])
18
21
ebs_optimized = try (each. value . ebs_optimized , var. defaults . ebs_optimized , null )
22
+ enable_volume_tags = try (each. value . enable_volume_tags , var. defaults . enable_volume_tags , true )
19
23
enclave_options_enabled = try (each. value . enclave_options_enabled , var. defaults . enclave_options_enabled , null )
20
24
ephemeral_block_device = try (each. value . ephemeral_block_device , var. defaults . ephemeral_block_device , [])
21
25
get_password_data = try (each. value . get_password_data , var. defaults . get_password_data , null )
22
26
hibernation = try (each. value . hibernation , var. defaults . hibernation , null )
23
27
host_id = try (each. value . host_id , var. defaults . host_id , null )
24
28
iam_instance_profile = try (each. value . iam_instance_profile , var. defaults . iam_instance_profile , null )
29
+ iam_role_description = try (each. value . iam_role_description , var. defaults . iam_role_description , null )
30
+ iam_role_name = try (each. value . iam_role_name , var. defaults . iam_role_name , null )
31
+ iam_role_path = try (each. value . iam_role_path , var. defaults . iam_role_path , null )
32
+ iam_role_permissions_boundary = try (each. value . iam_role_permissions_boundary , var. defaults . iam_role_permissions_boundary , null )
33
+ iam_role_policies = try (each. value . iam_role_policies , var. defaults . iam_role_policies , {})
34
+ iam_role_tags = try (each. value . iam_role_tags , var. defaults . iam_role_tags , {})
35
+ iam_role_use_name_prefix = try (each. value . iam_role_use_name_prefix , var. defaults . iam_role_use_name_prefix , true )
36
+ ignore_ami_changes = try (each. value . ignore_ami_changes , var. defaults . ignore_ami_changes , false )
25
37
instance_initiated_shutdown_behavior = try (each. value . instance_initiated_shutdown_behavior , var. defaults . instance_initiated_shutdown_behavior , null )
26
- instance_type = try (each. value . instance_type , var. defaults . instance_type , " t3.micro" )
27
38
instance_tags = try (each. value . instance_tags , var. defaults . instance_tags , {})
39
+ instance_type = try (each. value . instance_type , var. defaults . instance_type , " t3.micro" )
28
40
ipv6_address_count = try (each. value . ipv6_address_count , var. defaults . ipv6_address_count , null )
29
41
ipv6_addresses = try (each. value . ipv6_addresses , var. defaults . ipv6_addresses , null )
30
42
key_name = try (each. value . key_name , var. defaults . key_name , null )
31
43
launch_template = try (each. value . launch_template , var. defaults . launch_template , {})
44
+ maintenance_options = try (each. value . maintenance_options , var. defaults . maintenance_options , {})
32
45
metadata_options = try (each. value . metadata_options , var. defaults . metadata_options , {
33
46
" http_endpoint" = " enabled"
34
47
" http_put_response_hop_limit" = 1
35
48
" http_tokens" = " optional"
36
49
})
37
50
monitoring = try (each. value . monitoring , var. defaults . monitoring , null )
51
+ name = try (each. value . name , var. defaults . name , " " )
38
52
network_interface = try (each. value . network_interface , var. defaults . network_interface , [])
39
53
placement_group = try (each. value . placement_group , var. defaults . placement_group , null )
54
+ private_dns_name_options = try (each. value . private_dns_name_options , var. defaults . private_dns_name_options , {})
40
55
private_ip = try (each. value . private_ip , var. defaults . private_ip , null )
56
+ putin_khuylo = try (each. value . putin_khuylo , var. defaults . putin_khuylo , true )
41
57
root_block_device = try (each. value . root_block_device , var. defaults . root_block_device , [])
42
58
secondary_private_ips = try (each. value . secondary_private_ips , var. defaults . secondary_private_ips , null )
43
59
source_dest_check = try (each. value . source_dest_check , var. defaults . source_dest_check , null )
60
+ spot_block_duration_minutes = try (each. value . spot_block_duration_minutes , var. defaults . spot_block_duration_minutes , null )
61
+ spot_instance_interruption_behavior = try (each. value . spot_instance_interruption_behavior , var. defaults . spot_instance_interruption_behavior , null )
62
+ spot_launch_group = try (each. value . spot_launch_group , var. defaults . spot_launch_group , null )
63
+ spot_price = try (each. value . spot_price , var. defaults . spot_price , null )
64
+ spot_type = try (each. value . spot_type , var. defaults . spot_type , null )
65
+ spot_valid_from = try (each. value . spot_valid_from , var. defaults . spot_valid_from , null )
66
+ spot_valid_until = try (each. value . spot_valid_until , var. defaults . spot_valid_until , null )
67
+ spot_wait_for_fulfillment = try (each. value . spot_wait_for_fulfillment , var. defaults . spot_wait_for_fulfillment , null )
44
68
subnet_id = try (each. value . subnet_id , var. defaults . subnet_id , null )
45
69
tags = try (each. value . tags , var. defaults . tags , {})
46
70
tenancy = try (each. value . tenancy , var. defaults . tenancy , null )
71
+ timeouts = try (each. value . timeouts , var. defaults . timeouts , {})
47
72
user_data = try (each. value . user_data , var. defaults . user_data , null )
48
73
user_data_base64 = try (each. value . user_data_base64 , var. defaults . user_data_base64 , null )
49
74
user_data_replace_on_change = try (each. value . user_data_replace_on_change , var. defaults . user_data_replace_on_change , null )
50
75
volume_tags = try (each. value . volume_tags , var. defaults . volume_tags , {})
51
- enable_volume_tags = try (each. value . enable_volume_tags , var. defaults . enable_volume_tags , true )
52
76
vpc_security_group_ids = try (each. value . vpc_security_group_ids , var. defaults . vpc_security_group_ids , null )
53
- timeouts = try (each. value . timeouts , var. defaults . timeouts , {})
54
- cpu_options = try (each. value . cpu_options , var. defaults . cpu_options , {})
55
- cpu_core_count = try (each. value . cpu_core_count , var. defaults . cpu_core_count , null )
56
- cpu_threads_per_core = try (each. value . cpu_threads_per_core , var. defaults . cpu_threads_per_core , null )
57
- create_spot_instance = try (each. value . create_spot_instance , var. defaults . create_spot_instance , false )
58
- spot_price = try (each. value . spot_price , var. defaults . spot_price , null )
59
- spot_wait_for_fulfillment = try (each. value . spot_wait_for_fulfillment , var. defaults . spot_wait_for_fulfillment , null )
60
- spot_type = try (each. value . spot_type , var. defaults . spot_type , null )
61
- spot_launch_group = try (each. value . spot_launch_group , var. defaults . spot_launch_group , null )
62
- spot_block_duration_minutes = try (each. value . spot_block_duration_minutes , var. defaults . spot_block_duration_minutes , null )
63
- spot_instance_interruption_behavior = try (each. value . spot_instance_interruption_behavior , var. defaults . spot_instance_interruption_behavior , null )
64
- spot_valid_until = try (each. value . spot_valid_until , var. defaults . spot_valid_until , null )
65
- spot_valid_from = try (each. value . spot_valid_from , var. defaults . spot_valid_from , null )
66
- disable_api_stop = try (each. value . disable_api_stop , var. defaults . disable_api_stop , null )
67
- putin_khuylo = try (each. value . putin_khuylo , var. defaults . putin_khuylo , true )
68
- create_iam_instance_profile = try (each. value . create_iam_instance_profile , var. defaults . create_iam_instance_profile , false )
69
- iam_role_name = try (each. value . iam_role_name , var. defaults . iam_role_name , null )
70
- iam_role_use_name_prefix = try (each. value . iam_role_use_name_prefix , var. defaults . iam_role_use_name_prefix , true )
71
- iam_role_path = try (each. value . iam_role_path , var. defaults . iam_role_path , null )
72
- iam_role_description = try (each. value . iam_role_description , var. defaults . iam_role_description , null )
73
- iam_role_permissions_boundary = try (each. value . iam_role_permissions_boundary , var. defaults . iam_role_permissions_boundary , null )
74
- iam_role_policies = try (each. value . iam_role_policies , var. defaults . iam_role_policies , {})
75
- iam_role_tags = try (each. value . iam_role_tags , var. defaults . iam_role_tags , {})
76
77
}
0 commit comments