Facing issue while creating dedicated cluster

Hi Team,

I have proper terraform code to build cluster, environments,api keys , topics etc etc.
my code is working fine for standara and basic cluster but getting below error while creating dedicated cluster.
Error: error creating Kafka Topic: 401 API-key based authentication failed.: API-key based authentication failed.

│ with module.confluent_kafka_topic.confluent_kafka_topic.topics[“test2”],
│ on …/…/modules/topic/main.tf line 17, in resource “confluent_kafka_topic” “topics”:
│ 17: resource “confluent_kafka_topic” “topics” {



│ Error: error creating Kafka Topic: 401 API-key based authentication failed.: API-key based authentication failed.

│ with module.confluent_kafka_topic.confluent_kafka_topic.topics[“test4”],
│ on …/…/modules/topic/main.tf line 17, in resource “confluent_kafka_topic” “topics”:
│ 17: resource “confluent_kafka_topic” “topics” {

Could you please help me with the solutions.