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 | |
mkdir -p {deployment,post-deployment,pre-deployment}/environment | |
mkdir -p deployment/environment/{us-east-1,sa-east-1} | |
touch {pre,post}-deployment/environment/{backend,terraform}.tfvars | |
touch deployment/environment/{us-east-1,sa-east-1}/{terraform,backend}.tfvars | |
touch {deployment,post-deployment,pre-deployment}/{variables,backend,output,providers,data}.tf |
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
resource "aws_iam_role" "main" { | |
name = format("%s-instance-profile", var.project_name) | |
assume_role_policy = jsonencode({ | |
Version = "2012-10-17" | |
Statement = [{ | |
Action = "sts:AssumeRole" | |
Effect = "Allow" | |
Principal = { | |
Service = "ec2.amazonaws.com" |
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
2022-07-06T16:20:11.486-0300 [INFO] Terraform version: 1.1.7 | |
2022-07-06T16:20:11.486-0300 [INFO] Go runtime version: go1.17.2 | |
2022-07-06T16:20:11.486-0300 [INFO] CLI args: []string{"terraform", "apply", "--target=kubernetes_manifest.karpenter_provisioner", "-auto-approve"} | |
2022-07-06T16:20:11.486-0300 [INFO] Terraform version: 1.1.7 | |
2022-07-06T16:20:11.486-0300 [INFO] Go runtime version: go1.17.2 | |
2022-07-06T16:20:11.486-0300 [INFO] CLI args: []string{"terraform", "apply", "--target=kubernetes_manifest.karpenter_provisioner", "-auto-approve"} | |
2022-07-06T16:20:11.486-0300 [DEBUG] Attempting to open CLI config file: /Users/matheus/.terraformrc | |
2022-07-06T16:20:11.486-0300 [DEBUG] File doesn't exist, but doesn't need to. Ignoring. | |
2022-07-06T16:20:11.486-0300 [DEBUG] Attempting to open CLI config file: /Users/matheus/.terraformrc | |
2022-07-06T16:20:11.486-0300 [DEBUG] File doesn't exist, but doesn't need to. Ignoring. |
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
2022-03-14T12:24:33.202-0300 [INFO] Terraform version: 1.0.0 | |
2022-03-14T12:24:33.202-0300 [INFO] Go runtime version: go1.16.4 | |
2022-03-14T12:24:33.202-0300 [INFO] CLI args: []string{"/usr/local/bin/terraform", "plan"} | |
2022-03-14T12:24:33.203-0300 [TRACE] Stdout is a terminal of width 97 | |
2022-03-14T12:24:33.203-0300 [TRACE] Stderr is a terminal of width 97 | |
2022-03-14T12:24:33.203-0300 [TRACE] Stdin is a terminal | |
2022-03-14T12:24:33.203-0300 [DEBUG] Attempting to open CLI config file: /Users/matheus/.terraformrc | |
2022-03-14T12:24:33.203-0300 [DEBUG] File doesn't exist, but doesn't need to. Ignoring. | |
2022-03-14T12:24:33.205-0300 [DEBUG] ignoring non-existing provider search directory terraform.d/plugins | |
2022-03-14T12:24:33.205-0300 [DEBUG] ignoring non-existing provider search directory /Users/matheus/.terraform.d/plugins |
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
2022-03-14T12:25:20.498-0300 [DEBUG] Adding temp file log sink: /var/folders/0_/rcqv54z5461_jpw8lmtcnm_w0000gn/T/terraform-log649509324 | |
2022-03-14T12:25:20.498-0300 [INFO] Terraform version: 1.0.0 | |
2022-03-14T12:25:20.498-0300 [INFO] Go runtime version: go1.16.4 | |
2022-03-14T12:25:20.498-0300 [INFO] CLI args: []string{"/usr/local/bin/terraform", "plan"} | |
2022-03-14T12:25:20.499-0300 [DEBUG] Attempting to open CLI config file: /Users/matheus/.terraformrc | |
2022-03-14T12:25:20.499-0300 [DEBUG] File doesn't exist, but doesn't need to. Ignoring. | |
2022-03-14T12:25:20.500-0300 [DEBUG] ignoring non-existing provider search directory terraform.d/plugins | |
2022-03-14T12:25:20.500-0300 [DEBUG] ignoring non-existing provider search directory /Users/matheus/.terraform.d/plugins | |
2022-03-14T12:25:20.500-0300 [DEBUG] ignoring non-existing provider search directory /Users/matheus/Library/Application Support/io.terraform/plugins | |
2022-03-14T12:25:20.500-0300 [DEBUG] ignoring non-existing provider search directory /Library/Applicatio |
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
--- | |
kind: ClusterRole | |
apiVersion: rbac.authorization.k8s.io/v1beta1 | |
metadata: | |
name: traefik-ingress-controller | |
rules: | |
- apiGroups: | |
- "" | |
resources: | |
- services |
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
# Retry Policy Example | |
- match: | |
prefix: "/" | |
route: | |
cluster: service_example | |
retry_policy: | |
retry_on: "5xx" | |
num_retries: 10 | |
per_try_timeout: 2s | |
# ---- |
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
static_resources: | |
listeners: | |
- name: listener_0 | |
address: | |
socket_address: { address: 0.0.0.0, port_value: 8080 } | |
filter_chains: | |
- filters: | |
- name: envoy.http_connection_manager | |
typed_config: | |
"@type": type.googleapis.com/envoy.config.filter.network.http_connection_manager.v2.HttpConnectionManager |
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
version: "3" | |
services: | |
status_app: | |
image: msfidelis/http-status-code:v1 | |
ports: | |
- "9090:8080" | |
networks: | |
- developer | |
envoy_proxy: |
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
hosts: | |
- socket_address: | |
address: "node_1" | |
port_value: 8000 | |
- socket_address: | |
address: "node_2" | |
port_value: 8000 |
NewerOlder