Skip to content

Instantly share code, notes, and snippets.

View zswanson's full-sized avatar

Zach Swanson zswanson

  • Wayfair
  • Boston, MA
View GitHub Profile
@zswanson
zswanson / argocd-application.yml
Created March 13, 2022 13:28
argocd-rollouts bluegreen demo with sync-wave on a secondary deployment, to control a staged rollout
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: bluegreen-demo
namespace: argocd
spec:
project: default
source:
repoURL: <your repo>
targetRevision: main
Stack trace from the terraform-provider-aws_v3.42.0_x5 plugin:
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0xa8 pc=0x516c61b]
goroutine 252 [running]:
github.com/terraform-providers/terraform-provider-aws/aws.containerDefinitions.OrderEnvironmentVariables(0xc001d9e5a0, 0x4, 0x4)
/opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/hashicorp/terraform-provider-aws/aws/ecs_task_definition_equivalency.go:107 +0x3b
github.com/terraform-providers/terraform-provider-aws/aws.resourceAwsEcsTaskDefinition.func2(0x6387780, 0xc001d8f0b0, 0x15, 0x0)
/opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/hashicorp/terraform-provider-aws/aws/resource_aws_ecs_task_definition.go:83 +0x85
@zswanson
zswanson / gist:9b95e843603648c01c6ba7813efd3bbc
Created September 27, 2019 15:56
aws_network_interface debug
[dev] ip-192-168-86-212:tftest abcd$ export TF_LOG=DEBUG
[dev] ip-192-168-86-212:tftest abcd$ tf validate
2019/09/27 11:53:23 [INFO] Terraform version: 0.12.9
2019/09/27 11:53:23 [INFO] Go runtime version: go1.13
2019/09/27 11:53:23 [INFO] CLI args: []string{"/usr/local/bin/terraform", "validate"}
2019/09/27 11:53:23 [DEBUG] Attempting to open CLI config file: /Users/abcd/.terraformrc
2019/09/27 11:53:23 Loading CLI configuration from /Users/abcd/.terraformrc
2019/09/27 11:53:23 [DEBUG] checking for credentials in "/Users/abcd/.terraform.d/plugins"
2019/09/27 11:53:23 [DEBUG] checking for credentials in "/Users/abcd/.terraform.d/plugins/darwin_amd64"
2019/09/27 11:53:23 [INFO] CLI command args: []string{"validate"}