Closed kevinduterne closed 2 years ago
Little status update I was able to resolve the issue by manually adding one user and then importing the resource.
I think the issue has something to do with the account being a bitbucket teams account :
It failed import/creation in this state :
{
"name": "everyone",
"permission": null,
"email_forwarding_disabled": false,
"auto_add": false,
"members": [],
"owner": {
"display_name": "CompanyOwner",
"uuid": "{xxxxxxxxxxxxxxxxxxx}",
"account_id": null,
"is_team": true,
"avatar": "https://bitbucket.org/account/company/avatar/?ts=xxxxxxxxxxxxxxxx",
"nickname": "Company",
"resource_uri": "/1.0/users/%xxxxxxxxxxxxxxxxxxxxxxxxxxxx"
},
"slug": "everyone"
},
When adding one user in the UI and becoming this state it worked
{
"name": "everyone",
"permission": null,
"email_forwarding_disabled": false,
"auto_add": false,
"members": [
{
"display_name": "Kevin Duterne",
"account_id": "xxxxxxxxxxxxxxxxxxxx",
"is_active": true,
"is_team": false,
"is_staff": false,
"avatar": "https://avatar-management--avatars.us-west-2.prod.public.atl-paas.net/557058:d9c0821a-55f5-49cf-8e48-571c69cfa9c2/54bf92b4-3ca1-4274-bd90-21551a44de24/128",
"resource_uri": "/api/1.0/users/%7Bxxxxxxxxxxxxxxxxxxxxxxx%7D",
"nickname": "Kevin Duterne",
"uuid": "{xxxxxxxxxxxxxxxxxxxxxx}"
}
],
"owner": {
"display_name": "Company-Owner",
"uuid": "{xxxxxxxxxxxxxxxxxxx}",
"account_id": null,
"is_team": true,
"avatar": "https://bitbucket.org/account/company/avatar/?ts=xxxxxxxxx",
"nickname": "company",
"resource_uri": "/1.0/users/%xxxxxxxxxxxxxx
},
"slug": "everyone"
},
Good to see you were able to resolve it 🙂
When trying to create a group the group is created but not found in a refresh
Provider version = 1.0.3 Terraform version = 1.1.2 / 1.1.8
Create a group with this code
groups.auto.tfvars
We get a correct plan
But then the apply seems to fail however the group is visible in bitbucket Also dont seem to be able to import the group