Open MichaelOtte-lhsystems opened 9 months ago
Hey @MichaelOtte-lhsystems,
This was changed from argument to attribute for the okta_brand
resource because it you have the email_domain_id
argument set and have brand_id
argument set on the okta_email_domain
resource you will get a Terraform cyclical error.
The way this should be done is:
email_domain_id
.okta_email_domain
set the brand_id
with the id you retrieve from step 2.I recognised that there was a change https://github.com/okta/terraform-provider-okta/issues/1824 but how could the email_domain_id attached to brand if you have multiple brands as okta_email_domain only support one brand_id?
` resource "okta_brand" "example1" { name = "example1 } resource "okta_brand" "example1" { name = "example1 }
resource "okta_email_domain" "example" { brand_id = "example1" domain = "example.com" display_name = "test" user_name = "paul_atreides" }`
Hey @MichaelOtte-lhsystems,
This was changed from argument to attribute for the
okta_brand
resource because it you have theemail_domain_id
argument set and havebrand_id
argument set on theokta_email_domain
resource you will get a Terraform cyclical error.The way this should be done is:
- Set the brand without
email_domain_id
.- Grab the brand id from the output of of step 1.
- On the
okta_email_domain
set thebrand_id
with the id you retrieve from step 2.
@mvitt Thanks for clarification.
How I can assign multiple brand_id's to the same okta_email_domain?
There is only one brand id per email_domain https://developer.okta.com/docs/api/openapi/okta-management/management/tag/EmailDomain/#tag/EmailDomain/operation/createEmailDomain
@duytiennguyen-okta thanks for pointing me to API with only one brand_id
If you request the email domains one "emailDomainId" could be assigned to multiple brands.
OKTA internal reference https://oktainc.atlassian.net/browse/OKTA-690454
Are there any change planned? We still stuck on Okta TF plugin 4.4.3 until this issue is fixed.
Community Note
Terraform Version
1.6.6
Affected Resource(s)
Terraform Configuration Files
Debug Output
Panic Output
Expected Behavior
terraform apply will change the "email_domain_id" for brand so it should not be defined as Read-Only
Can this be done in the Admin UI?
Can this be done in the actual API call?
Actual Behavior
Steps to Reproduce
terraform validate
Important Factoids
References
0000