{"action":"opened","issue":{"url":"https://api.github.com/repos/terraform-providers/terraform-provider-aws/issues/4476","repository_url":"https://api.github.com/repos/terraform-providers/terraform-provider-aws","labels_url":"https://api.github.com/repos/terraform-providers/terraform-provider-aws/issues/4476/labels{/name}","comments_url":"https://api.github.com/repos/terraform-providers/terraform-provider-aws/issues/4476/comments","events_url":"https://api.github.com/repos/terraform-providers/terraform-provider-aws/issues/4476/events","html_url":"https://github.com/terraform-providers/terraform-provider-aws/issues/4476","id":321094791,"number":4476,"title":"Required attributes are not writable","user":{"login":"apv1","id":35684175,"avatar_url":"https://avatars3.githubusercontent.com/u/35684175?v=4","gravatar_id":"","url":"https://api.github.com/users/apv1","html_url":"https://github.com/apv1","followers_url":"https://api.github.com/users/apv1/followers","following_url":"https://api.github.com/users/apv1/following{/other_user}","gists_url":"https://api.github.com/users/apv1/gists{/gist_id}","starred_url":"https://api.github.com/users/apv1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apv1/subscriptions","organizations_url":"https://api.github.com/users/apv1/orgs","repos_url":"https://api.github.com/users/apv1/repos","events_url":"https://api.github.com/users/apv1/events{/privacy}","received_events_url":"https://api.github.com/users/apv1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-08T08:43:25Z","updated_at":"2018-05-08T08:43:25Z","closed_at":null,"author_association":"NONE","body":"<!--- Please keep this note for the community --->\r\n\r\n### Community Note\r\n\r\n* Please vote on this issue by adding a 👍 [reaction](https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/) to the original issue to help the community and maintainers prioritize this request\r\n* Please do not leave \"+1\" or \"me too\" comments, they generate extra noise for issue followers and do not help prioritize the request\r\n* If you are interested in working on this issue or have submitted a pull request, please leave a comment\r\n\r\n<!--- Thank you for keeping this note for the community --->\r\n\r\n### Terraform Version\r\nTerraform v0.11.7\r\n+ provider.aws v1.17.0\r\n\r\n### Affected Resource(s)\r\n* aws_cognito_user_pool\r\n* aws_cognito_user_pool_client\r\n\r\n### Terraform Configuration Files\r\n\r\n```hcl\r\nresource \"aws_cognito_user_pool\" \"main\" {\r\n  name = \"app_env\"\r\n\r\n  schema {\r\n    attribute_data_type = \"String\"\r\n    name                = \"name\"\r\n    required            = true\r\n  }\r\n\r\n  schema {\r\n    attribute_data_type = \"String\"\r\n    name                = \"email\"\r\n    required            = true\r\n  }\r\n\r\n  # extra options\r\n  ...\r\n}\r\n\r\nresource \"aws_cognito_user_pool_client\" \"web\" {\r\n  name = \"web\"\r\n  user_pool_id = \"${aws_cognito_user_pool.main.id}\"\r\n\r\n  read_attributes = [\"name\", \"email\"]\r\n  write_attributes = [\"name\", \"email\"]\r\n\r\n  # extra options\r\n  ...\r\n}\r\n```\r\n\r\n### Expected Behavior\r\n\r\nRequired attributes in cognito are writable by default and calls to cognito API methods should allow modification.\r\n\r\n### Actual Behavior\r\n\r\nAttributes are set as writable visually in \"App Client\" -> \"Set attribute read and write permissions\" but the are not behaving as writable when calling the cognito API method to modify them:\r\nAWSCognitoIdentityProviderService.UpdateUserAttributes\r\n\r\nhttps://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_UpdateUserAttributes.html\r\n\r\nError response:\r\n{\r\n    \"__type\": \"InvalidParameterException\",\r\n    \"message\": \"Invalid user attributes: name: Attribute cannot be updated.\\n\"\r\n}\r\n\r\n### Important Factoids\r\n\r\nWhen creating the user pool using amazon console attributes are writable and calls to AWSCognitoIdentityProviderService.UpdateUserAttributes are working.\r\n"}}
{"actor":{"display_login":"apv1"}}