Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to Create JSM service using Terraform Provider

Apurva Kaushik
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 18, 2026

Hi Team,

I am attempting to create JSM services using our service.json file through the Atlassian Operations
provider "atlassian-operations"

The Terraform plan step completes successfully, but during terraform apply, the resource creation fails with the following error:
│ Error: Client Error
│ Unable to create JSM service, status code: 401. Got response:
│ {"code":401,"message":"Unauthorized"}

I have already verified that the provider configuration and credentials are set correctly.

I am using below details to configure the Provider.

provider "atlassian-operations" {
  domain_name   = var.atlassian_domain
  email_address = var.atlassian_email
  token         = var.atlassian_api_token
  cloud_id      = var.atlassian_cloud_id
}

Could you please help investigate why the API call is failing with a 401 during service creation?

Thank you.

1 answer

1 vote
Sebastian Krzewiński
Community Champion
January 19, 2026

Hi @Apurva Kaushik 

 

401 means that your token or email are incorrect. Can you check this again?

 

Regards,

Seba

Apurva Kaushik
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 19, 2026

Hi @Sebastian Krzewiński what do you mean by incorrect ? are you referring to scope permission or typo ?

 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events