-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdata.tf
More file actions
31 lines (22 loc) · 764 Bytes
/
data.tf
File metadata and controls
31 lines (22 loc) · 764 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
data "aws_caller_identity" "identity" {}
data "aws_partition" "current" {}
data "aws_region" "current" {}
data "aws_route53_zone" "domain" {
for_each = var.create_endpoint && var.hosted_zone_id == null ? toset(["this"]) : toset([])
name = var.domain
}
data "aws_secretsmanager_secret_version" "oidc" {
for_each = (
nonsensitive(var.oidc_settings) != null &&
nonsensitive(try(var.oidc_settings.client_id, null)) == null
) ? toset(["this"]) : toset([])
secret_id = var.oidc_settings.client_secret_arn
}
data "aws_ssm_parameter" "version" {
depends_on = [aws_ssm_parameter.version]
for_each = local.version_parameter != null ? toset([local.version_parameter]) : []
name = each.value
}
data "aws_vpc" "current" {
id = var.vpc_id
}