Skip to content

Commit aa9ce2a

Browse files
committed
wip
1 parent 6936cee commit aa9ce2a

File tree

1 file changed

+29
-29
lines changed

1 file changed

+29
-29
lines changed
Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
1-
locals {
2-
deploy_user_list = toset([
3-
"snowflake_deploy_staging",
4-
"snowflake_deploy_prod",
5-
])
6-
}
1+
# locals {
2+
# deploy_user_list = toset([
3+
# "snowflake_deploy_staging",
4+
# "snowflake_deploy_prod",
5+
# ])
6+
# }
77

8-
# This authentication policy allows only keypair and is used for service users.
9-
resource "snowflake_authentication_policy" "allow_only_keypair" {
10-
provider = snowflake.securityadmin
11-
database = snowflake_database.common_db.name
12-
schema = snowflake_schema.common_common_schema.name
13-
name = "ALLOW_ONLY_KEYPAIR"
14-
authentication_methods = ["KEYPAIR"]
15-
comment = "Allow only authentication by keypair"
16-
depends_on = [
17-
snowflake_database.common_db,
18-
snowflake_schema.common_common_schema,
19-
]
20-
}
8+
# # This authentication policy allows only keypair and is used for service users.
9+
# resource "snowflake_authentication_policy" "allow_only_keypair" {
10+
# provider = snowflake.securityadmin
11+
# database = snowflake_database.common_db.name
12+
# schema = snowflake_schema.common_common_schema.name
13+
# name = "ALLOW_ONLY_KEYPAIR"
14+
# authentication_methods = ["KEYPAIR"]
15+
# comment = "Allow only authentication by keypair"
16+
# depends_on = [
17+
# snowflake_database.common_db,
18+
# snowflake_schema.common_common_schema,
19+
# ]
20+
# }
2121

22-
# Attach keypair auth policy to all deploy users defined in the local variable
23-
resource "snowflake_user_authentication_policy_attachment" "attach_allow_only_keypair_to_service_users" {
24-
provider = snowflake.securityadmin
25-
for_each = local.deploy_user_list
26-
authentication_policy_name = snowflake_authentication_policy.allow_only_keypair.fully_qualified_name
27-
user_name = each.value
28-
depends_on = [
29-
snowflake_authentication_policy.allow_only_keypair,
30-
]
31-
}
22+
# # Attach keypair auth policy to all deploy users defined in the local variable
23+
# resource "snowflake_user_authentication_policy_attachment" "attach_allow_only_keypair_to_service_users" {
24+
# provider = snowflake.securityadmin
25+
# for_each = local.deploy_user_list
26+
# authentication_policy_name = snowflake_authentication_policy.allow_only_keypair.fully_qualified_name
27+
# user_name = each.value
28+
# depends_on = [
29+
# snowflake_authentication_policy.allow_only_keypair,
30+
# ]
31+
# }

0 commit comments

Comments
 (0)