Skip to content

Commit 7b510b1

Browse files
committed
feat: examples use
1 parent ed935cf commit 7b510b1

File tree

7 files changed

+15
-11
lines changed

7 files changed

+15
-11
lines changed

infra/data.tf renamed to infra/example/data.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
data "aws_region" "current" {}
22

33
data "aws_iam_role" "this" {
4-
name = "ecs-tasks-demo"
4+
name = var.role_iam
55
}
66

77
data "aws_ecr_image" "this" {
8-
repository_name = "demo/kotlin-app-canary"
8+
repository_name = var.ecr_repository
99
most_recent = true
1010
}
1111

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
env = "dev"
2+
3+
role_iam = "ecs-tasks-demo"
4+
service_name = "kotlin-canary"
5+
ecs_cluster_name = "ecs-kotlin-canary"
6+
7+
ecr_repository = "demo/kotlin-app-canary"
8+
env_variables = []
9+
10+
port_application = 8080

infra/main.tf renamed to infra/example/main.tf

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module "alb" {
2-
source = "./application-load-balancer"
2+
source = "git::https://github.com/dalfinha/ecs-fargate-kotlin-canary-datadog.git//infra/application-load-balancer?ref=develop"
33

44
#ALB
55
scope = var.service_name
@@ -14,10 +14,9 @@ module "alb" {
1414

1515
module "ecs-service" {
1616
depends_on = [ module.alb ]
17-
source = "./ecs-service"
17+
source = "git::https://github.com/dalfinha/ecs-fargate-kotlin-canary-datadog.git//infra/ecs-service?ref=develop"
1818

1919
env = "dev"
20-
2120
# Service Config
2221
ecs_cluster_name = var.ecs_cluster_name
2322
service_name = var.service_name
@@ -37,7 +36,7 @@ module "ecs-service" {
3736

3837
module "code-deploy" {
3938
depends_on = [ module.ecs-service ]
40-
source = "./codedeploy-scope"
39+
source = "git::https://github.com/dalfinha/ecs-fargate-kotlin-canary-datadog.git//infra/codedeploy-scope?ref=develop"
4140

4241
# Config Service
4342
cluster_name = module.ecs-service.cluster_name
File renamed without changes.
File renamed without changes.
File renamed without changes.

infra/inventories/variables.tfvars

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)