-
Notifications
You must be signed in to change notification settings - Fork 9.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Various aws_cognito_identity_provider improvements #10705
Various aws_cognito_identity_provider improvements #10705
Conversation
Added plan time checks for some parameters and also ignored the computed diff caused by not specifying the optional attribute_mapping.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @tomelliff 👋 Thank you for submitting this and sorry for the delayed review. Can you please rebase this against master and make these small adjustments? Thanks.
Elem: &schema.Schema{ | ||
Type: schema.TypeString, | ||
ValidateFunc: validation.StringLenBetween(1, 32), | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the API reference, this refers to this validation as:
Key Length Constraints: Minimum length of 1. Maximum length of 32.
Using ValidateFunc
within Elem
I believe would be validating the map values, not the keys.
Elem: &schema.Schema{ | |
Type: schema.TypeString, | |
ValidateFunc: validation.StringLenBetween(1, 32), | |
}, | |
Elem: &schema.Schema{ | |
Type: schema.TypeString, | |
}, |
cognitoidentityprovider.IdentityProviderTypeTypeFacebook, | ||
cognitoidentityprovider.IdentityProviderTypeTypeGoogle, | ||
cognitoidentityprovider.IdentityProviderTypeTypeLoginWithAmazon, | ||
cognitoidentityprovider.IdentityProviderTypeTypeOidc, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this was introduced, there is an additional value, according to the SDK constants:
cognitoidentityprovider.IdentityProviderTypeTypeOidc, | |
cognitoidentityprovider.IdentityProviderTypeTypeOidc, | |
cognitoidentityprovider.IdentityProviderTypeTypeSignInWithApple, |
Elem: &schema.Schema{ | ||
Type: schema.TypeString, | ||
ValidateFunc: validation.StringLenBetween(1, 32), | ||
}, | ||
}, | ||
|
||
"idp_identifiers": { | ||
Type: schema.TypeList, | ||
Optional: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While we're updating here, seems like this should include MaxItems: 50
according to the API Reference
Optional: true, | |
Optional: true, | |
MaxItems: 50, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi again @tomelliff 👋 Since we didn't hear back from you, we implemented the review feedback in a followup commit. Thank you for starting this.
Output from acceptance testing:
--- PASS: TestAccAWSCognitoIdentityProvider_basic (33.86s)
Reference: #10705 (review) Output from acceptance testing: ``` --- PASS: TestAccAWSCognitoIdentityProvider_basic (33.86s) ```
This has been released in version 2.58.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks! |
Apologies, only just saw this when I saw it had been released 😄 Thanks for sorting the review feedback and sorry I missed the notification on the feedback. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Added plan time checks for some parameters and also ignored the computed diff caused by not specifying the optional attribute_mapping.
Came across this while idiotically missing that the resource already existed and then trying to implement it from scratch in #10675. Noticed that this resource was still missing a few useful things so figured I could at least salvage those parts.
Community Note
Release note for CHANGELOG:
Output from acceptance testing: