This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
trigger: | |
- none | |
pool: | |
vmImage: ubuntu-latest | |
variables: | |
- group: MyVariableGroup | |
jobs: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
trigger: | |
- none | |
pool: | |
vmImage: ubuntu-latest | |
jobs: | |
- job: auth | |
displayName: Authenticate to HCP Vault | |
pool: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
BUCKET_NAME="REPLACE_ME" | |
LOG_FILE="./script.log" | |
echo "Starting script at $(date)" > "$LOG_FILE" | |
count_instances() { | |
jq '[ | |
.resources[] | | |
select(.mode == "managed") | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import boto3 | |
import json | |
import pyjq | |
boto3.setup_default_session(profile_name=“aws”) | |
s3 = boto3.resource(“s3") | |
s3_client = boto3.client(“s3”) | |
BUCKET_NAME_FILTER_PREFIX = “mybucket-prefix” | |
TF_STATE_OBJ_KEY = “terraform.tfstate” | |
JQ_EXPR = ‘.resources[] | select(.mode == “managed”) | select(.type == “terraform_data” or .type == “null_resource” | not) | .instances | flatten[]' | |
# Get a list of all buckets |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Shader "Custom/StencilBuffer" | |
{ | |
Properties | |
{ | |
_Color ("Color", Color) = (1,1,1,1) | |
_MainTex ("Albedo (RGB)", 2D) = "white" {} | |
_Glossiness ("Smoothness", Range(0,1)) = 0.5 | |
_Metallic ("Metallic", Range(0,1)) = 0.0 | |
_Stencil_Level ("Stencil code",int) = 1 |