Skip to content

Instantly share code, notes, and snippets.

View applike-ss's full-sized avatar

Sebastian Struß applike-ss

View GitHub Profile
@applike-ss
applike-ss / debug.txt
Created March 21, 2022 11:11
terraform import issue
2022-03-21T12:07:02.116+0100 [INFO] Terraform version: 1.1.7
2022-03-21T12:07:02.116+0100 [INFO] Go runtime version: go1.17.2
2022-03-21T12:07:02.116+0100 [INFO] CLI args: []string{"terraform", "import", "module.m[0].aws_sns_topic.t", "arn:aws:sns:eu-central-1:123456789012:my-topic"}
2022-03-21T12:07:02.116+0100 [TRACE] Stdout is not a terminal
2022-03-21T12:07:02.116+0100 [TRACE] Stderr is not a terminal
2022-03-21T12:07:02.116+0100 [TRACE] Stdin is a terminal
2022-03-21T12:07:02.116+0100 [DEBUG] Attempting to open CLI config file: /home/username/.terraformrc
2022-03-21T12:07:02.116+0100 [INFO] Loading CLI configuration from /home/username/.terraformrc
2022-03-21T12:07:02.116+0100 [DEBUG] checking for credentials in "/home/username/.terraform.d/plugins"
2022-03-21T12:07:02.116+0100 [DEBUG] ignoring non-existing provider search directory terraform.d/plugins
location ~ '^/prefix/(path)$' {
if ($args ~* (.*)(\|)(.*)) { set $args $1%7C$3; }
if ($args ~* (.*)(\{)(.*)) { set $args $1%7B$3; }
... repeating a few times ...
if ($args ~* (.*)(\})(.*)) { set $args $1%7D$3; }
... repeating a few times ...
rewrite '^/prefix/(path)$' {{ host }}/path/$1 redirect;
const AWS = require('aws-sdk');
// update configuration to meet your requirements
const sqs = new AWS.SQS({ region: process.env.QUEUE_REGION, httpOptions: {connectTimeout: process.env.CONNECT_TIMEOUT, timeout: process.env.TIMEOUT} });
const mysql = require('mysql');
const pool = mysql.createPool({
connectionLimit: process.env.MYSQL_POOL_SIZE,
host: process.env.MYSQL_HOST,
port: process.env.MYSQL_PORT || 3306,
user: process.env.MYSQL_USER,
const AWS = require('aws-sdk');
// update configuration to meet your requirements
let sqsQueueRegion = process.env.QUEUE_REGION;
let sqsMaxNumberOfMessages = parseInt(process.env.MESSAGE_BATCH_SIZE);
let sqsWaitTimeBetweenRequests = parseInt(process.env.QUEUE_WAIT_TIME_BETWEEN_REQUESTS);
let sqsQueueUrl = process.env.QUEUE_URL;
let sqs = new AWS.SQS();