{"action":"created","issue":{"url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/issues/667","repository_url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm","labels_url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/issues/667/labels{/name}","comments_url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/issues/667/comments","events_url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/issues/667/events","html_url":"https://github.com/terraform-providers/terraform-provider-azurerm/issues/667","id":286760879,"node_id":"MDU6SXNzdWUyODY3NjA4Nzk=","number":667,"title":"Improvement: automatically generate UUID for azurerm_role_assignment","user":{"login":"jansepke","id":625043,"node_id":"MDQ6VXNlcjYyNTA0Mw==","avatar_url":"https://avatars0.githubusercontent.com/u/625043?v=4","gravatar_id":"","url":"https://api.github.com/users/jansepke","html_url":"https://github.com/jansepke","followers_url":"https://api.github.com/users/jansepke/followers","following_url":"https://api.github.com/users/jansepke/following{/other_user}","gists_url":"https://api.github.com/users/jansepke/gists{/gist_id}","starred_url":"https://api.github.com/users/jansepke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jansepke/subscriptions","organizations_url":"https://api.github.com/users/jansepke/orgs","repos_url":"https://api.github.com/users/jansepke/repos","events_url":"https://api.github.com/users/jansepke/events{/privacy}","received_events_url":"https://api.github.com/users/jansepke/received_events","type":"User","site_admin":false},"labels":[{"id":794840306,"node_id":"MDU6TGFiZWw3OTQ4NDAzMDY=","url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/labels/authentication","name":"authentication","color":"00e600","default":false},{"id":620326282,"node_id":"MDU6TGFiZWw2MjAzMjYyODI=","url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/labels/enhancement","name":"enhancement","color":"e6e600","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-01-08T14:25:53Z","updated_at":"2018-06-08T08:01:13Z","closed_at":"2018-01-16T09:44:15Z","author_association":"CONTRIBUTOR","body":"### Terraform Version\r\nTerraform v0.11.1\r\n+ provider.azurerm v1.0.0\r\n\r\n### Affected Resource(s)\r\nazurerm_role_assignment\r\n\r\n### Terraform Configuration Files\r\n```hcl\r\nresource \"azurerm_role_assignment\" \"test\" {\r\n  name               = \"1a679e7d-719c-42bf-9141-15c8de83836d\" // random UUID\r\n  scope              = \"...\"\r\n  role_definition_id = \"...\"\r\n  principal_id       = \"...\"\r\n}\r\n```\r\n\r\nHi there,\r\n\r\nI don't understand why I need to specify a unique UUID for a azurerm_role_assignment resource. This makes this piece of code less modular. Would it be possible to make this property optional and fall back to an automatically generated UUID? Or is there any way to generate a static UUID in terraform? When I use the `${uuid()}` interpolation, terraform will recreate the azurerm_role_assignment each run because the interpolation has changed.\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/issues/comments/395682031","html_url":"https://github.com/terraform-providers/terraform-provider-azurerm/issues/667#issuecomment-395682031","issue_url":"https://api.github.com/repos/terraform-providers/terraform-provider-azurerm/issues/667","id":395682031,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NTY4MjAzMQ==","user":{"login":"JamesDLD","id":18073917,"node_id":"MDQ6VXNlcjE4MDczOTE3","avatar_url":"https://avatars2.githubusercontent.com/u/18073917?v=4","gravatar_id":"","url":"https://api.github.com/users/JamesDLD","html_url":"https://github.com/JamesDLD","followers_url":"https://api.github.com/users/JamesDLD/followers","following_url":"https://api.github.com/users/JamesDLD/following{/other_user}","gists_url":"https://api.github.com/users/JamesDLD/gists{/gist_id}","starred_url":"https://api.github.com/users/JamesDLD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JamesDLD/subscriptions","organizations_url":"https://api.github.com/users/JamesDLD/orgs","repos_url":"https://api.github.com/users/JamesDLD/repos","events_url":"https://api.github.com/users/JamesDLD/events{/privacy}","received_events_url":"https://api.github.com/users/JamesDLD/received_events","type":"User","site_admin":false},"created_at":"2018-06-08T08:01:13Z","updated_at":"2018-06-08T08:01:13Z","author_association":"NONE","body":"Thanks for this improvement, just raised the same improvement here #1371 for the resource **role_definition_id** "}}
{"actor":{"display_login":"JamesDLD"}}