Skip to content

Instantly share code, notes, and snippets.

<match cloudsql.cell.app>
@type exec
command /fluentd/bin/fluentd-objectstore
<format>
@type json
</format>
<buffer>
@type file
path /var/log/fluentd-buffers/objectstore.buffer
flush_interval 10s
@sw-samuraj
sw-samuraj / Dockerfile
Last active January 8, 2021 18:26
An example Docker file for the blog post about Golang remote debugging.
FROM debian:stable-slim
LABEL maintainer="SoftWare Samuraj"
WORKDIR /home/samuraj
# Copy remote-debug app
COPY remote-debug .
# Copy Delve - Golang debugger
## File input
<source>
@type tail
path /tmp/fluentd/*/cell.log
pos_file /tmp/fluentd/cell.log.pos
tag cloudsql.cell
read_from_head true
<parse>
@type json
</parse>
<match cloudsql.cell.app>
@type elasticsearch
host localhost
port 9200
index_name fluentd.${tag}
</match>
<filter cloudsql.cell.app>
@type record_transformer
enable_ruby
<record>
msg ${record["msg"].encode("UTF-8", invalid: :replace, replace: "__NON_ASCII_CHAR__")}
</record>
</filter>
<source>
@type tail
path /tmp/fluentd/*/cell.log
pos_file /tmp/fluentd/cell.log.pos
tag cloudsql.cell
read_from_head true
<parse>
@type json
</parse>
</source>
provider "oci" {
version = "~> 3.88"
tenancy_ocid = var.tenancy_ocid
user_ocid = var.user_ocid
fingerprint = var.fingerprint
private_key_path = var.private_key_path
region = var.region
}
data "oci_bds_bds_instance" "tf_bds_instance" {
## This configuration was generated by terraform-provider-oci
resource oci_bds_bds_instance export_tf-bds-example {
#cluster_admin_password = <<Required attribute not found in discovery>>
#cluster_public_key = <<Required attribute not found in discovery>>
cluster_version = "CDH6"
compartment_id = "${var.compartment_ocid}"
defined_tags = {}
./terraform-provider-oci -command=export \
-compartment_id=ocid1.compartment.oc1..aaaaaaaa7gna34n3semxsi7ejf72jqpjnip6mqw2764hegwp7y2sl5rctdqa \
-output_path=tf-export \
-services=bds \
-generate_state
resource "oci_bds_bds_instance" "tf_bds_instance" {
#Required
compartment_id = "ocid1.compartment.oc1..aaaaaaaa7gna34n3semxsi7ejf72jqpjnip6mqw2764hegwp7y2sl5rctdqa"
display_name = "tf-bds-example"
# Password has to be Base64 encoded, e.g.: echo Init01$$ | base64
cluster_admin_password = "SW5pdDAxMTgwOTEK"
is_high_availability = false
is_secure = false
cluster_version = "CDH6"
master_node {