This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Usage: ./init.sh once to initialize remote storage for this environment. | |
# Subsequent tf actions in this environment don't require re-initialization, | |
# unless you have completely cleared your .terraform cache. | |
# | |
# terraform plan -var-file=./production.tfvars | |
# terraform apply -var-file=./production.tfvars | |
tf_env="production" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### these variables should be the same across all environments | |
# your aws secret key and access key should be in your env variables | |
provider "aws" { | |
region = "us-east-1" | |
} | |
variable "tf_s3_bucket" { default = "hound-terraform-state" } | |
variable "master_state_file" { default = "base.tfstate" } | |
variable "prod_state_file" { default = "production.tfstate" } # TODO: make init.sh use these variables | |
variable "staging_state_file" { default = "staging.tfstate" } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## declare all the env-specific variables that are defined in *.tfvars | |
variable "env" { } | |
variable "name" { } | |
variable "size" { } | |
variable "cidr" { } | |
variable "instance_type" { } | |
variable "kafka_instance_type" { } | |
variable "retriever_instance_type" { } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PRODUCTION root@kafka-6c3f65f0:~# kafkacat -L -b localhost:9092 | |
Metadata for all topics (from broker -1: localhost:9092/bootstrap): | |
4 brokers: | |
broker 1003 at ip-10-0-246-113.ec2.internal:9092 | |
broker 1004 at ip-10-0-190-45.ec2.internal:9092 | |
broker 1009 at ip-10-0-213-10.ec2.internal:9092 | |
broker 1001 at ip-10-0-148-52.ec2.internal:9092 | |
4 topics: | |
topic "hound-dogfood.retriever-mutation" with 1 partitions: | |
partition 0, leader 1001, replicas: 1001, isrs: 1001 |
OlderNewer