Skip to content

Commit

Permalink
Refactored code
Browse files Browse the repository at this point in the history
  • Loading branch information
siddharth-singh1 committed Dec 2, 2024
1 parent 77a28ad commit 3f23674
Show file tree
Hide file tree
Showing 25 changed files with 929 additions and 751 deletions.
110 changes: 0 additions & 110 deletions example/.terraform.lock.hcl

This file was deleted.

25 changes: 25 additions & 0 deletions example/alb/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 32 additions & 0 deletions example/alb/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
terraform {
required_version = "~> 1.5"

required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 5.0"
}
}
}


module "alb" {
source = "../../modules/alb"

alb = {
name = "arc-poc-alb"
internal = false
}

alb_target_group = [{
name = "arc-poc-alb-tg"
port = 80
vpc_id = "vpc-1234"
health_check = {
enabled = true
path = "/"
}
}]

listener_rules = {}
}
43 changes: 0 additions & 43 deletions example/data.tf

This file was deleted.

File renamed without changes.
25 changes: 25 additions & 0 deletions example/ecs-cluster/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
79 changes: 79 additions & 0 deletions example/ecs-cluster/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
################################################################################
## defaults
################################################################################
terraform {
required_version = "~> 1.5"

required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 5.0"
}
}
}

module "tags" {
source = "sourcefuse/arc-tags/aws"
version = "1.2.3"
environment = var.environment
project = "Example"

extra_tags = {
RepoName = "terraform-aws-refarch-ecs"
Example = "true"
}
}

provider "aws" {
region = var.region
}

################################################################################
## ecs
################################################################################
module "ecs" {
source = "../modules/ecs"

create = true

ecs_cluster = {
cluster_name = "arc-ecs-module-poc"
cluster_service_connect_defaults = []
create_cloudwatch_log_group = true
cluster_service_connect_defaults = {}
cluster_settings = []
cluster_configuration = {
execute_command_configuration = {
logging = "OVERRIDE"
log_configuration = {
cloud_watch_log_group_name = "arc-poc-cluster-log-group"
}
}
}

}

cloudwatch = {
log_group_name = "arc-poc-cluster-log-group"
log_group_retention_in_days = 5
log_group_tags = { Environment = "poc" }
}

capacity_provider = {
autoscaling_capacity_providers = {}
fargate_capacity_providers = {
fargate_cp = {
name = "FARGATE"
tags = {
Environment = "poc"
}
}
}
default_capacity_provider_use_fargate = true
}

tags = {
Project = "arc-poc-ecs"
Environment = "poc"
}
}
File renamed without changes.
3 changes: 0 additions & 3 deletions example/locals.tf

This file was deleted.

65 changes: 0 additions & 65 deletions example/main.tf

This file was deleted.

Loading

0 comments on commit 3f23674

Please sign in to comment.