Skip to content

Commit 3f23674

Browse files
Refactored code
1 parent 77a28ad commit 3f23674

25 files changed

+929
-751
lines changed

example/.terraform.lock.hcl

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

example/alb/.terraform.lock.hcl

Lines changed: 25 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/alb/main.tf

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
terraform {
2+
required_version = "~> 1.5"
3+
4+
required_providers {
5+
aws = {
6+
source = "hashicorp/aws"
7+
version = "~> 5.0"
8+
}
9+
}
10+
}
11+
12+
13+
module "alb" {
14+
source = "../../modules/alb"
15+
16+
alb = {
17+
name = "arc-poc-alb"
18+
internal = false
19+
}
20+
21+
alb_target_group = [{
22+
name = "arc-poc-alb-tg"
23+
port = 80
24+
vpc_id = "vpc-1234"
25+
health_check = {
26+
enabled = true
27+
path = "/"
28+
}
29+
}]
30+
31+
listener_rules = {}
32+
}

example/data.tf

Lines changed: 0 additions & 43 deletions
This file was deleted.
File renamed without changes.

example/ecs-cluster/.terraform.lock.hcl

Lines changed: 25 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
File renamed without changes.

example/ecs-cluster/main.tf

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
################################################################################
2+
## defaults
3+
################################################################################
4+
terraform {
5+
required_version = "~> 1.5"
6+
7+
required_providers {
8+
aws = {
9+
source = "hashicorp/aws"
10+
version = "~> 5.0"
11+
}
12+
}
13+
}
14+
15+
module "tags" {
16+
source = "sourcefuse/arc-tags/aws"
17+
version = "1.2.3"
18+
environment = var.environment
19+
project = "Example"
20+
21+
extra_tags = {
22+
RepoName = "terraform-aws-refarch-ecs"
23+
Example = "true"
24+
}
25+
}
26+
27+
provider "aws" {
28+
region = var.region
29+
}
30+
31+
################################################################################
32+
## ecs
33+
################################################################################
34+
module "ecs" {
35+
source = "../modules/ecs"
36+
37+
create = true
38+
39+
ecs_cluster = {
40+
cluster_name = "arc-ecs-module-poc"
41+
cluster_service_connect_defaults = []
42+
create_cloudwatch_log_group = true
43+
cluster_service_connect_defaults = {}
44+
cluster_settings = []
45+
cluster_configuration = {
46+
execute_command_configuration = {
47+
logging = "OVERRIDE"
48+
log_configuration = {
49+
cloud_watch_log_group_name = "arc-poc-cluster-log-group"
50+
}
51+
}
52+
}
53+
54+
}
55+
56+
cloudwatch = {
57+
log_group_name = "arc-poc-cluster-log-group"
58+
log_group_retention_in_days = 5
59+
log_group_tags = { Environment = "poc" }
60+
}
61+
62+
capacity_provider = {
63+
autoscaling_capacity_providers = {}
64+
fargate_capacity_providers = {
65+
fargate_cp = {
66+
name = "FARGATE"
67+
tags = {
68+
Environment = "poc"
69+
}
70+
}
71+
}
72+
default_capacity_provider_use_fargate = true
73+
}
74+
75+
tags = {
76+
Project = "arc-poc-ecs"
77+
Environment = "poc"
78+
}
79+
}
File renamed without changes.

example/locals.tf

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

0 commit comments

Comments
 (0)