Top Level Namespace
Defined Under Namespace
Modules: Terrafied
Classes: Hash
Class Method Summary
collapse
-
.add_resource_alias(type) ⇒ Object
-
.aws_ami(name, spec = {}) ⇒ Object
-
.aws_ami_copy(name, spec = {}) ⇒ Object
-
.aws_ami_from_instance(name, spec = {}) ⇒ Object
-
.aws_api_gateway_account(name, spec = {}) ⇒ Object
-
.aws_api_gateway_api_key(name, spec = {}) ⇒ Object
-
.aws_api_gateway_authorizer(name, spec = {}) ⇒ Object
-
.aws_api_gateway_deployment(name, spec = {}) ⇒ Object
-
.aws_api_gateway_integration(name, spec = {}) ⇒ Object
-
.aws_api_gateway_integration_response(name, spec = {}) ⇒ Object
-
.aws_api_gateway_method(name, spec = {}) ⇒ Object
-
.aws_api_gateway_method_response(name, spec = {}) ⇒ Object
-
.aws_api_gateway_model(name, spec = {}) ⇒ Object
-
.aws_api_gateway_resource(name, spec = {}) ⇒ Object
-
.aws_api_gateway_rest_api(name, spec = {}) ⇒ Object
-
.aws_app_cookie_stickiness_policy(name, spec = {}) ⇒ Object
-
.aws_autoscaling_group(name, spec = {}) ⇒ Object
-
.aws_autoscaling_lifecycle_hook(name, spec = {}) ⇒ Object
-
.aws_autoscaling_notification(name, spec = {}) ⇒ Object
-
.aws_autoscaling_policy(name, spec = {}) ⇒ Object
-
.aws_autoscaling_schedule(name, spec = {}) ⇒ Object
-
.aws_cloudformation_stack(name, spec = {}) ⇒ Object
-
.aws_cloudfront_distribution(name, spec = {}) ⇒ Object
-
.aws_cloudfront_origin_access_identity(name, spec = {}) ⇒ Object
-
.aws_cloudtrail(name, spec = {}) ⇒ Object
-
.aws_cloudwatch_event_rule(name, spec = {}) ⇒ Object
-
.aws_cloudwatch_event_target(name, spec = {}) ⇒ Object
-
.aws_cloudwatch_log_group(name, spec = {}) ⇒ Object
-
.aws_cloudwatch_log_metric_filter(name, spec = {}) ⇒ Object
-
.aws_cloudwatch_log_subscription_filter(name, spec = {}) ⇒ Object
-
.aws_cloudwatch_metric_alarm(name, spec = {}) ⇒ Object
-
.aws_codecommit_repository(name, spec = {}) ⇒ Object
-
.aws_codedeploy_app(name, spec = {}) ⇒ Object
-
.aws_codedeploy_deployment_group(name, spec = {}) ⇒ Object
-
.aws_customer_gateway(name, spec = {}) ⇒ Object
-
.aws_db_event_subscription(name, spec = {}) ⇒ Object
-
.aws_db_instance(name, spec = {}) ⇒ Object
-
.aws_db_option_group(name, spec = {}) ⇒ Object
-
.aws_db_parameter_group(name, spec = {}) ⇒ Object
-
.aws_db_security_group(name, spec = {}) ⇒ Object
-
.aws_db_subnet_group(name, spec = {}) ⇒ Object
-
.aws_default_network_acl(name, spec = {}) ⇒ Object
-
.aws_directory_service_directory(name, spec = {}) ⇒ Object
-
.aws_dynamodb_table(name, spec = {}) ⇒ Object
-
.aws_ebs_volume(name, spec = {}) ⇒ Object
-
.aws_ecr_repository(name, spec = {}) ⇒ Object
-
.aws_ecr_repository_policy(name, spec = {}) ⇒ Object
-
.aws_ecs_cluster(name, spec = {}) ⇒ Object
-
.aws_ecs_service(name, spec = {}) ⇒ Object
-
.aws_ecs_task_definition(name, spec = {}) ⇒ Object
-
.aws_efs_file_system(name, spec = {}) ⇒ Object
-
.aws_efs_mount_target(name, spec = {}) ⇒ Object
-
.aws_eip(name, spec = {}) ⇒ Object
-
.aws_eip_association(name, spec = {}) ⇒ Object
-
.aws_elastic_beanstalk_application(name, spec = {}) ⇒ Object
-
.aws_elastic_beanstalk_configuration_template(name, spec = {}) ⇒ Object
-
.aws_elastic_beanstalk_environment(name, spec = {}) ⇒ Object
-
.aws_elasticache_cluster(name, spec = {}) ⇒ Object
-
.aws_elasticache_parameter_group(name, spec = {}) ⇒ Object
-
.aws_elasticache_security_group(name, spec = {}) ⇒ Object
-
.aws_elasticache_subnet_group(name, spec = {}) ⇒ Object
-
.aws_elasticsearch_domain(name, spec = {}) ⇒ Object
-
.aws_elb(name, spec = {}) ⇒ Object
-
.aws_flow_log(name, spec = {}) ⇒ Object
-
.aws_glacier_vault(name, spec = {}) ⇒ Object
-
.aws_iam_access_key(name, spec = {}) ⇒ Object
-
.aws_iam_account_password_policy(name, spec = {}) ⇒ Object
-
.aws_iam_group(name, spec = {}) ⇒ Object
-
.aws_iam_group_membership(name, spec = {}) ⇒ Object
-
.aws_iam_group_policy(name, spec = {}) ⇒ Object
-
.aws_iam_instance_profile(name, spec = {}) ⇒ Object
-
.aws_iam_policy(name, spec = {}) ⇒ Object
-
.aws_iam_policy_attachment(name, spec = {}) ⇒ Object
-
.aws_iam_role(name, spec = {}) ⇒ Object
-
.aws_iam_role_policy(name, spec = {}) ⇒ Object
-
.aws_iam_role_policy_attachment(name, spec = {}) ⇒ Object
-
.aws_iam_saml_provider(name, spec = {}) ⇒ Object
-
.aws_iam_server_certificate(name, spec = {}) ⇒ Object
-
.aws_iam_user(name, spec = {}) ⇒ Object
-
.aws_iam_user_policy(name, spec = {}) ⇒ Object
-
.aws_iam_user_ssh_key(name, spec = {}) ⇒ Object
-
.aws_instance(name, spec = {}) ⇒ Object
-
.aws_internet_gateway(name, spec = {}) ⇒ Object
-
.aws_key_pair(name, spec = {}) ⇒ Object
-
.aws_kinesis_firehose_delivery_stream(name, spec = {}) ⇒ Object
-
.aws_kinesis_stream(name, spec = {}) ⇒ Object
-
.aws_kms_alias(name, spec = {}) ⇒ Object
-
.aws_kms_key(name, spec = {}) ⇒ Object
-
.aws_lambda_alias(name, spec = {}) ⇒ Object
-
.aws_lambda_event_source_mapping(name, spec = {}) ⇒ Object
-
.aws_lambda_function(name, spec = {}) ⇒ Object
-
.aws_lambda_permission(name, spec = {}) ⇒ Object
-
.aws_launch_configuration(name, spec = {}) ⇒ Object
-
.aws_lb_cookie_stickiness_policy(name, spec = {}) ⇒ Object
-
.aws_main_route_table_association(name, spec = {}) ⇒ Object
-
.aws_nat_gateway(name, spec = {}) ⇒ Object
-
.aws_network_acl(name, spec = {}) ⇒ Object
-
.aws_network_acl_rule(name, spec = {}) ⇒ Object
-
.aws_network_interface(name, spec = {}) ⇒ Object
-
.aws_opsworks_application(name, spec = {}) ⇒ Object
-
.aws_opsworks_custom_layer(name, spec = {}) ⇒ Object
-
.aws_opsworks_ganglia_layer(name, spec = {}) ⇒ Object
-
.aws_opsworks_haproxy_layer(name, spec = {}) ⇒ Object
-
.aws_opsworks_instance(name, spec = {}) ⇒ Object
-
.aws_opsworks_java_app_layer(name, spec = {}) ⇒ Object
-
.aws_opsworks_memcached_layer(name, spec = {}) ⇒ Object
-
.aws_opsworks_mysql_layer(name, spec = {}) ⇒ Object
-
.aws_opsworks_nodejs_app_layer(name, spec = {}) ⇒ Object
-
.aws_opsworks_php_app_layer(name, spec = {}) ⇒ Object
-
.aws_opsworks_rails_app_layer(name, spec = {}) ⇒ Object
-
.aws_opsworks_stack(name, spec = {}) ⇒ Object
-
.aws_opsworks_static_web_layer(name, spec = {}) ⇒ Object
-
.aws_placement_group(name, spec = {}) ⇒ Object
-
.aws_proxy_protocol_policy(name, spec = {}) ⇒ Object
-
.aws_rds_cluster(name, spec = {}) ⇒ Object
-
.aws_rds_cluster_instance(name, spec = {}) ⇒ Object
-
.aws_redshift_cluster(name, spec = {}) ⇒ Object
-
.aws_redshift_parameter_group(name, spec = {}) ⇒ Object
-
.aws_redshift_security_group(name, spec = {}) ⇒ Object
-
.aws_redshift_subnet_group(name, spec = {}) ⇒ Object
-
.aws_route(name, spec = {}) ⇒ Object
-
.aws_route53_delegation_set(name, spec = {}) ⇒ Object
-
.aws_route53_health_check(name, spec = {}) ⇒ Object
-
.aws_route53_record(name, spec = {}) ⇒ Object
-
.aws_route53_zone(name, spec = {}) ⇒ Object
-
.aws_route53_zone_association(name, spec = {}) ⇒ Object
-
.aws_route_table(name, spec = {}) ⇒ Object
-
.aws_route_table_association(name, spec = {}) ⇒ Object
-
.aws_s3_bucket(name, spec = {}) ⇒ Object
-
.aws_s3_bucket_notification(name, spec = {}) ⇒ Object
-
.aws_s3_bucket_object(name, spec = {}) ⇒ Object
-
.aws_security_group(name, spec = {}) ⇒ Object
-
.aws_security_group_rule(name, spec = {}) ⇒ Object
-
.aws_sns_topic(name, spec = {}) ⇒ Object
-
.aws_sns_topic_subscription(name, spec = {}) ⇒ Object
-
.aws_spot_instance_request(name, spec = {}) ⇒ Object
-
.aws_sqs_queue(name, spec = {}) ⇒ Object
-
.aws_subnet(name, spec = {}) ⇒ Object
-
.aws_volume_attachment(name, spec = {}) ⇒ Object
-
.aws_vpc(name, spec = {}) ⇒ Object
-
.aws_vpc_dhcp_options(name, spec = {}) ⇒ Object
-
.aws_vpc_dhcp_options_association(name, spec = {}) ⇒ Object
-
.aws_vpc_endpoint(name, spec = {}) ⇒ Object
-
.aws_vpc_peering_connection(name, spec = {}) ⇒ Object
-
.aws_vpn_connection(name, spec = {}) ⇒ Object
-
.aws_vpn_connection_route(name, spec = {}) ⇒ Object
-
.aws_vpn_gateway(name, spec = {}) ⇒ Object
-
.id_of(type, name) ⇒ Object
-
.output_of(type, name, *values) ⇒ Object
-
.provider(name, spec = {}) ⇒ Object
-
.resource(type, name, spec = {}) ⇒ Object
-
.use_resource_shortcuts! ⇒ Object
Class Method Details
.add_resource_alias(type) ⇒ Object
26
27
28
29
30
|
# File 'lib/terrafied/builder.rb', line 26
def add_resource_alias(type)
define_singleton_method type.to_sym do |name, spec={}|
resource(type, name, spec)
end
end
|
.aws_ami(name, spec = {}) ⇒ Object
151
152
153
154
155
|
# File 'lib/terrafied/resource_shortcuts.rb', line 151
def aws_ami(name, spec={})
default_spec = { name: name }
resource 'aws_ami', name,
default_spec.deep_merge(spec)
end
|
.aws_ami_copy(name, spec = {}) ⇒ Object
157
158
159
160
161
|
# File 'lib/terrafied/resource_shortcuts.rb', line 157
def aws_ami_copy(name, spec={})
default_spec = { name: name }
resource 'aws_ami_copy', name,
default_spec.deep_merge(spec)
end
|
.aws_ami_from_instance(name, spec = {}) ⇒ Object
163
164
165
166
167
|
# File 'lib/terrafied/resource_shortcuts.rb', line 163
def aws_ami_from_instance(name, spec={})
default_spec = { name: name }
resource 'aws_ami_from_instance', name,
default_spec.deep_merge(spec)
end
|
.aws_api_gateway_account(name, spec = {}) ⇒ Object
13
14
15
16
17
|
# File 'lib/terrafied/resource_shortcuts.rb', line 13
def aws_api_gateway_account(name, spec={})
default_spec = { name: name }
resource 'aws_api_gateway_account', name,
default_spec.deep_merge(spec)
end
|
.aws_api_gateway_api_key(name, spec = {}) ⇒ Object
19
20
21
22
23
|
# File 'lib/terrafied/resource_shortcuts.rb', line 19
def aws_api_gateway_api_key(name, spec={})
default_spec = { name: name }
resource 'aws_api_gateway_api_key', name,
default_spec.deep_merge(spec)
end
|
.aws_api_gateway_authorizer(name, spec = {}) ⇒ Object
25
26
27
28
29
|
# File 'lib/terrafied/resource_shortcuts.rb', line 25
def aws_api_gateway_authorizer(name, spec={})
default_spec = { name: name }
resource 'aws_api_gateway_authorizer', name,
default_spec.deep_merge(spec)
end
|
.aws_api_gateway_deployment(name, spec = {}) ⇒ Object
31
32
33
|
# File 'lib/terrafied/resource_shortcuts.rb', line 31
def aws_api_gateway_deployment(name, spec={})
resource 'aws_api_gateway_deployment', name, spec
end
|
.aws_api_gateway_integration(name, spec = {}) ⇒ Object
35
36
37
|
# File 'lib/terrafied/resource_shortcuts.rb', line 35
def aws_api_gateway_integration(name, spec={})
resource 'aws_api_gateway_integration', name, spec
end
|
.aws_api_gateway_integration_response(name, spec = {}) ⇒ Object
39
40
41
|
# File 'lib/terrafied/resource_shortcuts.rb', line 39
def aws_api_gateway_integration_response(name, spec={})
resource 'aws_api_gateway_integration_response', name, spec
end
|
.aws_api_gateway_method(name, spec = {}) ⇒ Object
43
44
45
|
# File 'lib/terrafied/resource_shortcuts.rb', line 43
def aws_api_gateway_method(name, spec={})
resource 'aws_api_gateway_method', name, spec
end
|
.aws_api_gateway_method_response(name, spec = {}) ⇒ Object
47
48
49
|
# File 'lib/terrafied/resource_shortcuts.rb', line 47
def aws_api_gateway_method_response(name, spec={})
resource 'aws_api_gateway_method_response', name, spec
end
|
.aws_api_gateway_model(name, spec = {}) ⇒ Object
51
52
53
54
55
|
# File 'lib/terrafied/resource_shortcuts.rb', line 51
def aws_api_gateway_model(name, spec={})
default_spec = { name: name }
resource 'aws_api_gateway_model', name,
default_spec.deep_merge(spec)
end
|
.aws_api_gateway_resource(name, spec = {}) ⇒ Object
57
58
59
|
# File 'lib/terrafied/resource_shortcuts.rb', line 57
def aws_api_gateway_resource(name, spec={})
resource 'aws_api_gateway_resource', name, spec
end
|
.aws_api_gateway_rest_api(name, spec = {}) ⇒ Object
61
62
63
64
65
|
# File 'lib/terrafied/resource_shortcuts.rb', line 61
def aws_api_gateway_rest_api(name, spec={})
default_spec = { name: name }
resource 'aws_api_gateway_rest_api', name,
default_spec.deep_merge(spec)
end
|
.aws_app_cookie_stickiness_policy(name, spec = {}) ⇒ Object
169
170
171
172
173
|
# File 'lib/terrafied/resource_shortcuts.rb', line 169
def aws_app_cookie_stickiness_policy(name, spec={})
default_spec = { name: name }
resource 'aws_app_cookie_stickiness_policy', name,
default_spec.deep_merge(spec)
end
|
.aws_autoscaling_group(name, spec = {}) ⇒ Object
175
176
177
178
179
|
# File 'lib/terrafied/resource_shortcuts.rb', line 175
def aws_autoscaling_group(name, spec={})
default_spec = { name: name }
resource 'aws_autoscaling_group', name,
default_spec.deep_merge(spec)
end
|
.aws_autoscaling_lifecycle_hook(name, spec = {}) ⇒ Object
181
182
183
184
185
|
# File 'lib/terrafied/resource_shortcuts.rb', line 181
def aws_autoscaling_lifecycle_hook(name, spec={})
default_spec = { name: name }
resource 'aws_autoscaling_lifecycle_hook', name,
default_spec.deep_merge(spec)
end
|
.aws_autoscaling_notification(name, spec = {}) ⇒ Object
187
188
189
|
# File 'lib/terrafied/resource_shortcuts.rb', line 187
def aws_autoscaling_notification(name, spec={})
resource 'aws_autoscaling_notification', name, spec
end
|
.aws_autoscaling_policy(name, spec = {}) ⇒ Object
191
192
193
194
195
|
# File 'lib/terrafied/resource_shortcuts.rb', line 191
def aws_autoscaling_policy(name, spec={})
default_spec = { name: name }
resource 'aws_autoscaling_policy', name,
default_spec.deep_merge(spec)
end
|
.aws_autoscaling_schedule(name, spec = {}) ⇒ Object
197
198
199
|
# File 'lib/terrafied/resource_shortcuts.rb', line 197
def aws_autoscaling_schedule(name, spec={})
resource 'aws_autoscaling_schedule', name, spec
end
|
67
68
69
70
71
|
# File 'lib/terrafied/resource_shortcuts.rb', line 67
def aws_cloudformation_stack(name, spec={})
default_spec = { name: name }
resource 'aws_cloudformation_stack', name,
default_spec.deep_merge(spec)
end
|
.aws_cloudfront_distribution(name, spec = {}) ⇒ Object
73
74
75
|
# File 'lib/terrafied/resource_shortcuts.rb', line 73
def aws_cloudfront_distribution(name, spec={})
resource 'aws_cloudfront_distribution', name, spec
end
|
.aws_cloudfront_origin_access_identity(name, spec = {}) ⇒ Object
77
78
79
|
# File 'lib/terrafied/resource_shortcuts.rb', line 77
def aws_cloudfront_origin_access_identity(name, spec={})
resource 'aws_cloudfront_origin_access_identity', name, spec
end
|
.aws_cloudtrail(name, spec = {}) ⇒ Object
81
82
83
84
85
|
# File 'lib/terrafied/resource_shortcuts.rb', line 81
def aws_cloudtrail(name, spec={})
default_spec = { name: name }
resource 'aws_cloudtrail', name,
default_spec.deep_merge(spec)
end
|
.aws_cloudwatch_event_rule(name, spec = {}) ⇒ Object
87
88
89
90
91
|
# File 'lib/terrafied/resource_shortcuts.rb', line 87
def aws_cloudwatch_event_rule(name, spec={})
default_spec = { name: name }
resource 'aws_cloudwatch_event_rule', name,
default_spec.deep_merge(spec)
end
|
.aws_cloudwatch_event_target(name, spec = {}) ⇒ Object
93
94
95
|
# File 'lib/terrafied/resource_shortcuts.rb', line 93
def aws_cloudwatch_event_target(name, spec={})
resource 'aws_cloudwatch_event_target', name, spec
end
|
.aws_cloudwatch_log_group(name, spec = {}) ⇒ Object
97
98
99
100
101
|
# File 'lib/terrafied/resource_shortcuts.rb', line 97
def aws_cloudwatch_log_group(name, spec={})
default_spec = { name: name }
resource 'aws_cloudwatch_log_group', name,
default_spec.deep_merge(spec)
end
|
.aws_cloudwatch_log_metric_filter(name, spec = {}) ⇒ Object
109
110
111
112
113
|
# File 'lib/terrafied/resource_shortcuts.rb', line 109
def aws_cloudwatch_log_metric_filter(name, spec={})
default_spec = { name: name }
resource 'aws_cloudwatch_log_metric_filter', name,
default_spec.deep_merge(spec)
end
|
.aws_cloudwatch_log_subscription_filter(name, spec = {}) ⇒ Object
103
104
105
106
107
|
# File 'lib/terrafied/resource_shortcuts.rb', line 103
def aws_cloudwatch_log_subscription_filter(name, spec={})
default_spec = { name: name }
resource 'aws_cloudwatch_log_subscription_filter', name,
default_spec.deep_merge(spec)
end
|
.aws_cloudwatch_metric_alarm(name, spec = {}) ⇒ Object
115
116
117
118
119
|
# File 'lib/terrafied/resource_shortcuts.rb', line 115
def aws_cloudwatch_metric_alarm(name, spec={})
default_spec = { alarm_name: name }
resource 'aws_cloudwatch_metric_alarm', name,
default_spec.deep_merge(spec)
end
|
.aws_codecommit_repository(name, spec = {}) ⇒ Object
121
122
123
124
125
|
# File 'lib/terrafied/resource_shortcuts.rb', line 121
def aws_codecommit_repository(name, spec={})
default_spec = { repository_name: name }
resource 'aws_codecommit_repository', name,
default_spec.deep_merge(spec)
end
|
.aws_codedeploy_app(name, spec = {}) ⇒ Object
127
128
129
130
131
|
# File 'lib/terrafied/resource_shortcuts.rb', line 127
def aws_codedeploy_app(name, spec={})
default_spec = { name: name }
resource 'aws_codedeploy_app', name,
default_spec.deep_merge(spec)
end
|
.aws_codedeploy_deployment_group(name, spec = {}) ⇒ Object
133
134
135
136
137
|
# File 'lib/terrafied/resource_shortcuts.rb', line 133
def aws_codedeploy_deployment_group(name, spec={})
default_spec = { app_name: name }
resource 'aws_codedeploy_deployment_group', name,
default_spec.deep_merge(spec)
end
|
.aws_customer_gateway(name, spec = {}) ⇒ Object
689
690
691
|
# File 'lib/terrafied/resource_shortcuts.rb', line 689
def aws_customer_gateway(name, spec={})
resource 'aws_customer_gateway', name, spec
end
|
.aws_db_event_subscription(name, spec = {}) ⇒ Object
560
561
562
563
564
|
# File 'lib/terrafied/resource_shortcuts.rb', line 560
def aws_db_event_subscription(name, spec={})
default_spec = { name: name }
resource 'aws_db_event_subscription', name,
default_spec.deep_merge(spec)
end
|
.aws_db_instance(name, spec = {}) ⇒ Object
556
557
558
|
# File 'lib/terrafied/resource_shortcuts.rb', line 556
def aws_db_instance(name, spec={})
resource 'aws_db_instance', name, spec
end
|
.aws_db_option_group(name, spec = {}) ⇒ Object
566
567
568
569
570
|
# File 'lib/terrafied/resource_shortcuts.rb', line 566
def aws_db_option_group(name, spec={})
default_spec = { name: name }
resource 'aws_db_option_group', name,
default_spec.deep_merge(spec)
end
|
.aws_db_parameter_group(name, spec = {}) ⇒ Object
572
573
574
575
576
577
578
|
# File 'lib/terrafied/resource_shortcuts.rb', line 572
def aws_db_parameter_group(name, spec={})
default_spec = { name: name,
description: name
}
resource 'aws_db_parameter_group', name,
default_spec.deep_merge(spec)
end
|
.aws_db_security_group(name, spec = {}) ⇒ Object
580
581
582
583
584
585
586
|
# File 'lib/terrafied/resource_shortcuts.rb', line 580
def aws_db_security_group(name, spec={})
default_spec = { name: name,
description: name
}
resource 'aws_db_security_group', name,
default_spec.deep_merge(spec)
end
|
.aws_db_subnet_group(name, spec = {}) ⇒ Object
588
589
590
591
592
593
594
595
596
597
|
# File 'lib/terrafied/resource_shortcuts.rb', line 588
def aws_db_subnet_group(name, spec={})
default_spec = { name: name,
description: name,
tags: {
Name: name
}
}
resource 'aws_db_subnet_group', name,
default_spec.deep_merge(spec)
end
|
.aws_default_network_acl(name, spec = {}) ⇒ Object
709
710
711
|
# File 'lib/terrafied/resource_shortcuts.rb', line 709
def aws_default_network_acl(name, spec={})
resource 'aws_default_network_acl', name, spec
end
|
.aws_directory_service_directory(name, spec = {}) ⇒ Object
139
140
141
142
143
|
# File 'lib/terrafied/resource_shortcuts.rb', line 139
def aws_directory_service_directory(name, spec={})
default_spec = { name: name }
resource 'aws_directory_service_directory', name,
default_spec.deep_merge(spec)
end
|
.aws_dynamodb_table(name, spec = {}) ⇒ Object
145
146
147
148
149
|
# File 'lib/terrafied/resource_shortcuts.rb', line 145
def aws_dynamodb_table(name, spec={})
default_spec = { name: name }
resource 'aws_dynamodb_table', name,
default_spec.deep_merge(spec)
end
|
.aws_ebs_volume(name, spec = {}) ⇒ Object
201
202
203
|
# File 'lib/terrafied/resource_shortcuts.rb', line 201
def aws_ebs_volume(name, spec={})
resource 'aws_ebs_volume', name, spec
end
|
.aws_ecr_repository(name, spec = {}) ⇒ Object
278
279
280
281
282
|
# File 'lib/terrafied/resource_shortcuts.rb', line 278
def aws_ecr_repository(name, spec={})
default_spec = { name: name }
resource 'aws_ecr_repository', name,
default_spec.deep_merge(spec)
end
|
.aws_ecr_repository_policy(name, spec = {}) ⇒ Object
284
285
286
|
# File 'lib/terrafied/resource_shortcuts.rb', line 284
def aws_ecr_repository_policy(name, spec={})
resource 'aws_ecr_repository_policy', name, spec
end
|
.aws_ecs_cluster(name, spec = {}) ⇒ Object
260
261
262
263
264
|
# File 'lib/terrafied/resource_shortcuts.rb', line 260
def aws_ecs_cluster(name, spec={})
default_spec = { name: name }
resource 'aws_ecs_cluster', name,
default_spec.deep_merge(spec)
end
|
.aws_ecs_service(name, spec = {}) ⇒ Object
266
267
268
269
270
|
# File 'lib/terrafied/resource_shortcuts.rb', line 266
def aws_ecs_service(name, spec={})
default_spec = { name: name }
resource 'aws_ecs_service', name,
default_spec.deep_merge(spec)
end
|
.aws_ecs_task_definition(name, spec = {}) ⇒ Object
272
273
274
275
276
|
# File 'lib/terrafied/resource_shortcuts.rb', line 272
def aws_ecs_task_definition(name, spec={})
default_spec = { family: name }
resource 'aws_ecs_task_definition', name,
default_spec.deep_merge(spec)
end
|
.aws_efs_file_system(name, spec = {}) ⇒ Object
288
289
290
|
# File 'lib/terrafied/resource_shortcuts.rb', line 288
def aws_efs_file_system(name, spec={})
resource 'aws_efs_file_system', name, spec
end
|
.aws_efs_mount_target(name, spec = {}) ⇒ Object
292
293
294
|
# File 'lib/terrafied/resource_shortcuts.rb', line 292
def aws_efs_mount_target(name, spec={})
resource 'aws_efs_mount_target', name, spec
end
|
.aws_eip(name, spec = {}) ⇒ Object
209
210
211
|
# File 'lib/terrafied/resource_shortcuts.rb', line 209
def aws_eip(name, spec={})
resource 'aws_eip', name, spec
end
|
.aws_eip_association(name, spec = {}) ⇒ Object
205
206
207
|
# File 'lib/terrafied/resource_shortcuts.rb', line 205
def aws_eip_association(name, spec={})
resource 'aws_eip_association', name, spec
end
|
.aws_elastic_beanstalk_application(name, spec = {}) ⇒ Object
320
321
322
323
324
|
# File 'lib/terrafied/resource_shortcuts.rb', line 320
def aws_elastic_beanstalk_application(name, spec={})
default_spec = { name: name }
resource 'aws_elastic_beanstalk_application', name,
default_spec.deep_merge(spec)
end
|
.aws_elastic_beanstalk_configuration_template(name, spec = {}) ⇒ Object
326
327
328
329
330
|
# File 'lib/terrafied/resource_shortcuts.rb', line 326
def aws_elastic_beanstalk_configuration_template(name, spec={})
default_spec = { name: name }
resource 'aws_elastic_beanstalk_configuration_template', name,
default_spec.deep_merge(spec)
end
|
.aws_elastic_beanstalk_environment(name, spec = {}) ⇒ Object
332
333
334
335
336
|
# File 'lib/terrafied/resource_shortcuts.rb', line 332
def aws_elastic_beanstalk_environment(name, spec={})
default_spec = { name: name }
resource 'aws_elastic_beanstalk_environment', name,
default_spec.deep_merge(spec)
end
|
.aws_elasticache_cluster(name, spec = {}) ⇒ Object
296
297
298
299
300
|
# File 'lib/terrafied/resource_shortcuts.rb', line 296
def aws_elasticache_cluster(name, spec={})
default_spec = { cluster_id: name }
resource 'aws_elasticache_cluster', name,
default_spec.deep_merge(spec)
end
|
.aws_elasticache_parameter_group(name, spec = {}) ⇒ Object
302
303
304
305
306
|
# File 'lib/terrafied/resource_shortcuts.rb', line 302
def aws_elasticache_parameter_group(name, spec={})
default_spec = { name: name }
resource 'aws_elasticache_parameter_group', name,
default_spec.deep_merge(spec)
end
|
.aws_elasticache_security_group(name, spec = {}) ⇒ Object
308
309
310
311
312
|
# File 'lib/terrafied/resource_shortcuts.rb', line 308
def aws_elasticache_security_group(name, spec={})
default_spec = { name: name }
resource 'aws_elasticache_security_group', name,
default_spec.deep_merge(spec)
end
|
.aws_elasticache_subnet_group(name, spec = {}) ⇒ Object
314
315
316
317
318
|
# File 'lib/terrafied/resource_shortcuts.rb', line 314
def aws_elasticache_subnet_group(name, spec={})
default_spec = { name: name }
resource 'aws_elasticache_subnet_group', name,
default_spec.deep_merge(spec)
end
|
.aws_elasticsearch_domain(name, spec = {}) ⇒ Object
338
339
340
341
342
|
# File 'lib/terrafied/resource_shortcuts.rb', line 338
def aws_elasticsearch_domain(name, spec={})
default_spec = { domain_name: name }
resource 'aws_elasticsearch_domain', name,
default_spec.deep_merge(spec)
end
|
.aws_elb(name, spec = {}) ⇒ Object
213
214
215
216
217
|
# File 'lib/terrafied/resource_shortcuts.rb', line 213
def aws_elb(name, spec={})
default_spec = { name: name }
resource 'aws_elb', name,
default_spec.deep_merge(spec)
end
|
.aws_flow_log(name, spec = {}) ⇒ Object
693
694
695
|
# File 'lib/terrafied/resource_shortcuts.rb', line 693
def aws_flow_log(name, spec={})
resource 'aws_flow_log', name, spec
end
|
.aws_glacier_vault(name, spec = {}) ⇒ Object
344
345
346
347
348
|
# File 'lib/terrafied/resource_shortcuts.rb', line 344
def aws_glacier_vault(name, spec={})
default_spec = { name: name }
resource 'aws_glacier_vault', name,
default_spec.deep_merge(spec)
end
|
.aws_iam_access_key(name, spec = {}) ⇒ Object
350
351
352
|
# File 'lib/terrafied/resource_shortcuts.rb', line 350
def aws_iam_access_key(name, spec={})
resource 'aws_iam_access_key', name, spec
end
|
.aws_iam_account_password_policy(name, spec = {}) ⇒ Object
354
355
356
|
# File 'lib/terrafied/resource_shortcuts.rb', line 354
def aws_iam_account_password_policy(name, spec={})
resource 'aws_iam_account_password_policy', name, spec
end
|
.aws_iam_group(name, spec = {}) ⇒ Object
358
359
360
361
362
|
# File 'lib/terrafied/resource_shortcuts.rb', line 358
def aws_iam_group(name, spec={})
default_spec = { name: name }
resource 'aws_iam_group', name,
default_spec.deep_merge(spec)
end
|
.aws_iam_group_membership(name, spec = {}) ⇒ Object
370
371
372
373
374
|
# File 'lib/terrafied/resource_shortcuts.rb', line 370
def aws_iam_group_membership(name, spec={})
default_spec = { name: name }
resource 'aws_iam_group_membership', name,
default_spec.deep_merge(spec)
end
|
.aws_iam_group_policy(name, spec = {}) ⇒ Object
364
365
366
367
368
|
# File 'lib/terrafied/resource_shortcuts.rb', line 364
def aws_iam_group_policy(name, spec={})
default_spec = { name: name }
resource 'aws_iam_group_policy', name,
default_spec.deep_merge(spec)
end
|
.aws_iam_instance_profile(name, spec = {}) ⇒ Object
376
377
378
379
380
|
# File 'lib/terrafied/resource_shortcuts.rb', line 376
def aws_iam_instance_profile(name, spec={})
default_spec = { name: name }
resource 'aws_iam_instance_profile', name,
default_spec.deep_merge(spec)
end
|
.aws_iam_policy(name, spec = {}) ⇒ Object
382
383
384
385
386
|
# File 'lib/terrafied/resource_shortcuts.rb', line 382
def aws_iam_policy(name, spec={})
default_spec = { name: name }
resource 'aws_iam_policy', name,
default_spec.deep_merge(spec)
end
|
.aws_iam_policy_attachment(name, spec = {}) ⇒ Object
388
389
390
391
392
|
# File 'lib/terrafied/resource_shortcuts.rb', line 388
def aws_iam_policy_attachment(name, spec={})
default_spec = { name: name }
resource 'aws_iam_policy_attachment', name,
default_spec.deep_merge(spec)
end
|
.aws_iam_role(name, spec = {}) ⇒ Object
394
395
396
397
398
|
# File 'lib/terrafied/resource_shortcuts.rb', line 394
def aws_iam_role(name, spec={})
default_spec = { name: name }
resource 'aws_iam_role', name,
default_spec.deep_merge(spec)
end
|
.aws_iam_role_policy(name, spec = {}) ⇒ Object
404
405
406
407
408
|
# File 'lib/terrafied/resource_shortcuts.rb', line 404
def aws_iam_role_policy(name, spec={})
default_spec = { name: name }
resource 'aws_iam_role_policy', name,
default_spec.deep_merge(spec)
end
|
.aws_iam_role_policy_attachment(name, spec = {}) ⇒ Object
400
401
402
|
# File 'lib/terrafied/resource_shortcuts.rb', line 400
def aws_iam_role_policy_attachment(name, spec={})
resource 'aws_iam_role_policy_attachment', name, spec
end
|
.aws_iam_saml_provider(name, spec = {}) ⇒ Object
410
411
412
413
414
|
# File 'lib/terrafied/resource_shortcuts.rb', line 410
def aws_iam_saml_provider(name, spec={})
default_spec = { name: name }
resource 'aws_iam_saml_provider', name,
default_spec.deep_merge(spec)
end
|
.aws_iam_server_certificate(name, spec = {}) ⇒ Object
416
417
418
419
420
|
# File 'lib/terrafied/resource_shortcuts.rb', line 416
def aws_iam_server_certificate(name, spec={})
default_spec = { name: name }
resource 'aws_iam_server_certificate', name,
default_spec.deep_merge(spec)
end
|
.aws_iam_user(name, spec = {}) ⇒ Object
422
423
424
425
426
|
# File 'lib/terrafied/resource_shortcuts.rb', line 422
def aws_iam_user(name, spec={})
default_spec = { name: name }
resource 'aws_iam_user', name,
default_spec.deep_merge(spec)
end
|
.aws_iam_user_policy(name, spec = {}) ⇒ Object
428
429
430
431
432
|
# File 'lib/terrafied/resource_shortcuts.rb', line 428
def aws_iam_user_policy(name, spec={})
default_spec = { name: name }
resource 'aws_iam_user_policy', name,
default_spec.deep_merge(spec)
end
|
.aws_iam_user_ssh_key(name, spec = {}) ⇒ Object
434
435
436
437
438
|
# File 'lib/terrafied/resource_shortcuts.rb', line 434
def aws_iam_user_ssh_key(name, spec={})
default_spec = { username: name }
resource 'aws_iam_user_ssh_key', name,
default_spec.deep_merge(spec)
end
|
.aws_instance(name, spec = {}) ⇒ Object
219
220
221
222
223
224
|
# File 'lib/terrafied/resource_shortcuts.rb', line 219
def aws_instance(name, spec={})
default_spec = { tags:
{ Name: name }
}
resource 'aws_instance', name, default_spec.deep_merge(spec)
end
|
.aws_internet_gateway(name, spec = {}) ⇒ Object
697
698
699
|
# File 'lib/terrafied/resource_shortcuts.rb', line 697
def aws_internet_gateway(name, spec={})
resource 'aws_internet_gateway', name, spec
end
|
.aws_key_pair(name, spec = {}) ⇒ Object
226
227
228
229
230
|
# File 'lib/terrafied/resource_shortcuts.rb', line 226
def aws_key_pair(name, spec={})
default_spec = { key_name: name }
resource 'aws_key_pair', name,
default_spec.deep_merge(spec)
end
|
.aws_kinesis_firehose_delivery_stream(name, spec = {}) ⇒ Object
446
447
448
449
450
|
# File 'lib/terrafied/resource_shortcuts.rb', line 446
def aws_kinesis_firehose_delivery_stream(name, spec={})
default_spec = { name: name }
resource 'aws_kinesis_firehose_delivery_stream', name,
default_spec.deep_merge(spec)
end
|
.aws_kinesis_stream(name, spec = {}) ⇒ Object
440
441
442
443
444
|
# File 'lib/terrafied/resource_shortcuts.rb', line 440
def aws_kinesis_stream(name, spec={})
default_spec = { name: name }
resource 'aws_kinesis_stream', name,
default_spec.deep_merge(spec)
end
|
.aws_kms_alias(name, spec = {}) ⇒ Object
456
457
458
459
460
|
# File 'lib/terrafied/resource_shortcuts.rb', line 456
def aws_kms_alias(name, spec={})
default_spec = { name: name }
resource 'aws_kms_alias', name,
default_spec.deep_merge(spec)
end
|
.aws_kms_key(name, spec = {}) ⇒ Object
452
453
454
|
# File 'lib/terrafied/resource_shortcuts.rb', line 452
def aws_kms_key(name, spec={})
resource 'aws_kms_key', name, spec
end
|
.aws_lambda_alias(name, spec = {}) ⇒ Object
462
463
464
465
466
|
# File 'lib/terrafied/resource_shortcuts.rb', line 462
def aws_lambda_alias(name, spec={})
default_spec = { name: name }
resource 'aws_lambda_alias', name,
default_spec.deep_merge(spec)
end
|
.aws_lambda_event_source_mapping(name, spec = {}) ⇒ Object
472
473
474
|
# File 'lib/terrafied/resource_shortcuts.rb', line 472
def aws_lambda_event_source_mapping(name, spec={})
resource 'aws_lambda_event_source_mapping', name, spec
end
|
.aws_lambda_function(name, spec = {}) ⇒ Object
468
469
470
|
# File 'lib/terrafied/resource_shortcuts.rb', line 468
def aws_lambda_function(name, spec={})
resource 'aws_lambda_function', name, spec
end
|
.aws_lambda_permission(name, spec = {}) ⇒ Object
476
477
478
|
# File 'lib/terrafied/resource_shortcuts.rb', line 476
def aws_lambda_permission(name, spec={})
resource 'aws_lambda_permission', name, spec
end
|
.aws_launch_configuration(name, spec = {}) ⇒ Object
232
233
234
|
# File 'lib/terrafied/resource_shortcuts.rb', line 232
def aws_launch_configuration(name, spec={})
resource 'aws_launch_configuration', name, spec
end
|
.aws_lb_cookie_stickiness_policy(name, spec = {}) ⇒ Object
236
237
238
239
240
|
# File 'lib/terrafied/resource_shortcuts.rb', line 236
def aws_lb_cookie_stickiness_policy(name, spec={})
default_spec = { name: name }
resource 'aws_lb_cookie_stickiness_policy', name,
default_spec.deep_merge(spec)
end
|
.aws_main_route_table_association(name, spec = {}) ⇒ Object
701
702
703
|
# File 'lib/terrafied/resource_shortcuts.rb', line 701
def aws_main_route_table_association(name, spec={})
resource 'aws_main_route_table_association', name, spec
end
|
.aws_nat_gateway(name, spec = {}) ⇒ Object
705
706
707
|
# File 'lib/terrafied/resource_shortcuts.rb', line 705
def aws_nat_gateway(name, spec={})
resource 'aws_nat_gateway', name, spec
end
|
.aws_network_acl(name, spec = {}) ⇒ Object
713
714
715
|
# File 'lib/terrafied/resource_shortcuts.rb', line 713
def aws_network_acl(name, spec={})
resource 'aws_network_acl', name, spec
end
|
.aws_network_acl_rule(name, spec = {}) ⇒ Object
717
718
719
|
# File 'lib/terrafied/resource_shortcuts.rb', line 717
def aws_network_acl_rule(name, spec={})
resource 'aws_network_acl_rule', name, spec
end
|
.aws_network_interface(name, spec = {}) ⇒ Object
721
722
723
|
# File 'lib/terrafied/resource_shortcuts.rb', line 721
def aws_network_interface(name, spec={})
resource 'aws_network_interface', name, spec
end
|
.aws_opsworks_application(name, spec = {}) ⇒ Object
550
551
552
553
554
|
# File 'lib/terrafied/resource_shortcuts.rb', line 550
def aws_opsworks_application(name, spec={})
default_spec = { name: name }
resource 'aws_opsworks_application', name,
default_spec.deep_merge(spec)
end
|
.aws_opsworks_custom_layer(name, spec = {}) ⇒ Object
480
481
482
483
484
|
# File 'lib/terrafied/resource_shortcuts.rb', line 480
def aws_opsworks_custom_layer(name, spec={})
default_spec = { name: name }
resource 'aws_opsworks_custom_layer', name,
default_spec.deep_merge(spec)
end
|
.aws_opsworks_ganglia_layer(name, spec = {}) ⇒ Object
486
487
488
489
490
|
# File 'lib/terrafied/resource_shortcuts.rb', line 486
def aws_opsworks_ganglia_layer(name, spec={})
default_spec = { name: name }
resource 'aws_opsworks_ganglia_layer', name,
default_spec.deep_merge(spec)
end
|
.aws_opsworks_haproxy_layer(name, spec = {}) ⇒ Object
492
493
494
495
496
|
# File 'lib/terrafied/resource_shortcuts.rb', line 492
def aws_opsworks_haproxy_layer(name, spec={})
default_spec = { name: name }
resource 'aws_opsworks_haproxy_layer', name,
default_spec.deep_merge(spec)
end
|
.aws_opsworks_instance(name, spec = {}) ⇒ Object
498
499
500
|
# File 'lib/terrafied/resource_shortcuts.rb', line 498
def aws_opsworks_instance(name, spec={})
resource 'aws_opsworks_instance', name, spec
end
|
.aws_opsworks_java_app_layer(name, spec = {}) ⇒ Object
502
503
504
505
506
|
# File 'lib/terrafied/resource_shortcuts.rb', line 502
def aws_opsworks_java_app_layer(name, spec={})
default_spec = { name: name }
resource 'aws_opsworks_java_app_layer', name,
default_spec.deep_merge(spec)
end
|
.aws_opsworks_memcached_layer(name, spec = {}) ⇒ Object
508
509
510
511
512
|
# File 'lib/terrafied/resource_shortcuts.rb', line 508
def aws_opsworks_memcached_layer(name, spec={})
default_spec = { name: name }
resource 'aws_opsworks_memcached_layer', name,
default_spec.deep_merge(spec)
end
|
.aws_opsworks_mysql_layer(name, spec = {}) ⇒ Object
514
515
516
517
518
|
# File 'lib/terrafied/resource_shortcuts.rb', line 514
def aws_opsworks_mysql_layer(name, spec={})
default_spec = { name: name }
resource 'aws_opsworks_mysql_layer', name,
default_spec.deep_merge(spec)
end
|
.aws_opsworks_nodejs_app_layer(name, spec = {}) ⇒ Object
520
521
522
523
524
|
# File 'lib/terrafied/resource_shortcuts.rb', line 520
def aws_opsworks_nodejs_app_layer(name, spec={})
default_spec = { name: name }
resource 'aws_opsworks_nodejs_app_layer', name,
default_spec.deep_merge(spec)
end
|
.aws_opsworks_php_app_layer(name, spec = {}) ⇒ Object
526
527
528
529
530
|
# File 'lib/terrafied/resource_shortcuts.rb', line 526
def aws_opsworks_php_app_layer(name, spec={})
default_spec = { name: name }
resource 'aws_opsworks_php_app_layer', name,
default_spec.deep_merge(spec)
end
|
.aws_opsworks_rails_app_layer(name, spec = {}) ⇒ Object
532
533
534
535
536
|
# File 'lib/terrafied/resource_shortcuts.rb', line 532
def aws_opsworks_rails_app_layer(name, spec={})
default_spec = { name: name }
resource 'aws_opsworks_rails_app_layer', name,
default_spec.deep_merge(spec)
end
|
.aws_opsworks_stack(name, spec = {}) ⇒ Object
538
539
540
541
542
|
# File 'lib/terrafied/resource_shortcuts.rb', line 538
def aws_opsworks_stack(name, spec={})
default_spec = { name: name }
resource 'aws_opsworks_stack', name,
default_spec.deep_merge(spec)
end
|
.aws_opsworks_static_web_layer(name, spec = {}) ⇒ Object
544
545
546
547
548
|
# File 'lib/terrafied/resource_shortcuts.rb', line 544
def aws_opsworks_static_web_layer(name, spec={})
default_spec = { name: name }
resource 'aws_opsworks_static_web_layer', name,
default_spec.deep_merge(spec)
end
|
.aws_placement_group(name, spec = {}) ⇒ Object
242
243
244
245
246
|
# File 'lib/terrafied/resource_shortcuts.rb', line 242
def aws_placement_group(name, spec={})
default_spec = { name: name }
resource 'aws_placement_group', name,
default_spec.deep_merge(spec)
end
|
.aws_proxy_protocol_policy(name, spec = {}) ⇒ Object
248
249
250
|
# File 'lib/terrafied/resource_shortcuts.rb', line 248
def aws_proxy_protocol_policy(name, spec={})
resource 'aws_proxy_protocol_policy', name, spec
end
|
.aws_rds_cluster(name, spec = {}) ⇒ Object
599
600
601
602
603
|
# File 'lib/terrafied/resource_shortcuts.rb', line 599
def aws_rds_cluster(name, spec={})
default_spec = { cluster_identifier: name.downcase }
resource 'aws_rds_cluster', name,
default_spec.deep_merge(spec)
end
|
.aws_rds_cluster_instance(name, spec = {}) ⇒ Object
605
606
607
|
# File 'lib/terrafied/resource_shortcuts.rb', line 605
def aws_rds_cluster_instance(name, spec={})
resource 'aws_rds_cluster_instance', name, spec
end
|
.aws_redshift_cluster(name, spec = {}) ⇒ Object
609
610
611
|
# File 'lib/terrafied/resource_shortcuts.rb', line 609
def aws_redshift_cluster(name, spec={})
resource 'aws_redshift_cluster', name, spec
end
|
.aws_redshift_parameter_group(name, spec = {}) ⇒ Object
613
614
615
616
617
|
# File 'lib/terrafied/resource_shortcuts.rb', line 613
def aws_redshift_parameter_group(name, spec={})
default_spec = { name: name }
resource 'aws_redshift_parameter_group', name,
default_spec.deep_merge(spec)
end
|
.aws_redshift_security_group(name, spec = {}) ⇒ Object
619
620
621
622
623
624
625
|
# File 'lib/terrafied/resource_shortcuts.rb', line 619
def aws_redshift_security_group(name, spec={})
default_spec = { name: name,
description: name
}
resource 'aws_redshift_security_group', name,
default_spec.deep_merge(spec)
end
|
.aws_redshift_subnet_group(name, spec = {}) ⇒ Object
627
628
629
630
631
632
633
|
# File 'lib/terrafied/resource_shortcuts.rb', line 627
def aws_redshift_subnet_group(name, spec={})
default_spec = { name: name,
description: name
}
resource 'aws_redshift_subnet_group', name,
default_spec.deep_merge(spec)
end
|
.aws_route(name, spec = {}) ⇒ Object
725
726
727
|
# File 'lib/terrafied/resource_shortcuts.rb', line 725
def aws_route(name, spec={})
resource 'aws_route', name, spec
end
|
.aws_route53_delegation_set(name, spec = {}) ⇒ Object
635
636
637
|
# File 'lib/terrafied/resource_shortcuts.rb', line 635
def aws_route53_delegation_set(name, spec={})
resource 'aws_route53_delegation_set', name, spec
end
|
.aws_route53_health_check(name, spec = {}) ⇒ Object
639
640
641
|
# File 'lib/terrafied/resource_shortcuts.rb', line 639
def aws_route53_health_check(name, spec={})
resource 'aws_route53_health_check', name, spec
end
|
.aws_route53_record(name, spec = {}) ⇒ Object
643
644
645
646
647
|
# File 'lib/terrafied/resource_shortcuts.rb', line 643
def aws_route53_record(name, spec={})
default_spec = { name: name }
resource 'aws_route53_record', name,
default_spec.deep_merge(spec)
end
|
.aws_route53_zone(name, spec = {}) ⇒ Object
649
650
651
652
653
|
# File 'lib/terrafied/resource_shortcuts.rb', line 649
def aws_route53_zone(name, spec={})
default_spec = { name: name }
resource 'aws_route53_zone', name,
default_spec.deep_merge(spec)
end
|
.aws_route53_zone_association(name, spec = {}) ⇒ Object
655
656
657
|
# File 'lib/terrafied/resource_shortcuts.rb', line 655
def aws_route53_zone_association(name, spec={})
resource 'aws_route53_zone_association', name, spec
end
|
.aws_route_table(name, spec = {}) ⇒ Object
729
730
731
|
# File 'lib/terrafied/resource_shortcuts.rb', line 729
def aws_route_table(name, spec={})
resource 'aws_route_table', name, spec
end
|
.aws_route_table_association(name, spec = {}) ⇒ Object
733
734
735
|
# File 'lib/terrafied/resource_shortcuts.rb', line 733
def aws_route_table_association(name, spec={})
resource 'aws_route_table_association', name, spec
end
|
.aws_s3_bucket(name, spec = {}) ⇒ Object
659
660
661
662
663
|
# File 'lib/terrafied/resource_shortcuts.rb', line 659
def aws_s3_bucket(name, spec={})
default_spec = { bucket: name }
resource 'aws_s3_bucket', name,
default_spec.deep_merge(spec)
end
|
.aws_s3_bucket_notification(name, spec = {}) ⇒ Object
669
670
671
|
# File 'lib/terrafied/resource_shortcuts.rb', line 669
def aws_s3_bucket_notification(name, spec={})
resource 'aws_s3_bucket_notification', name, spec
end
|
.aws_s3_bucket_object(name, spec = {}) ⇒ Object
665
666
667
|
# File 'lib/terrafied/resource_shortcuts.rb', line 665
def aws_s3_bucket_object(name, spec={})
resource 'aws_s3_bucket_object', name, spec
end
|
.aws_security_group(name, spec = {}) ⇒ Object
737
738
739
740
741
742
743
|
# File 'lib/terrafied/resource_shortcuts.rb', line 737
def aws_security_group(name, spec={})
default_spec = { name: name,
tags: { Name: name }
}
resource('aws_security_group', name,
default_spec.deep_merge(spec))
end
|
.aws_security_group_rule(name, spec = {}) ⇒ Object
745
746
747
|
# File 'lib/terrafied/resource_shortcuts.rb', line 745
def aws_security_group_rule(name, spec={})
resource 'aws_security_group_rule', name, spec
end
|
.aws_sns_topic(name, spec = {}) ⇒ Object
673
674
675
676
677
|
# File 'lib/terrafied/resource_shortcuts.rb', line 673
def aws_sns_topic(name, spec={})
default_spec = { name: name }
resource 'aws_sns_topic', name,
default_spec.deep_merge(spec)
end
|
.aws_sns_topic_subscription(name, spec = {}) ⇒ Object
679
680
681
|
# File 'lib/terrafied/resource_shortcuts.rb', line 679
def aws_sns_topic_subscription(name, spec={})
resource 'aws_sns_topic_subscription', name, spec
end
|
.aws_spot_instance_request(name, spec = {}) ⇒ Object
252
253
254
|
# File 'lib/terrafied/resource_shortcuts.rb', line 252
def aws_spot_instance_request(name, spec={})
resource 'aws_spot_instance_request', name, spec
end
|
.aws_sqs_queue(name, spec = {}) ⇒ Object
683
684
685
686
687
|
# File 'lib/terrafied/resource_shortcuts.rb', line 683
def aws_sqs_queue(name, spec={})
default_spec = { name: name }
resource 'aws_sqs_queue', name,
default_spec.deep_merge(spec)
end
|
.aws_subnet(name, spec = {}) ⇒ Object
749
750
751
|
# File 'lib/terrafied/resource_shortcuts.rb', line 749
def aws_subnet(name, spec={})
resource 'aws_subnet', name, spec
end
|
.aws_volume_attachment(name, spec = {}) ⇒ Object
256
257
258
|
# File 'lib/terrafied/resource_shortcuts.rb', line 256
def aws_volume_attachment(name, spec={})
resource 'aws_volume_attachment', name, spec
end
|
.aws_vpc(name, spec = {}) ⇒ Object
753
754
755
|
# File 'lib/terrafied/resource_shortcuts.rb', line 753
def aws_vpc(name, spec={})
resource 'aws_vpc', name, spec
end
|
.aws_vpc_dhcp_options(name, spec = {}) ⇒ Object
757
758
759
|
# File 'lib/terrafied/resource_shortcuts.rb', line 757
def aws_vpc_dhcp_options(name, spec={})
resource 'aws_vpc_dhcp_options', name, spec
end
|
.aws_vpc_dhcp_options_association(name, spec = {}) ⇒ Object
761
762
763
|
# File 'lib/terrafied/resource_shortcuts.rb', line 761
def aws_vpc_dhcp_options_association(name, spec={})
resource 'aws_vpc_dhcp_options_association', name, spec
end
|
.aws_vpc_endpoint(name, spec = {}) ⇒ Object
765
766
767
|
# File 'lib/terrafied/resource_shortcuts.rb', line 765
def aws_vpc_endpoint(name, spec={})
resource 'aws_vpc_endpoint', name, spec
end
|
.aws_vpc_peering_connection(name, spec = {}) ⇒ Object
769
770
771
|
# File 'lib/terrafied/resource_shortcuts.rb', line 769
def aws_vpc_peering_connection(name, spec={})
resource 'aws_vpc_peering_connection', name, spec
end
|
.aws_vpn_connection(name, spec = {}) ⇒ Object
773
774
775
|
# File 'lib/terrafied/resource_shortcuts.rb', line 773
def aws_vpn_connection(name, spec={})
resource 'aws_vpn_connection', name, spec
end
|
.aws_vpn_connection_route(name, spec = {}) ⇒ Object
777
778
779
|
# File 'lib/terrafied/resource_shortcuts.rb', line 777
def aws_vpn_connection_route(name, spec={})
resource 'aws_vpn_connection_route', name, spec
end
|
.aws_vpn_gateway(name, spec = {}) ⇒ Object
781
782
783
|
# File 'lib/terrafied/resource_shortcuts.rb', line 781
def aws_vpn_gateway(name, spec={})
resource 'aws_vpn_gateway', name, spec
end
|
.id_of(type, name) ⇒ Object
18
19
20
|
# File 'lib/terrafied/builder.rb', line 18
def id_of(type,name)
"${#{type}.#{name}.id}"
end
|
.output_of(type, name, *values) ⇒ Object
22
23
24
|
# File 'lib/terrafied/builder.rb', line 22
def output_of(type, name, *values)
"${#{type}.#{name}.#{values.join(".")}}"
end
|
.provider(name, spec = {}) ⇒ Object
6
7
8
|
# File 'lib/terrafied/builder.rb', line 6
def provider(name, spec={})
@output["provider"][name.to_s] = spec
end
|
.resource(type, name, spec = {}) ⇒ Object
10
11
12
13
14
15
16
|
# File 'lib/terrafied/builder.rb', line 10
def resource(type, name, spec={})
@output["resource"][type.to_s] ||= {}
if @output["resource"][type.to_s][name.to_s]
throw "Tried to create a resource of type #{type} called '#{name}' when one already exists"
end
@output["resource"][type.to_s][name.to_s] = spec
end
|
.use_resource_shortcuts! ⇒ Object
32
33
34
|
# File 'lib/terrafied/builder.rb', line 32
def use_resource_shortcuts!
require_relative 'resource_shortcuts'
end
|