Open mmclane opened 1 year ago
Its worth noting that using c:phone_number results in a custom attribute named custom:c:phone_number
I have also found that I can use phonenumber and it will create the custom attribute as custom:phonenumber. It does still have the wrong maxvalue (2048) however.
Its worth noting that I can go through the AWS console at create a custom string attribute with phone_number. We are also creating these with terraform today.
What happened?
I am trying to write an XRD to build out cognito user pools for our devs. When I try to configure a custom attribute I am seeing behavior I don't expect. I think there is something wrong with this fuctionality.
Issues:
When I set the schema as follows it only sets email as required, phone_number doesn't get created
If however I set the name to be custom:phone_number it does create the additional attribute but its not configured as I would expect. The name ends up being custom:custom:phone_number. Additionally the maxValue isn't 12, its 2048.
If I however set the attributeDataType to Number and use numberAttributeConstraints instead everything works as expected.
How can we reproduce it?
This is the XRD that I am working on.
What environment did it happen in?