Closed KieranP closed 4 months ago
Same problem here.
Thanks for raising this @KieranP - I'm getting the same issue - and thats with the current v1.14.0
release.
It's a shame this is an issue for 2021 - makes the provider in it's current state virtually useless for an existing Rollbar distribution, unless I'm missing something?
This is designed into the application. Our API will only create (import) users with standard
, light
and view
access_levels. The Everyone team will automatically add any imported user to any team, and the owner team is an admin level and needs to be added through the UI.
After some review, you can import the owners and everyone team resource, as long as you don't specify access_level explicitly in terraform file:
resource "rollbar_team" "owners_team" {
name = "Owners"
}
resource "rollbar_team" "everyone" {
name = "Everyone"
}
and the terraform state file will assign the access level correctly:
{
"mode": "managed",
"type": "rollbar_team",
"name": "owners_team",
"provider": "provider[\"registry.terraform.io/rollbar/rollbar\"]",
"instances": [
{
"schema_version": 0,
"attributes": {
"access_level": "owner",
"account_id": 111111,
"id": "72234e5345435",
"name": "Owners"
},
"sensitive_attributes": [],
"private": "*****"
}
]
}
When I change access_level to match what current exists ("owner" and "everyone"), then I get:
So importing these teams to link people to seems impossible.