Sha256: 3e1dfc7eed2b6ac86690bbdc9269526e5f68d45512fc64b70aa30201c0df944c

Contents?: true

Size: 1.64 KB

Versions: 38

Compression:

Stored size: 1.64 KB

Contents

<% db_instances.each do |instance| -%>
resource "aws_db_instance" "<%= instance.db_instance_identifier %>" {
    identifier                = "<%= module_name_of(instance) %>"
    allocated_storage         = <%= instance.allocated_storage %>
    storage_type              = "<%= instance.storage_type %>"
    engine                    = "<%= instance.engine %>"
    engine_version            = "<%= instance.engine_version %>"
    instance_class            = "<%= instance.db_instance_class %>"
    name                      = "<%= instance.db_name %>"
    username                  = "<%= instance.master_username %>"
    password                  = "xxxxxxxx"
    port                      = <%= instance.endpoint.port %>
    publicly_accessible       = <%= instance.publicly_accessible %>
    availability_zone         = "<%= instance.availability_zone %>"
    security_group_names      = <%= instance.db_security_groups.map { |sg| sg.db_security_group_name }.inspect %>
    vpc_security_group_ids    = <%= instance.vpc_security_groups.map { |sg| sg.vpc_security_group_id }.inspect %>
    db_subnet_group_name      = "<%= instance.db_subnet_group ? instance.db_subnet_group.db_subnet_group_name : "" %>"
    parameter_group_name      = "<%= instance.db_parameter_groups[0].db_parameter_group_name %>"
    multi_az                  = <%= instance.multi_az %>
    backup_retention_period   = <%= instance.backup_retention_period %>
    backup_window             = "<%= instance.preferred_backup_window %>"
    maintenance_window        = "<%= instance.preferred_maintenance_window %>"
    final_snapshot_identifier = "<%= instance.db_instance_identifier %>-final"
}
<% end -%>

Version data entries

38 entries across 38 versions & 2 rubygems

Version Path
terraforming-0.18.0 lib/terraforming/template/tf/rds.erb
terraforming-0.17.0 lib/terraforming/template/tf/rds.erb
terraforming-0.16.0 lib/terraforming/template/tf/rds.erb
terraforming-0.15.0 lib/terraforming/template/tf/rds.erb
aws-insight-0.14.1 lib/terraforming/template/tf/rds.erb
aws-insight-0.14.0 lib/terraforming/template/tf/rds.erb
terraforming-0.14.0 lib/terraforming/template/tf/rds.erb
terraforming-0.13.2 lib/terraforming/template/tf/rds.erb
terraforming-0.13.1 lib/terraforming/template/tf/rds.erb
terraforming-0.13.0 lib/terraforming/template/tf/rds.erb
terraforming-0.12.0 lib/terraforming/template/tf/rds.erb
terraforming-0.11.0 lib/terraforming/template/tf/rds.erb
terraforming-0.10.0 lib/terraforming/template/tf/rds.erb
terraforming-0.9.1 lib/terraforming/template/tf/rds.erb
terraforming-0.9.0 lib/terraforming/template/tf/rds.erb
terraforming-0.8.0 lib/terraforming/template/tf/rds.erb
terraforming-0.7.0 lib/terraforming/template/tf/rds.erb
terraforming-0.6.2 lib/terraforming/template/tf/rds.erb
terraforming-0.6.1 lib/terraforming/template/tf/rds.erb
terraforming-0.6.0 lib/terraforming/template/tf/rds.erb