Skip to content

Commit

Permalink
Merge pull request #29 from transcend-io/dmattia/0.13_terraform
Browse files Browse the repository at this point in the history
Upgrade for terraform 0.13
  • Loading branch information
dmattia authored Oct 23, 2020
2 parents 076ada0 + 890874b commit 78afe52
Show file tree
Hide file tree
Showing 10 changed files with 24 additions and 486 deletions.
13 changes: 8 additions & 5 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ module load_balancer {
############

module container_definition {
source = "./modules/fargate_container_definition"
source = "transcend-io/fargate-container/aws"
version = "1.5.1"

name = "${var.deploy_env}-${var.project_id}-container"
image = var.ecr_image
Expand Down Expand Up @@ -124,7 +125,8 @@ module container_definition {
###############

module service {
source = "./modules/fargate_service"
source = "transcend-io/fargate-service/aws"
version = "0.4.0"

name = "${var.deploy_env}-${var.project_id}-sombra-service"
desired_count = var.desired_count
Expand All @@ -143,9 +145,10 @@ module service {
)

additional_task_policy_arns = concat([
module.container_definition.secrets_policy_arn,
aws_iam_policy.kms_policy.arn,
], var.extra_task_policy_arns)
aws_iam_policy.kms_policy.arn],
module.container_definition.secrets_policy_arns,
var.extra_task_policy_arns
)
additional_task_policy_arns_count = 2 + length(var.extra_task_policy_arns)

load_balancers = [
Expand Down
110 changes: 0 additions & 110 deletions modules/fargate_container_definition/main.tf

This file was deleted.

19 changes: 0 additions & 19 deletions modules/fargate_container_definition/outputs.tf

This file was deleted.

130 changes: 0 additions & 130 deletions modules/fargate_container_definition/variables.tf

This file was deleted.

43 changes: 0 additions & 43 deletions modules/fargate_service/execution_role.tf

This file was deleted.

Loading

0 comments on commit 78afe52

Please sign in to comment.