View details here: https://gist.github.com/xynova/87beae35688476efb2ee290d3926f5bb
References:
{ | |
"customModes": [ | |
{ | |
"slug": "initializer", | |
"name": "🚀 Initializer", | |
"roleDefinition": "You are Roo in Initializer mode - specialized in helping users define and structure new thought spaces for collaborative exploration and problem-solving.", | |
"groups": [ | |
"read", | |
"edit", | |
"browser", |
from git import Repo # pip install gitpython | |
import requests # pip install requests | |
from http.server import BaseHTTPRequestHandler, HTTPServer | |
import ssl | |
import time | |
import logging | |
import urllib.parse | |
import os | |
import shutil | |
import fnmatch |
terraform import google_kms_crypto_key.etcd_enc_key projects/myproject/locations/australia-southeast1/keyRings/gke-clusters-keyring/cryptoKeys/experiments-cluster-v2-cluster-etcd-key | |
2019/09/12 01:51:29 [INFO] Terraform version: 0.12.8 | |
2019/09/12 01:51:29 [INFO] Go runtime version: go1.12.9 | |
2019/09/12 01:51:29 [INFO] CLI args: []string{"/usr/local/bin/terraform", "import", "google_kms_crypto_key.etcd_enc_key", "projects/myproject/locations/australia-southeast1/keyRings/gke-clusters-keyring/cryptoKeys/experiments-cluster-v2-cluster-etcd-key"} | |
2019/09/12 01:51:29 [DEBUG] Attempting to open CLI config file: /root/.terraformrc | |
2019/09/12 01:51:29 [DEBUG] File doesn't exist, but doesn't need to. Ignoring. | |
2019/09/12 01:51:29 [INFO] CLI command args: []string{"import", "google_kms_crypto_key.etcd_enc_key", "projects/myproject/locations/australia-southeast1/keyRings/gke-clusters-keyring/cryptoKeys/experiments-cluster-v2-cluster-etcd-key"} | |
2019/09/12 01:51:29 [DEBUG] checking for provider in "." | |
2019/09/12 01:51:29 |
View details here: https://gist.github.com/xynova/87beae35688476efb2ee290d3926f5bb
References:
View details here: https://gist.github.com/xynova/87beae35688476efb2ee290d3926f5bb
From a Powershell session:
References:
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "AllowOpenvpnDnsUpdate", | |
"Effect": "Allow", | |
"Action": [ | |
"route53:ChangeResourceRecordSets" | |
], | |
"Resource": [ |
#!/bin/bash | |
set -eu | |
### | |
echo '!!!! INSTALL PACKAGES' | |
apt-get -y update && apt install -y awscli mysql-client libmysqlclient-dev | |
### | |
echo '!!!! SETUP VARS' |
data "template_file" "ovpn_ext_tpl" { | |
template = "${file("${path.module}/vm_openvpn.tpl")}" | |
vars { | |
tf_r53_zone_id = "${data.aws_route53_zone.openvpn_ext_dns_zone.zone_id}" | |
tf_r53_fqdn = "${data.aws_route53_zone.openvpn_ext_dns_zone.name}" | |
tf_rds_fqdn = "${aws_route53_record.openvpn_db.fqdn}" | |
tf_db_enc = "${var.account_nfo["db_enc_password"]}" | |
tf_db_prefix = "ext_" |
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"ecr:GetAuthorizationToken" | |
], | |
"Resource": "*" | |
}, |