File tree Expand file tree Collapse file tree 7 files changed +12
-60
lines changed
Expand file tree Collapse file tree 7 files changed +12
-60
lines changed Original file line number Diff line number Diff line change 11data "aws_partition" "current" {
2- count = var. create && var . partition == " " ? 1 : 0
2+ count = var. create ? 1 : 0
33}
44data "aws_caller_identity" "current" {
5- count = var. create && var . account_id == " " ? 1 : 0
5+ count = var. create ? 1 : 0
66}
77
88locals {
9- partition = try (data. aws_partition . current [0 ]. partition , var . partition )
10- account_id = try (data. aws_caller_identity . current [0 ]. account_id , var . account_id )
9+ partition = try (data. aws_partition . current [0 ]. partition , " " )
10+ account_id = try (data. aws_caller_identity . current [0 ]. account_id , " " )
1111}
1212
1313# ###############################################################################
Original file line number Diff line number Diff line change @@ -17,18 +17,6 @@ variable "region" {
1717 default = null
1818}
1919
20- variable "partition" {
21- description = " The AWS partition - pass through value to reduce number of GET requests from data sources"
22- type = string
23- default = " "
24- }
25-
26- variable "account_id" {
27- description = " The AWS account ID - pass through value to reduce number of GET requests from data sources"
28- type = string
29- default = " "
30- }
31-
3220# ###############################################################################
3321# User Data
3422# ###############################################################################
Original file line number Diff line number Diff line change @@ -4,15 +4,15 @@ data "aws_region" "current" {
44 region = var. region
55}
66data "aws_partition" "current" {
7- count = var. create && var . partition == " " ? 1 : 0
7+ count = var. create ? 1 : 0
88}
99data "aws_caller_identity" "current" {
10- count = var. create && var . account_id == " " ? 1 : 0
10+ count = var. create ? 1 : 0
1111}
1212
1313locals {
14- account_id = try (data. aws_caller_identity . current [0 ]. account_id , var . account_id )
15- partition = try (data. aws_partition . current [0 ]. partition , var . partition )
14+ account_id = try (data. aws_caller_identity . current [0 ]. account_id , " " )
15+ partition = try (data. aws_partition . current [0 ]. partition , " " )
1616 region = try (data. aws_region . current [0 ]. region , " " )
1717}
1818
Original file line number Diff line number Diff line change @@ -18,18 +18,6 @@ variable "region" {
1818 default = null
1919}
2020
21- variable "partition" {
22- description = " The AWS partition - pass through value to reduce number of GET requests from data sources"
23- type = string
24- default = " "
25- }
26-
27- variable "account_id" {
28- description = " The AWS account ID - pass through value to reduce number of GET requests from data sources"
29- type = string
30- default = " "
31- }
32-
3321# ###############################################################################
3422# IAM Role
3523# ###############################################################################
Original file line number Diff line number Diff line change 11data "aws_partition" "current" {
2- count = var. create && var . partition == " " ? 1 : 0
2+ count = var. create ? 1 : 0
33}
44data "aws_caller_identity" "current" {
5- count = var. create && var . account_id == " " ? 1 : 0
5+ count = var. create ? 1 : 0
66}
77
88locals {
9- partition = try (data. aws_partition . current [0 ]. partition , var . partition )
10- account_id = try (data. aws_caller_identity . current [0 ]. account_id , var . account_id )
9+ partition = try (data. aws_partition . current [0 ]. partition , " " )
10+ account_id = try (data. aws_caller_identity . current [0 ]. account_id , " " )
1111}
1212
1313# ###############################################################################
Original file line number Diff line number Diff line change @@ -17,18 +17,6 @@ variable "region" {
1717 default = null
1818}
1919
20- variable "partition" {
21- description = " The AWS partition - pass through value to reduce number of GET requests from data sources"
22- type = string
23- default = " "
24- }
25-
26- variable "account_id" {
27- description = " The AWS account ID - pass through value to reduce number of GET requests from data sources"
28- type = string
29- default = " "
30- }
31-
3220# ###############################################################################
3321# User Data
3422# ###############################################################################
Original file line number Diff line number Diff line change @@ -233,10 +233,6 @@ module "fargate_profile" {
233233
234234 region = var. region
235235
236- # Pass through values to reduce GET requests from data sources
237- partition = local. partition
238- account_id = local. account_id
239-
240236 # Fargate Profile
241237 cluster_name = time_sleep. this [0 ]. triggers [" name" ]
242238 cluster_ip_family = var. ip_family
@@ -278,10 +274,6 @@ module "eks_managed_node_group" {
278274
279275 region = var. region
280276
281- # Pass through values to reduce GET requests from data sources
282- partition = local. partition
283- account_id = local. account_id
284-
285277 cluster_name = time_sleep. this [0 ]. triggers [" name" ]
286278 kubernetes_version = each. value . kubernetes_version != null ? each. value . kubernetes_version : time_sleep. this [0 ]. triggers [" kubernetes_version" ]
287279
@@ -406,10 +398,6 @@ module "self_managed_node_group" {
406398
407399 region = var. region
408400
409- # Pass through values to reduce GET requests from data sources
410- partition = local. partition
411- account_id = local. account_id
412-
413401 cluster_name = time_sleep. this [0 ]. triggers [" name" ]
414402
415403 # Autoscaling Group
You can’t perform that action at this time.
0 commit comments