Skip to content

Instantly share code, notes, and snippets.

View iwahbe's full-sized avatar
🏠
Working from home

Ian Wahbe iwahbe

🏠
Working from home
View GitHub Profile
Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with
the following symbols:
+ create
Terraform will perform the following actions:
# digitalocean_app.repro will be created
+ resource "digitalocean_app" "repro" {
+ active_deployment_id = (known after apply)
{"@level":"info","@message":"Terraform version: 1.8.3","@timestamp":"2024-06-27T15:10:18.549966-07:00"}
{"@level":"debug","@message":"using github.com/hashicorp/go-tfe v1.51.0","@timestamp":"2024-06-27T15:10:18.550191-07:00"}
{"@level":"debug","@message":"using github.com/hashicorp/hcl/v2 v2.20.0","@timestamp":"2024-06-27T15:10:18.550200-07:00"}
{"@level":"debug","@message":"using github.com/hashicorp/terraform-svchost v0.1.1","@timestamp":"2024-06-27T15:10:18.550210-07:00"}
{"@level":"debug","@message":"using github.com/zclconf/go-cty v1.14.3","@timestamp":"2024-06-27T15:10:18.550215-07:00"}
{"@level":"info","@message":"Go runtime version: go1.22.1","@timestamp":"2024-06-27T15:10:18.550221-07:00"}
{"@level":"info","@message":"CLI args: []string{\"terraform\", \"apply\"}","@timestamp":"2024-06-27T15:10:18.550228-07:00"}
{"@level":"trace","@message":"Stdout is a terminal of width 116","@timestamp":"2024-06-27T15:10:18.550242-07:00"}
{"@level":"trace","@message":"Stderr is a terminal of width 116","@timestamp":
{
"version": 4,
"terraform_version": "1.8.3",
"serial": 195,
"lineage": "7cd0e075-f4b6-57b5-b903-41fd797cb575",
"outputs": {},
"resources": [
{
"mode": "managed",
"type": "cloudflare_email_routing_rule",
2024-06-25T18:07:10.175-0700 [INFO] Terraform version: 1.8.3
2024-06-25T18:07:10.176-0700 [DEBUG] using github.com/hashicorp/go-tfe v1.51.0
2024-06-25T18:07:10.176-0700 [DEBUG] using github.com/hashicorp/hcl/v2 v2.20.0
2024-06-25T18:07:10.176-0700 [DEBUG] using github.com/hashicorp/terraform-svchost v0.1.1
2024-06-25T18:07:10.176-0700 [DEBUG] using github.com/zclconf/go-cty v1.14.3
2024-06-25T18:07:10.176-0700 [INFO] Go runtime version: go1.22.1
2024-06-25T18:07:10.176-0700 [INFO] CLI args: []string{"/opt/homebrew/bin/terraform", "apply"}
2024-06-25T18:07:10.176-0700 [DEBUG] Attempting to open CLI config file: /Users/ianwahbe/.terraformrc
2024-06-25T18:07:10.176-0700 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2024-06-25T18:07:10.176-0700 [DEBUG] ignoring non-existing provider search directory terraform.d/plugins
2024-06-25T12:24:46.391-0700 [INFO] Terraform version: 1.8.3
2024-06-25T12:24:46.391-0700 [DEBUG] using github.com/hashicorp/go-tfe v1.51.0
2024-06-25T12:24:46.391-0700 [DEBUG] using github.com/hashicorp/hcl/v2 v2.20.0
2024-06-25T12:24:46.391-0700 [DEBUG] using github.com/hashicorp/terraform-svchost v0.1.1
2024-06-25T12:24:46.391-0700 [DEBUG] using github.com/zclconf/go-cty v1.14.3
2024-06-25T12:24:46.391-0700 [INFO] Go runtime version: go1.22.1
2024-06-25T12:24:46.391-0700 [INFO] CLI args: []string{"/opt/homebrew/bin/terraform", "apply"}
2024-06-25T12:24:46.391-0700 [DEBUG] Attempting to open CLI config file: /Users/ianwahbe/.terraformrc
2024-06-25T12:24:46.391-0700 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2024-06-25T12:24:46.391-0700 [DEBUG] ignoring non-existing provider search directory terraform.d/plugins
@iwahbe
iwahbe / schema.json
Created June 6, 2024 23:18
A dynamically generated ise schema.json
{
"name": "ise",
"version": "0.2.1",
"description": "A Pulumi provider dynamically bridged from ise.",
"attribution": "This Pulumi package is based on the [`ise` Terraform Provider](https://github.com/terraform-providers/terraform-provider-ise).",
"meta": {
"moduleFormat": "(.*)(?:/[^/]*)"
},
"language": {
"go": {
@iwahbe
iwahbe / gist:4a5feacb7be90ec0d827a44b54de4cf0
Created April 19, 2024 14:44
TRACE output for a terraform-provider-snowflake bug
2024-04-19T16:42:50.354+0200 [INFO] Terraform version: 1.8.1
2024-04-19T16:42:50.354+0200 [DEBUG] using github.com/hashicorp/go-tfe v1.41.0
2024-04-19T16:42:50.354+0200 [DEBUG] using github.com/hashicorp/hcl/v2 v2.20.0
2024-04-19T16:42:50.354+0200 [DEBUG] using github.com/hashicorp/terraform-svchost v0.1.1
2024-04-19T16:42:50.354+0200 [DEBUG] using github.com/zclconf/go-cty v1.14.3
2024-04-19T16:42:50.354+0200 [INFO] Go runtime version: go1.22.1
2024-04-19T16:42:50.354+0200 [INFO] CLI args: []string{"/opt/homebrew/bin/terraform", "apply"}
2024-04-19T16:42:50.354+0200 [TRACE] Stdout is not a terminal
2024-04-19T16:42:50.354+0200 [TRACE] Stderr is not a terminal
2024-04-19T16:42:50.354+0200 [TRACE] Stdin is a terminal
@iwahbe
iwahbe / debug.json
Created April 18, 2024 13:45
Debug output for a TF issue
This file has been truncated, but you can view the full file.
{"@level":"info","@message":"Terraform version: 1.8.1","@timestamp":"2024-04-18T15:42:29.283330+02:00"}
{"@level":"debug","@message":"using github.com/hashicorp/go-tfe v1.41.0","@timestamp":"2024-04-18T15:42:29.283466+02:00"}
{"@level":"debug","@message":"using github.com/hashicorp/hcl/v2 v2.20.0","@timestamp":"2024-04-18T15:42:29.283473+02:00"}
{"@level":"debug","@message":"using github.com/hashicorp/terraform-svchost v0.1.1","@timestamp":"2024-04-18T15:42:29.283478+02:00"}
{"@level":"debug","@message":"using github.com/zclconf/go-cty v1.14.3","@timestamp":"2024-04-18T15:42:29.283482+02:00"}
{"@level":"info","@message":"Go runtime version: go1.22.1","@timestamp":"2024-04-18T15:42:29.283486+02:00"}
{"@level":"info","@message":"CLI args: []string{\"terraform\", \"apply\", \"--refresh=false\"}","@timestamp":"2024-04-18T15:42:29.283492+02:00"}
{"@level":"trace","@message":"Stdout is a terminal of width 120","@timestamp":"2024-04-18T15:42:29.283509+02:00"}
{"@level":"trace","@message":"Stderr is not a terminal","
# first keycloak is deployed by calling @app.route('/kc', methods=['POST'])
# routes.py:
@app.route('/kc', methods=['POST'])
def deploy():
//args are coming from request.json
threading.Thread(target=deploy_kc.deploy, args=(
keycloak_namespace, aks_cluster_name, resource_group_name, keycloak_yaml, project_name, stack_name))
@app.route('/deploy_image', methods=['POST'])
def deploy_resources():
@iwahbe
iwahbe / aws-2971-repro.tf
Last active November 15, 2023 18:10
An equivalent HCL program to demonstrate that a replace is caused when changing `secondary_allocation_ids`.
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 5"
}
}
required_version = ">= 1.2.0"
}