Skip to content

Commit 733d950

Browse files
author
rohit-ng
committed
refactor: move data sources to main
1 parent 39acf80 commit 733d950

File tree

2 files changed

+20
-19
lines changed

2 files changed

+20
-19
lines changed

data.tf

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

main.tf

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
data "aws_vpc" "vpc" {
2+
id = var.vpc_id
3+
}
4+
5+
data "aws_ssm_parameter" "rds" {
6+
for_each = toset(local.ssm_parameters.rds)
7+
name = "/rds/${each.value}"
8+
with_decryption = true
9+
}
10+
11+
data "aws_ssm_parameter" "github" {
12+
for_each = toset(local.ssm_parameters.github)
13+
name = "/github-action/${each.value}"
14+
with_decryption = true
15+
}
16+
117
################################################################################
218
# Postgres Security Group
319
################################################################################
@@ -167,6 +183,10 @@ module "ecs_exec_role" {
167183
# ECS Kong
168184
################################################################################
169185

186+
data "aws_autoscaling_group" "this" {
187+
name = var.asg_name
188+
}
189+
170190
module "ecs_kong" {
171191
source = "infraspecdev/ecs-deployment/aws"
172192
version = "~> 2.0.0"

0 commit comments

Comments
 (0)