Skip to content

Instantly share code, notes, and snippets.

@danielvrog
danielvrog / get_taggable_resources.sh
Last active February 25, 2024 21:29
OPA Conftest: Validate all AWS resources are tagged in your Terraform code
#!/bin/bash
# In ordet to update the list of taggable resources:
git clone https://github.com/hashicorp/terraform-provider-aws.git
cd terraform-provider-aws/website/docs/r
grep -l "\`tags\`" *.html.markdown | awk -F'.' '$0="aws_"$1' | jq --raw-input . | jq --slurp .

Questionnaire

Tuesday, October 2, 2018 11:01

1. Build

  1. Split source repo
  2. Build image for multistage.
  3. Source image
  4. Dependencies (pip, deb, binary)
  5. Procedure (Makefile)
@danielvrog
danielvrog / TriggerHandler.groovy
Last active December 25, 2018 11:50
JSL - Job terminated after readFile without exception or error
package com.myjsl.lib
import com.myjsl.utils.Logger
import hudson.model.Cause
abstract class TriggerHandler implements Serializable{
final protected VersionHelper version
final protected Cause cause
final protected script
final protected Logger log