-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: upgrade to 5.x compatibility + documentation (#17)
- Loading branch information
Abdul Wahid
authored
Jul 26, 2023
1 parent
f9e3259
commit 0c2e424
Showing
11 changed files
with
96 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
provider "aws" { | ||
region = "eu-west-1" | ||
} | ||
|
||
terraform { | ||
required_version = "1.0.11" | ||
|
||
required_providers { | ||
aws = { | ||
source = "hashicorp/aws" | ||
version = "~> 5" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,3 @@ | ||
provider "aws" { | ||
region = "eu-west-1" | ||
} | ||
|
||
resource "aws_efs_file_system" "efs" { | ||
creation_token = "efs-html" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
provider "aws" { | ||
region = "eu-west-1" | ||
} | ||
|
||
terraform { | ||
required_version = "1.0.11" | ||
|
||
required_providers { | ||
aws = { | ||
source = "hashicorp/aws" | ||
version = "~> 5" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,69 +1,69 @@ | ||
output "task_role_arn" { | ||
description = "The Amazon Resource Name (ARN) specifying the ECS service role." | ||
value = join("", aws_iam_role.task.*.arn) | ||
value = var.enabled ? aws_iam_role.task[0].arn : null | ||
} | ||
|
||
output "task_role_name" { | ||
description = "The name of the Fargate task service role." | ||
value = join("", aws_iam_role.task.*.name) | ||
value = var.enabled ? aws_iam_role.task[0].name : null | ||
} | ||
|
||
output "task_role_create_date" { | ||
description = "The creation date of the IAM role." | ||
value = join("", aws_iam_role.task.*.create_date) | ||
value = var.enabled ? aws_iam_role.task[0].create_date : null | ||
} | ||
|
||
output "task_role_id" { | ||
description = "The ID of the role." | ||
value = join("", aws_iam_role.task.*.id) | ||
value = var.enabled ? aws_iam_role.task[0].id : null | ||
} | ||
|
||
output "task_role_unique_id" { | ||
description = "The stable and unique string identifying the role." | ||
value = join("", aws_iam_role.task.*.unique_id) | ||
value = var.enabled ? aws_iam_role.task[0].unique_id : null | ||
} | ||
|
||
output "execution_role_arn" { | ||
description = "The Amazon Resource Name (ARN) of execution role." | ||
value = join("", aws_iam_role.execution.*.arn) | ||
description = "The Amazon Resource Name (ARN : null of execution role." | ||
value = var.enabled ? aws_iam_role.execution[0].arn : null | ||
} | ||
|
||
output "execution_role_name" { | ||
description = "The name of the execution service role." | ||
value = join("", aws_iam_role.execution.*.name) | ||
value = var.enabled ? aws_iam_role.execution[0].name : null | ||
} | ||
|
||
output "execution_role_create_date" { | ||
description = "The creation date of the IAM role." | ||
value = join("", aws_iam_role.execution.*.create_date) | ||
value = var.enabled ? aws_iam_role.execution[0].create_date : null | ||
} | ||
|
||
output "execution_role_id" { | ||
description = "The ID of the execution role." | ||
value = join("", aws_iam_role.execution.*.id) | ||
value = var.enabled ? aws_iam_role.execution[0].id : null | ||
} | ||
|
||
output "execution_role_unique_id" { | ||
description = "The stable and unique string identifying the role." | ||
value = join("", aws_iam_role.execution.*.unique_id) | ||
value = var.enabled ? aws_iam_role.execution[0].unique_id : null | ||
} | ||
|
||
output "task_definition_arn" { | ||
description = "Full ARN of the Task Definition (including both family and revision)." | ||
value = join("", aws_ecs_task_definition.task.*.arn) | ||
value = var.enabled ? aws_ecs_task_definition.task[0].arn : null | ||
} | ||
|
||
output "task_definition_family" { | ||
description = "The family of the Task Definition." | ||
value = join("", aws_ecs_task_definition.task.*.family) | ||
value = var.enabled ? aws_ecs_task_definition.task[0].family : null | ||
} | ||
|
||
output "task_definition_revision" { | ||
description = "The revision of the task in a particular family." | ||
value = join("", aws_ecs_task_definition.task.*.revision) | ||
value = var.enabled ? aws_ecs_task_definition.task[0].revision : null | ||
} | ||
|
||
output "container_port" { | ||
description = "Port on which the container is listening." | ||
value = var.task_container_port | ||
value = var.enabled ? var.task_container_port : null | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
terraform { | ||
required_version = ">= 0.12.6" | ||
required_version = ">= 1.0.11" | ||
|
||
required_providers { | ||
aws = ">= 2.68" | ||
aws = { | ||
source = "hashicorp/aws" | ||
version = ">= 3.76.1" | ||
} | ||
|
||
} | ||
} |