GithubHelp home page GithubHelp logo

dg0026 / terraform-azurerm-mssql-database Goto Github PK

View Code? Open in Web Editor NEW

This project forked from canada-ca-terraform-modules/terraform-azurerm-mssql-database

0.0 0.0 0.0 77 KB

Terraform module to deploy a managed MSSQL database on Azure

License: Other

HCL 100.00%

terraform-azurerm-mssql-database's Introduction

Terraform for Azure Managed Database MSSQL Database(s)

Current Version: v2.0.3

Summary

Creates Azure Managed Database for MSSQL.

Examples for using the module can be found here.

Changelog can be found in CHANGELOG.md

The Database will be created with the following:

  • Extended Auditing Policy

Using this module you will be able to create:

User Input Requirement

See inputs and examples for reference.

Requirements

No requirements.

Providers

Name Version
azurerm n/a
null n/a
time n/a

Modules

No modules.

Resources

Name Type
azurerm_mssql_database.sql_db resource
azurerm_mssql_database_extended_auditing_policy.this resource
azurerm_mssql_job_agent.this resource
azurerm_mssql_job_credential.this resource
null_resource.this resource
time_sleep.this resource
azurerm_key_vault.sqlhstkv data source

Inputs

Name Description Type Default Required
administrator_login SQL server admin login string "sqlhstsvcaz" no
auto_pause_delay_in_minutes (Optional) Time in minutes after which database is automatically paused. A value of -1 means that automatic pause is disabled. This property is only settable for General Purpose Serverless databases. any null no
collation (Optional) The name of the collation. Applies only if create_mode is Default. Azure default is SQL_LATIN1_GENERAL_CP1_CI_AS. Changing this forces a new resource to be created. string "SQL_Latin1_General_CP1_CI_AS" no
create_mode (Optional) Specifies how to create the database. Must be either Default to create a new database or PointInTimeRestore to restore from a snapshot. Defaults to Default. string "Default" no
creation_source_database_id (Optional) The id of the source database to be referred to create the new database. This should only be used for databases with create_mode values that use another database as reference. Changing this forces a new resource to be created. any null no
elastic_pool_id (Optional) The id of the elastic database pool. any null no
environment The environment used for keyvault access any n/a yes
job_agent_credentials username and password for an elastic job agent any null no
kv_name The keyvault name string "" no
kv_rg The keyvault resource group string "" no
location value any n/a yes
ltr_monthly_retention The monthly retention policy for an LTR backup. (1 to 120 weeks eg. P1Y, P1M, P4W, P30D) any null no
ltr_week_of_year The week of the year to take the yearly backup. Value has to be between 1 and 52. any null no
ltr_weekly_retention The weekly retention policy for an LTR backup. (1 to 520 weeks eg. P1Y, P1M, P1W, P7D) any null no
ltr_yearly_retention The yearly retention policy for an LTR backup. (1 to 120 weeks eg. P1Y, P12M, P52W, P365D) any null no
max_size_gb (Optional) The max size of the database in gigabytes. any null no
min_capacity (Optional) Minimal capacity that database will always have allocated, if not paused. This property is only settable for General Purpose Serverless databases. number 0.5 no
name (Required) The name of the Ms SQL Database. Changing this forces a new resource to be created. any n/a yes
read_replica_count (Optional) The number of readonly secondary replicas associated with the database to which readonly application intent connections may be routed. This property is only settable for Hyperscale edition databases. any null no
read_scale (Optional) Read-only connections will be redirected to a high-available replica. Please see Use read-only replicas to load-balance read-only query workloads. any null no
recover_database_id (Optional) The id of the source database to be reocvered to create the new database. This should only be used for databases with create_mode values that use another database as reference. Changing this forces a new resource to be created. any null no
resource_group_name The resource group for the sql db any n/a yes
restore_dropped_database_id (Optional) The id of the source database to be restored to create the new database. This should only be used for databases with create_mode values that use another database as reference. Changing this forces a new resource to be created. any null no
restore_point_in_time (Optional) The point in time for the restore. Only applies if create_mode is PointInTimeRestore e.g. 2013-11-08T22:00:40Z any null no
retention_days Specifies the retention in days for logs for this MSSQL Server any null no
sa_primary_access_key The storage account primary access string "" no
sa_primary_blob_endpoint The storage account primary blob endpoint string "" no
sa_resource_group_name The storageaccountinfo resource group name string "" no
sample_name (Optional) Specifies the name of the sample schema to apply when creating this database. Possible value is AdventureWorksLT. any null no
server_id (Required) The id of the Ms SQL Server on which to create the database. Changing this forces a new resource to be created. any n/a yes
server_name (Required) The name of the SQL Server on which to create the database. any n/a yes
sku (Optional) Specifies the name of the sku used by the database. Only changing this from tier Hyperscale to another tier will force a new resource to be created. For example, GP_S_Gen5_2,HS_Gen4_1,BC_Gen5_2, ElasticPool, Basic,S0, P2 ,DW100c, DS100. string "Basic" no
str_days Point in Time Restore Configuration. Values has to be between 7 and 35 number 7 no
tags n/a map(string)
{
"environment": "dev"
}
no
zone_redundant (Optional) Whether or not this database is zone redundant, which means the replicas of this database will be spread across multiple availability zones. This property is only settable for Premium and Business Critical databases. any null no

Outputs

Name Description
sql_db n/a

terraform-azurerm-mssql-database's People

Contributors

sylus avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.