Sha256: 4d5e3ef3f56fe4642f22aeb58db81786704c5bc30ce3cf6583e734328b14a3e8

Contents?: true

Size: 798 Bytes

Versions: 56

Compression:

Stored size: 798 Bytes

Contents

#!/bin/bash

set -eux

mkdir -p ~/.azure
aws secretsmanager get-secret-value --secret-id terraspace/azure-client | jq -r '.SecretString | fromjson' > ~/.azure/app-client.json

# ~/.azure/app-client.json
export ARM_CLIENT_ID=$(cat ~/.azure/app-client.json | jq -r '.client_id')
export ARM_CLIENT_SECRET=$(cat ~/.azure/app-client.json | jq -r '.client_secret')
export ARM_SUBSCRIPTION_ID=$(cat ~/.azure/app-client.json | jq -r '.subscription_id')
export ARM_TENANT_ID=$(cat ~/.azure/app-client.json | jq -r '.tenant_id')

# non-interactive login with service principal
az login --service-principal \
  --username $ARM_CLIENT_ID \
  --password $ARM_CLIENT_SECRET \
  --tenant $ARM_TENANT_ID

git clone https://github.com/boltops-tools/azure_check.git
cd azure_check
bundle install
ruby azure_check.rb

Version data entries

56 entries across 56 versions & 1 rubygems

Version Path
terraspace-0.6.23 .cody/azurerm/bin/az/configure.sh
terraspace-0.6.22 .cody/azurerm/bin/az/configure.sh
terraspace-0.6.21 .cody/azurerm/bin/az/configure.sh
terraspace-0.6.20 .cody/azurerm/bin/az/configure.sh
terraspace-0.6.19 .cody/azurerm/bin/az/configure.sh
terraspace-0.6.18 .cody/azurerm/bin/az/configure.sh
terraspace-0.6.17 .cody/azurerm/bin/az/configure.sh
terraspace-0.6.16 .cody/azurerm/bin/az/configure.sh
terraspace-0.6.15 .cody/azurerm/bin/az/configure.sh
terraspace-0.6.13 .cody/azurerm/bin/az/configure.sh
terraspace-0.6.12 .cody/azurerm/bin/az/configure.sh
terraspace-0.6.11 .cody/azurerm/bin/az/configure.sh
terraspace-0.6.10 .cody/azurerm/bin/az/configure.sh
terraspace-0.6.9 .cody/azurerm/bin/az/configure.sh
terraspace-0.6.8 .cody/azurerm/bin/az/configure.sh
terraspace-0.6.7 .cody/azurerm/bin/az/configure.sh
terraspace-0.6.6 .cody/azurerm/bin/az/configure.sh
terraspace-0.6.5 .cody/azurerm/bin/az/configure.sh
terraspace-0.6.4 .cody/azurerm/bin/az/configure.sh
terraspace-0.6.3 .cody/azurerm/bin/az/configure.sh