Code Monkey home page Code Monkey logo

terraform-azure-sql's Introduction

Terraform modules for SQL servers on Azure

PostgreSQL single server

Module

Examples

PostgreSQL flexible server

Module

Examples

Getting started

Example using the latest release of the Standard Server module

module "postgresql" {
  source = "github.com/entur/terraform-azure-sql//modules/postgresql?ref=v0.2.0"
  ...
}

See the README.md under each module's subfolder for a list of supported inputs and outputs. For examples showing how they're implemented, check the examples subfolder.

Version constraints

You can control the version of a module dependency by adding ?ref=TAG at the end of the source argument, as shown in the example above. This is highly recommended. You can find a list of available versions here.

Dependency automation tools such as Renovate Bot will be able to discover new releases and suggest updates automatically.

Contributing

We welcome contributions to this repo. How to contribute:

  • Clone this repo, create a branch locally, make changes
  • Run terraform fmt to format the Terraform code
  • Run the tests locally (see Prerequisites and Local testing)
  • Push your branch to the remote repo, create a pull request (PR)
  • The tests are run by GitHub Actions (see Automatic testing)
  • Team Plattform at Entur reviews the PR, approves and merges the changes
  • Team Plattform creates a new release (see [Versioning]](#versioning)

Prerequisites

  • You need to have Terraform installed (version: see versions.tf)
  • You need to have Go installed (version >=1.19 because of the go:build directive format used in the go files)
  • You need to have az installed and be authenticated (az login)
  • Your user must have the necessary permissions on the GCP project used to run the tests

Tests

Local testing

To run the tests locally, make sure the prerequisites are in place. Make sure that you are running the go commands to test in the test folder.

The test files have build tags, these can be used to run only a subset of the tests, for example like this: go test -v -tags=unit.

Automatic testing

In addition to a workflow running Terrascan on all git push events, a separate GitHub workflow is defined for testing the modules:

These run every time a change is pushed to GitHub, but filters in the workflows stops the tests from running when no changes is made in the modules.

terraform-azure-sql's People

Contributors

alexanderbrevig avatar bvestli avatar github-actions[bot] avatar glenn-terjesen avatar mfarrokhnia avatar renovate-bot avatar renovate[bot] avatar sindrel avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

terraform-azure-sql's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

This repository currently has no open or pending branches.

Detected dependencies

github-actions
.github/workflows/pr-tests-terraform.yml
.github/workflows/pr-unit-test-terraform.yml
  • actions/checkout v4
  • actions/setup-go v5
  • Azure/login v2
  • hashicorp/setup-terraform v3
.github/workflows/pr-validation.yml
.github/workflows/release-please.yml
terraform
modules/postgresql-flex/providers.tf
modules/postgresql-flex/versions.tf
  • azurerm ~> 3.0
  • kubernetes ~> 2.0
  • postgresql ~> 1.19
  • random ~> 3.6.0
  • hashicorp/terraform >= 0.13
modules/postgresql/providers.tf
modules/postgresql/versions.tf
  • azurerm ~> 3.0
  • kubernetes ~> 2.0
  • postgresql ~> 1.19
  • hashicorp/terraform >= 0.13

  • Check this box to trigger a request for Renovate to run again on this repository

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.