Skip to content

Commit

Permalink
update some stuff.
Browse files Browse the repository at this point in the history
  • Loading branch information
vallard committed Jan 2, 2023
1 parent 974d6a7 commit 893fcba
Show file tree
Hide file tree
Showing 10 changed files with 40 additions and 6 deletions.
9 changes: 9 additions & 0 deletions 02/terragrunt/live/stage-mon/backend.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Generated by Terragrunt. Sig: nIlQXj57tbuaRZEa
terraform {
backend "s3" {
bucket = "k8sclass-tf-state"
encrypt = true
key = "stage-mon/./terraform.tfstate"
region = "us-west-2"
}
}
7 changes: 7 additions & 0 deletions 02/terragrunt/live/stage-mon/provider.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Generated by Terragrunt. Sig: nIlQXj57tbuaRZEa
provider "aws" {
region = "us-west-2"
assume_role {
role_arn = local.iam_state.eks_dude_role.arn
}
}
9 changes: 9 additions & 0 deletions 02/terragrunt/live/stage-mon/state.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Generated by Terragrunt. Sig: nIlQXj57tbuaRZEa
data "terraform_remote_state" "iam" {
backend = "s3"
config = {
region = "us-west-2"
bucket = "k8sclass-tf-state"
key = "iam/terraform.tfstate"
}
}
2 changes: 1 addition & 1 deletion 02/terragrunt/live/stage/eks/terragrunt.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ inputs = {
k8s_version = 1.22
min_nodes = 1
desired_nodes = 3
max_nodes = 6
max_nodes = 7
}
2 changes: 1 addition & 1 deletion 03/ngx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ metadata:
name: ngx
namespace: default
spec:
replicas: 5
replicas: 1
selector:
matchLabels:
run: ngx
Expand Down
4 changes: 4 additions & 0 deletions 06/dynamo-example/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

all: build push


dev:
docker run -v ${PWD}/app:/app -d -p 8011:80 vallard/eks-dynamo

build:
docker build -t vallard/eks-dynamo .

Expand Down
5 changes: 5 additions & 0 deletions 06/dynamo-example/terraform/dynamo.tf
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ resource "aws_dynamodb_table_item" "dynamoUsers" {
"id": {"S": "12345"},
"email" : {"S": "[email protected]" },
"name" : {"S": "Mal" }
},
{
"id": {"S": "45"},
"email" : {"S": "[email protected]" },
"name" : {"S": "QueenOfmean" }
}
EOF
}
4 changes: 2 additions & 2 deletions app-api/app-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ spec:
creationPolicy: Owner
data:
- remoteRef:
key: sample-app-secret
key: super_slack_secrets
property: SLACK_TOKEN
secretKey: SLACK_TOKEN
- remoteRef:
key: sample-app-secret
key: super_slack_secrets
property: SLACK_CHANNEL
secretKey: SLACK_CHANNEL
- remoteRef:
Expand Down
2 changes: 1 addition & 1 deletion app-api/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ services:
- K8S_DB_PORT=3306
- K8S_DB_DATABASE=k8sdb
- SLACK_TOKEN=${SLACK_TOKEN}
- SLACK_CHANNEL=${SLACK_CHANNEL}
- SLACK_CHANNEL=C03NPPVGR3R
volumes:
- ./:/code/

Expand Down
2 changes: 1 addition & 1 deletion m04/slack-notifier.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ data:
type: slack
uid: QwYpzLaGz
secure_settings:
url: <put in your slack webhook here>
url: https://hooks.slack.com/services/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

0 comments on commit 893fcba

Please sign in to comment.