-
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
r/aws_cognito_user_pool: Fix runtime error: index out of range [0] with length 0
panic when adding lambda_config
#38184
r/aws_cognito_user_pool: Fix runtime error: index out of range [0] with length 0
panic when adding lambda_config
#38184
Conversation
…e [0] with length 0' when adding 'lambda_config'.
Community NoteVoting for Prioritization
For Submitters
|
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.
LGTM 🚀
% make testacc TESTARGS='-run=TestAccCognitoIDPUserPool_' PKG=cognitoidp
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.22.4 test ./internal/service/cognitoidp/... -v -count 1 -parallel 20 -run=TestAccCognitoIDPUserPool_ -timeout 360m
user_pool_test.go:885: Environment variable TEST_AWS_SES_VERIFIED_EMAIL_ARN is not set, skipping test
--- SKIP: TestAccCognitoIDPUserPool_withEmailSource (0.00s)
--- PASS: TestAccCognitoIDPUserPool_basic (48.46s)
--- PASS: TestAccCognitoIDPUserPool_withEmail (52.35s)
--- PASS: TestAccCognitoIDPUserPool_SMS_snsRegion (67.74s)
--- PASS: TestAccCognitoIDPUserPool_smsVerificationMessage (81.00s)
--- PASS: TestAccCognitoIDPUserPool_smsAuthenticationMessage (81.96s)
--- PASS: TestAccCognitoIDPUserPool_withPasswordPolicy (82.07s)
--- PASS: TestAccCognitoIDPUserPool_schemaAttributes (82.93s)
--- PASS: TestAccCognitoIDPUserPool_withUsernameAttributes (83.24s)
--- PASS: TestAccCognitoIDPUserPool_MFA_softwareTokenMFAToSMS (94.86s)
--- PASS: TestAccCognitoIDPUserPool_addLambda (98.87s)
--- PASS: TestAccCognitoIDPUserPool_MFA_smsToSoftwareTokenMFA (102.77s)
--- PASS: TestAccCognitoIDPUserPool_MFA_softwareTokenMFA (113.62s)
--- PASS: TestAccCognitoIDPUserPool_SMS_externalID (115.41s)
--- PASS: TestAccCognitoIDPUserPool_SMS_snsCallerARN (115.41s)
--- PASS: TestAccCognitoIDPUserPool_tags (117.45s)
--- PASS: TestAccCognitoIDPUserPool_disappears (45.35s)
--- PASS: TestAccCognitoIDPUserPool_sms (135.40s)
--- PASS: TestAccCognitoIDPUserPool_withUsername (90.59s)
--- PASS: TestAccCognitoIDPUserPool_withAliasAttributes (91.50s)
--- PASS: TestAccCognitoIDPUserPool_schemaAttributesStringAttributeConstraints (63.38s)
--- PASS: TestAccCognitoIDPUserPool_WithLambda_email (152.68s)
--- PASS: TestAccCognitoIDPUserPool_withVerificationMessageTemplateUTF8 (87.36s)
--- PASS: TestAccCognitoIDPUserPool_withLambda (157.26s)
--- PASS: TestAccCognitoIDPUserPool_withUserAttributeUpdateSettings (80.43s)
--- PASS: TestAccCognitoIDPUserPool_WithLambda_preGenerationTokenConfig (164.31s)
--- PASS: TestAccCognitoIDPUserPool_withAdminCreateUserAndPasswordPolicy (51.58s)
--- PASS: TestAccCognitoIDPUserPool_WithLambda_sms (170.35s)
--- PASS: TestAccCognitoIDPUserPool_withVerificationMessageTemplate (80.22s)
--- PASS: TestAccCognitoIDPUserPool_schemaAttributesModified (49.54s)
--- PASS: TestAccCognitoIDPUserPool_schemaAttributesRemoved (44.16s)
--- PASS: TestAccCognitoIDPUserPool_withEmailVerificationMessage (76.79s)
--- PASS: TestAccCognitoIDPUserPool_withDevice (71.05s)
--- PASS: TestAccCognitoIDPUserPool_withAdminCreateUser (69.99s)
--- PASS: TestAccCognitoIDPUserPool_withAdvancedSecurityMode (103.63s)
--- PASS: TestAccCognitoIDPUserPool_update (109.89s)
--- PASS: TestAccCognitoIDPUserPool_deletionProtection (53.01s)
--- PASS: TestAccCognitoIDPUserPool_MFA_smsAndSoftwareTokenMFA (96.85s)
--- PASS: TestAccCognitoIDPUserPool_recovery (59.41s)
--- PASS: TestAccCognitoIDPUserPool_MFA_sms (92.63s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/cognitoidp 213.727s
% make testacc TESTARGS='-run=TestAccCognitoIDPUserPool_' PKG=cognitoidp ACCTEST_PARALLELISM=3 make: Verifying source code with gofmt... ==> Checking that code complies with gofmt requirements... TF_ACC=1 go1.22.4 test ./internal/service/cognitoidp/... -v -count 1 -parallel 3 -run=TestAccCognitoIDPUserPool_ -timeout 360m === RUN TestAccCognitoIDPUserPool_basic === PAUSE TestAccCognitoIDPUserPool_basic === RUN TestAccCognitoIDPUserPool_deletionProtection === PAUSE TestAccCognitoIDPUserPool_deletionProtection === RUN TestAccCognitoIDPUserPool_recovery === PAUSE TestAccCognitoIDPUserPool_recovery === RUN TestAccCognitoIDPUserPool_withAdminCreateUser === PAUSE TestAccCognitoIDPUserPool_withAdminCreateUser === RUN TestAccCognitoIDPUserPool_withAdminCreateUserAndPasswordPolicy === PAUSE TestAccCognitoIDPUserPool_withAdminCreateUserAndPasswordPolicy === RUN TestAccCognitoIDPUserPool_withAdvancedSecurityMode === PAUSE TestAccCognitoIDPUserPool_withAdvancedSecurityMode === RUN TestAccCognitoIDPUserPool_withDevice === PAUSE TestAccCognitoIDPUserPool_withDevice === RUN TestAccCognitoIDPUserPool_withEmailVerificationMessage === PAUSE TestAccCognitoIDPUserPool_withEmailVerificationMessage === RUN TestAccCognitoIDPUserPool_MFA_sms === PAUSE TestAccCognitoIDPUserPool_MFA_sms === RUN TestAccCognitoIDPUserPool_MFA_smsAndSoftwareTokenMFA === PAUSE TestAccCognitoIDPUserPool_MFA_smsAndSoftwareTokenMFA === RUN TestAccCognitoIDPUserPool_MFA_smsToSoftwareTokenMFA === PAUSE TestAccCognitoIDPUserPool_MFA_smsToSoftwareTokenMFA === RUN TestAccCognitoIDPUserPool_MFA_softwareTokenMFA === PAUSE TestAccCognitoIDPUserPool_MFA_softwareTokenMFA === RUN TestAccCognitoIDPUserPool_MFA_softwareTokenMFAToSMS === PAUSE TestAccCognitoIDPUserPool_MFA_softwareTokenMFAToSMS === RUN TestAccCognitoIDPUserPool_smsAuthenticationMessage === PAUSE TestAccCognitoIDPUserPool_smsAuthenticationMessage === RUN TestAccCognitoIDPUserPool_sms === PAUSE TestAccCognitoIDPUserPool_sms === RUN TestAccCognitoIDPUserPool_SMS_snsRegion === PAUSE TestAccCognitoIDPUserPool_SMS_snsRegion === RUN TestAccCognitoIDPUserPool_SMS_externalID === PAUSE TestAccCognitoIDPUserPool_SMS_externalID === RUN TestAccCognitoIDPUserPool_SMS_snsCallerARN === PAUSE TestAccCognitoIDPUserPool_SMS_snsCallerARN === RUN TestAccCognitoIDPUserPool_smsVerificationMessage === PAUSE TestAccCognitoIDPUserPool_smsVerificationMessage === RUN TestAccCognitoIDPUserPool_withEmail === PAUSE TestAccCognitoIDPUserPool_withEmail === RUN TestAccCognitoIDPUserPool_withEmailSource user_pool_test.go:885: Environment variable TEST_AWS_SES_VERIFIED_EMAIL_ARN is not set, skipping test --- SKIP: TestAccCognitoIDPUserPool_withEmailSource (0.00s) === RUN TestAccCognitoIDPUserPool_tags === PAUSE TestAccCognitoIDPUserPool_tags === RUN TestAccCognitoIDPUserPool_withAliasAttributes === PAUSE TestAccCognitoIDPUserPool_withAliasAttributes === RUN TestAccCognitoIDPUserPool_withUsernameAttributes === PAUSE TestAccCognitoIDPUserPool_withUsernameAttributes === RUN TestAccCognitoIDPUserPool_withPasswordPolicy === PAUSE TestAccCognitoIDPUserPool_withPasswordPolicy === RUN TestAccCognitoIDPUserPool_withUsername === PAUSE TestAccCognitoIDPUserPool_withUsername === RUN TestAccCognitoIDPUserPool_withLambda === PAUSE TestAccCognitoIDPUserPool_withLambda === RUN TestAccCognitoIDPUserPool_WithLambda_email === PAUSE TestAccCognitoIDPUserPool_WithLambda_email === RUN TestAccCognitoIDPUserPool_WithLambda_sms === PAUSE TestAccCognitoIDPUserPool_WithLambda_sms === RUN TestAccCognitoIDPUserPool_WithLambda_preGenerationTokenConfig === PAUSE TestAccCognitoIDPUserPool_WithLambda_preGenerationTokenConfig === RUN TestAccCognitoIDPUserPool_addLambda === PAUSE TestAccCognitoIDPUserPool_addLambda === RUN TestAccCognitoIDPUserPool_schemaAttributes === PAUSE TestAccCognitoIDPUserPool_schemaAttributes === RUN TestAccCognitoIDPUserPool_schemaAttributesRemoved === PAUSE TestAccCognitoIDPUserPool_schemaAttributesRemoved === RUN TestAccCognitoIDPUserPool_schemaAttributesModified === PAUSE TestAccCognitoIDPUserPool_schemaAttributesModified === RUN TestAccCognitoIDPUserPool_schemaAttributesStringAttributeConstraints === PAUSE TestAccCognitoIDPUserPool_schemaAttributesStringAttributeConstraints === RUN TestAccCognitoIDPUserPool_withVerificationMessageTemplate === PAUSE TestAccCognitoIDPUserPool_withVerificationMessageTemplate === RUN TestAccCognitoIDPUserPool_withVerificationMessageTemplateUTF8 === PAUSE TestAccCognitoIDPUserPool_withVerificationMessageTemplateUTF8 === RUN TestAccCognitoIDPUserPool_update === PAUSE TestAccCognitoIDPUserPool_update === RUN TestAccCognitoIDPUserPool_disappears === PAUSE TestAccCognitoIDPUserPool_disappears === RUN TestAccCognitoIDPUserPool_withUserAttributeUpdateSettings === PAUSE TestAccCognitoIDPUserPool_withUserAttributeUpdateSettings === CONT TestAccCognitoIDPUserPool_basic === CONT TestAccCognitoIDPUserPool_tags === CONT TestAccCognitoIDPUserPool_MFA_smsToSoftwareTokenMFA --- PASS: TestAccCognitoIDPUserPool_basic (13.11s) === CONT TestAccCognitoIDPUserPool_SMS_snsRegion --- PASS: TestAccCognitoIDPUserPool_tags (27.21s) === CONT TestAccCognitoIDPUserPool_withEmail --- PASS: TestAccCognitoIDPUserPool_MFA_smsToSoftwareTokenMFA (31.53s) === CONT TestAccCognitoIDPUserPool_smsVerificationMessage --- PASS: TestAccCognitoIDPUserPool_SMS_snsRegion (22.91s) === CONT TestAccCognitoIDPUserPool_SMS_snsCallerARN --- PASS: TestAccCognitoIDPUserPool_withEmail (12.00s) === CONT TestAccCognitoIDPUserPool_SMS_externalID --- PASS: TestAccCognitoIDPUserPool_smsVerificationMessage (19.70s) === CONT TestAccCognitoIDPUserPool_schemaAttributes --- PASS: TestAccCognitoIDPUserPool_schemaAttributes (18.73s) === CONT TestAccCognitoIDPUserPool_withUserAttributeUpdateSettings --- PASS: TestAccCognitoIDPUserPool_SMS_snsCallerARN (35.49s) === CONT TestAccCognitoIDPUserPool_disappears --- PASS: TestAccCognitoIDPUserPool_SMS_externalID (39.59s) === CONT TestAccCognitoIDPUserPool_update --- PASS: TestAccCognitoIDPUserPool_disappears (10.11s) === CONT TestAccCognitoIDPUserPool_withVerificationMessageTemplateUTF8 --- PASS: TestAccCognitoIDPUserPool_withUserAttributeUpdateSettings (17.01s) === CONT TestAccCognitoIDPUserPool_withVerificationMessageTemplate --- PASS: TestAccCognitoIDPUserPool_withVerificationMessageTemplateUTF8 (19.15s) === CONT TestAccCognitoIDPUserPool_schemaAttributesStringAttributeConstraints --- PASS: TestAccCognitoIDPUserPool_withVerificationMessageTemplate (18.86s) === CONT TestAccCognitoIDPUserPool_schemaAttributesModified --- PASS: TestAccCognitoIDPUserPool_schemaAttributesStringAttributeConstraints (12.21s) === CONT TestAccCognitoIDPUserPool_schemaAttributesRemoved --- PASS: TestAccCognitoIDPUserPool_schemaAttributesModified (11.53s) === CONT TestAccCognitoIDPUserPool_withAdvancedSecurityMode --- PASS: TestAccCognitoIDPUserPool_update (39.92s) === CONT TestAccCognitoIDPUserPool_MFA_smsAndSoftwareTokenMFA --- PASS: TestAccCognitoIDPUserPool_schemaAttributesRemoved (11.61s) === CONT TestAccCognitoIDPUserPool_MFA_sms --- PASS: TestAccCognitoIDPUserPool_withAdvancedSecurityMode (25.52s) === CONT TestAccCognitoIDPUserPool_withEmailVerificationMessage --- PASS: TestAccCognitoIDPUserPool_MFA_smsAndSoftwareTokenMFA (37.33s) === CONT TestAccCognitoIDPUserPool_withDevice --- PASS: TestAccCognitoIDPUserPool_withEmailVerificationMessage (18.91s) === CONT TestAccCognitoIDPUserPool_withAdminCreateUser --- PASS: TestAccCognitoIDPUserPool_MFA_sms (45.88s) === CONT TestAccCognitoIDPUserPool_withAdminCreateUserAndPasswordPolicy --- PASS: TestAccCognitoIDPUserPool_withDevice (19.19s) === CONT TestAccCognitoIDPUserPool_recovery --- PASS: TestAccCognitoIDPUserPool_withAdminCreateUser (18.78s) === CONT TestAccCognitoIDPUserPool_smsAuthenticationMessage --- PASS: TestAccCognitoIDPUserPool_withAdminCreateUserAndPasswordPolicy (11.78s) === CONT TestAccCognitoIDPUserPool_sms --- PASS: TestAccCognitoIDPUserPool_smsAuthenticationMessage (19.52s) === CONT TestAccCognitoIDPUserPool_deletionProtection --- PASS: TestAccCognitoIDPUserPool_recovery (25.90s) === CONT TestAccCognitoIDPUserPool_withLambda --- PASS: TestAccCognitoIDPUserPool_sms (35.32s) === CONT TestAccCognitoIDPUserPool_addLambda --- PASS: TestAccCognitoIDPUserPool_deletionProtection (19.06s) === CONT TestAccCognitoIDPUserPool_WithLambda_preGenerationTokenConfig --- PASS: TestAccCognitoIDPUserPool_addLambda (36.19s) === CONT TestAccCognitoIDPUserPool_WithLambda_sms --- PASS: TestAccCognitoIDPUserPool_withLambda (62.03s) === CONT TestAccCognitoIDPUserPool_WithLambda_email --- PASS: TestAccCognitoIDPUserPool_WithLambda_preGenerationTokenConfig (50.09s) === CONT TestAccCognitoIDPUserPool_MFA_softwareTokenMFAToSMS --- PASS: TestAccCognitoIDPUserPool_MFA_softwareTokenMFAToSMS (28.72s) === CONT TestAccCognitoIDPUserPool_MFA_softwareTokenMFA --- PASS: TestAccCognitoIDPUserPool_WithLambda_sms (57.35s) === CONT TestAccCognitoIDPUserPool_withPasswordPolicy --- PASS: TestAccCognitoIDPUserPool_WithLambda_email (49.91s) === CONT TestAccCognitoIDPUserPool_withUsername --- PASS: TestAccCognitoIDPUserPool_withPasswordPolicy (18.23s) === CONT TestAccCognitoIDPUserPool_withUsernameAttributes --- PASS: TestAccCognitoIDPUserPool_MFA_softwareTokenMFA (25.70s) === CONT TestAccCognitoIDPUserPool_withAliasAttributes --- PASS: TestAccCognitoIDPUserPool_withUsername (19.72s) --- PASS: TestAccCognitoIDPUserPool_withUsernameAttributes (19.39s) --- PASS: TestAccCognitoIDPUserPool_withAliasAttributes (19.45s) PASS ok github.com/hashicorp/terraform-provider-aws/internal/service/cognitoidp 347.699s
This functionality has been released in v5.56.1 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. Thank you! |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Description
Fixes
panic: runtime error: index out of range [0] with length 0
.Relations
Closes #38164.
References
Output from Acceptance Testing