-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tf
41 lines (36 loc) · 1.36 KB
/
main.tf
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
32
33
34
35
36
37
38
39
40
41
terraform {
cloud {
organization = "signalroom"
workspaces {
name = "iac-snowflake-resources-workspace"
}
}
# Using the "pessimistic constraint operators" for all the Providers to ensure
# that the provider version is compatible with the configuration. Meaning
# only patch-level updates are allowed but minor-level and major-level
# updates of the Providers are not allowed
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 5.83.0"
}
snowflake = {
source = "Snowflake-Labs/snowflake"
version = "~> 1.0.1"
}
}
}
# Create the Snowflake user RSA keys pairs
module "snowflake_user_rsa_key_pairs_rotation" {
source = "github.com/j3-signalroom/iac-snowflake-user-rsa_key_pairs_rotation-tf_module"
# Required Input(s)
aws_region = var.aws_region
aws_account_id = var.aws_account_id
snowflake_account = jsondecode(data.aws_secretsmanager_secret_version.admin_public_keys.secret_string)["account"]
service_account_user = var.service_account_user
# Optional Input(s)
day_count = var.day_count
aws_lambda_memory_size = var.aws_lambda_memory_size
aws_lambda_timeout = var.aws_lambda_timeout
aws_log_retention_in_days = var.aws_log_retention_in_days
}