Skip to content

Switch roles for resource provisioning. #1659

Closed Answered by tamathew
tamathew asked this question in Q&A
Discussion options

You must be logged in to vote

I fixed this by using the below format

`provider "snowflake" {

alias = "useradmin_user"
role = "USERADMIN"

}
resource "snowflake_user" "nrt_user" {
provider = snowflake.useradmin_user
name = "SQMS_SVC_NRT_USER"
password = "mypassword123"
login_name = "SQMS_SVC_NRT_USER"
comment = "SQMS Kafka user. Created in Mar 2023"
disabled = false
display_name = "SQMS NRT User"
first_name = "SQMS"
last_name = "NRT"
must_change_password = true
}`

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tamathew
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant