GithubHelp home page GithubHelp logo

luckylittle / terraform-azure-aro Goto Github PK

View Code? Open in Web Editor NEW
9.0 7.0 24.0 22 KB

Terraform module to create ARO cluster on MS Azure

Home Page: https://www.openshift.com/products/azure-openshift

License: MIT License

HCL 81.57% Shell 18.43%
azure aro openshift terraform microsoft-azure-red-hat-openshift module ocp4

terraform-azure-aro's Introduction

TERRAFORM-AZURE-ARO

This is a HashiCorp Terraform root module that spins up Microsoft Azure Red Hat OpenShift (ARO) cluster(s) using Terraform Workspaces.

PREREQUISITES

  • MS Azure account and subscription
  • Service and subscription limits (quotas) increase
  • MS Azure CLI v2.15.1
  • HashiCorp Terraform v0.13.5
  • HashiCorp Terraform AzureRM provider v2.37.0
  • Red Hat pull secret from cloud.redhat.com

AZURE INITIAL SETUP

# Authenticate to Azure using the Azure CLI (it redirects you to the default browser on your machine to log in):
az login

# List all available Azure regions and find the one closest to you:
az account list-locations -o table

# Set the default region for Azure CLI:
az config set defaults.location=australiaeast

# If you have multiple Azure subscriptions, specify the relevant subscription ID:
az account set --subscription <SUBSCRIPTION_ID>

# Register the `Microsoft.RedHatOpenShift` resource provider:
az provider register -n Microsoft.RedHatOpenShift --wait

# Register the `Microsoft.Compute` resource provider:
az provider register -n Microsoft.Compute --wait

# Register the `Microsoft.Storage` resource provider:
az provider register -n Microsoft.Storage --wait

TERRAFORM STATE BACKEND INITIALIZATION

# Run only once! Create Azure storage backend used by Terraform to store the state file(s):
./create_backend.sh
echo "Copy the generated values to backend.tf!"

HOW TO DEPLOY

# Check the format of the *.tf files:
terraform fmt

# Initialize Terraform:
terraform init

# Create a new nonprod/prod/quay workspace:
terraform workspace new <nonprod,prod,quay>

# See what is Terraform planning to apply:
terraform plan

# Create the resources:
terraform apply -auto-approve

LICENSE

terraform-azure-aro's People

Contributors

luckylittle avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

terraform-azure-aro's Issues

The resource provider does not have Contributor permission on vnet

{"code":"DeploymentFailed","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.","details":[{"code":"InvalidResourceProviderPermissions","message":"The resource provider does not have Contributor permission on vnet '/subscriptions/<REDACTED>/resourceGroups/openshift-cluster-nonprod/providers/Microsoft.Network/virtualNetworks/virtual-network-nonprod'."}]}

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.