-
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
Migrate Pinpoint
resources to AWS SDK V2
#38750
Conversation
Community NoteVoting for Prioritization
For Submitters
|
Thank you for your contribution! 🚀 Please note that typically Go dependency changes are handled in this repository by dependabot or the maintainers. This is to prevent pull request merge conflicts and further delay reviews of contributions. Remove any changes to the Additional details:
|
@DanielRieske I was in the middle of troubleshooting my terraform module when I came across #36197 and your linked PR. I wanted to share what I'm seeing in case it is helpful for your research, but I completely understand that resolving the issue is likely outside the scope of your PR. Here's what is happening for me: When I run There might be a hint on the AWS Pinpoint REST API Reference. There's a notation for the |
@DanielRieske I see that you've already reached out to AWS and filed #38772. Thank you! |
Hi @rocketnova 👋, thank you for reaching out! This has been exactly my observation too, my best guestimation is that AWS is in the process of deprecating this argument. I will keep the issue updated with the progress regarding this. Thank you for investigating! |
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=TestAcc' PKG=pinpoint
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.22.5 test ./internal/service/pinpoint/... -v -count 1 -parallel 20 -run=TestAcc -timeout 360m
=== RUN TestAccPinpointADMChannel_basic
adm_channel_test.go:36: ADM_CLIENT_ID ENV is missing
--- SKIP: TestAccPinpointADMChannel_basic (0.00s)
=== RUN TestAccPinpointAPNSChannel_basicCertificate
apns_channel_test.go:65: Pinpoint certificate credentials envs are missing, skipping test
--- SKIP: TestAccPinpointAPNSChannel_basicCertificate (0.00s)
=== RUN TestAccPinpointAPNSChannel_basicToken
apns_channel_test.go:73: APNS_BUNDLE_ID env is missing, skipping test
--- SKIP: TestAccPinpointAPNSChannel_basicToken (0.00s)
=== RUN TestAccPinpointAPNSSandboxChannel_basicCertificate
apns_sandbox_channel_test.go:65: Pinpoint certificate credentials envs are missing, skipping test
--- SKIP: TestAccPinpointAPNSSandboxChannel_basicCertificate (0.00s)
=== RUN TestAccPinpointAPNSSandboxChannel_basicToken
apns_sandbox_channel_test.go:73: APNS_SANDBOX_BUNDLE_ID env is missing, skipping test
--- SKIP: TestAccPinpointAPNSSandboxChannel_basicToken (0.00s)
=== RUN TestAccPinpointAPNSVoIPChannel_basicCertificate
apns_voip_channel_test.go:65: Pinpoint certificate credentials envs are missing, skipping test
--- SKIP: TestAccPinpointAPNSVoIPChannel_basicCertificate (0.00s)
=== RUN TestAccPinpointAPNSVoIPChannel_basicToken
apns_voip_channel_test.go:73: APNS_VOIP_BUNDLE_ID env is missing, skipping test
--- SKIP: TestAccPinpointAPNSVoIPChannel_basicToken (0.00s)
=== RUN TestAccPinpointAPNSVoIPSandboxChannel_basicCertificate
apns_voip_sandbox_channel_test.go:65: Pinpoint certificate credentials envs are missing, skipping test
--- SKIP: TestAccPinpointAPNSVoIPSandboxChannel_basicCertificate (0.00s)
=== RUN TestAccPinpointAPNSVoIPSandboxChannel_basicToken
apns_voip_sandbox_channel_test.go:73: APNS_VOIP_BUNDLE_ID env is missing, skipping test
--- SKIP: TestAccPinpointAPNSVoIPSandboxChannel_basicToken (0.00s)
=== RUN TestAccPinpointApp_basic
=== PAUSE TestAccPinpointApp_basic
=== RUN TestAccPinpointApp_disappears
=== PAUSE TestAccPinpointApp_disappears
=== RUN TestAccPinpointApp_nameGenerated
=== PAUSE TestAccPinpointApp_nameGenerated
=== RUN TestAccPinpointApp_namePrefix
=== PAUSE TestAccPinpointApp_namePrefix
=== RUN TestAccPinpointApp_tags
=== PAUSE TestAccPinpointApp_tags
=== RUN TestAccPinpointApp_campaignHookLambda
=== PAUSE TestAccPinpointApp_campaignHookLambda
=== RUN TestAccPinpointApp_campaignHookEmpty
=== PAUSE TestAccPinpointApp_campaignHookEmpty
=== RUN TestAccPinpointApp_limits
=== PAUSE TestAccPinpointApp_limits
=== RUN TestAccPinpointApp_limitsEmpty
=== PAUSE TestAccPinpointApp_limitsEmpty
=== RUN TestAccPinpointApp_quietTime
=== PAUSE TestAccPinpointApp_quietTime
=== RUN TestAccPinpointApp_quietTimeEmpty
=== PAUSE TestAccPinpointApp_quietTimeEmpty
=== RUN TestAccPinpointBaiduChannel_basic
=== PAUSE TestAccPinpointBaiduChannel_basic
=== RUN TestAccPinpointEmailChannel_basic
=== PAUSE TestAccPinpointEmailChannel_basic
=== RUN TestAccPinpointEmailChannel_set
=== PAUSE TestAccPinpointEmailChannel_set
=== RUN TestAccPinpointEmailChannel_noRole
=== PAUSE TestAccPinpointEmailChannel_noRole
=== RUN TestAccPinpointEmailChannel_disappears
=== PAUSE TestAccPinpointEmailChannel_disappears
=== RUN TestAccPinpointEventStream_basic
=== PAUSE TestAccPinpointEventStream_basic
=== RUN TestAccPinpointEventStream_disappears
=== PAUSE TestAccPinpointEventStream_disappears
=== RUN TestAccPinpointGCMChannel_basic
gcm_channel_test.go:34: GCM_API_KEY env missing, skip test
--- SKIP: TestAccPinpointGCMChannel_basic (0.00s)
=== RUN TestAccPinpointSMSChannel_basic
=== PAUSE TestAccPinpointSMSChannel_basic
=== RUN TestAccPinpointSMSChannel_full
=== PAUSE TestAccPinpointSMSChannel_full
=== RUN TestAccPinpointSMSChannel_disappears
=== PAUSE TestAccPinpointSMSChannel_disappears
=== CONT TestAccPinpointApp_basic
=== CONT TestAccPinpointBaiduChannel_basic
=== CONT TestAccPinpointApp_campaignHookEmpty
=== CONT TestAccPinpointEventStream_basic
=== CONT TestAccPinpointApp_namePrefix
=== CONT TestAccPinpointEmailChannel_disappears
=== CONT TestAccPinpointApp_quietTime
=== CONT TestAccPinpointApp_limitsEmpty
=== CONT TestAccPinpointEmailChannel_set
=== CONT TestAccPinpointApp_quietTimeEmpty
=== CONT TestAccPinpointSMSChannel_disappears
=== CONT TestAccPinpointApp_campaignHookLambda
=== CONT TestAccPinpointEmailChannel_noRole
=== CONT TestAccPinpointApp_limits
=== CONT TestAccPinpointSMSChannel_basic
=== CONT TestAccPinpointSMSChannel_full
=== CONT TestAccPinpointEmailChannel_basic
=== CONT TestAccPinpointEventStream_disappears
=== CONT TestAccPinpointApp_tags
=== CONT TestAccPinpointApp_disappears
--- PASS: TestAccPinpointApp_disappears (43.07s)
=== CONT TestAccPinpointApp_nameGenerated
--- PASS: TestAccPinpointApp_namePrefix (43.54s)
--- PASS: TestAccPinpointEmailChannel_disappears (45.59s)
--- PASS: TestAccPinpointSMSChannel_disappears (45.59s)
--- PASS: TestAccPinpointApp_quietTimeEmpty (50.89s)
--- PASS: TestAccPinpointApp_limitsEmpty (51.02s)
--- PASS: TestAccPinpointApp_campaignHookEmpty (51.54s)
--- PASS: TestAccPinpointEmailChannel_noRole (51.71s)
--- PASS: TestAccPinpointApp_limits (51.75s)
--- PASS: TestAccPinpointApp_quietTime (52.04s)
--- PASS: TestAccPinpointApp_basic (52.10s)
--- PASS: TestAccPinpointEmailChannel_set (53.03s)
--- PASS: TestAccPinpointApp_campaignHookLambda (61.43s)
--- PASS: TestAccPinpointSMSChannel_basic (63.26s)
--- PASS: TestAccPinpointSMSChannel_full (65.61s)
--- PASS: TestAccPinpointBaiduChannel_basic (65.62s)
--- PASS: TestAccPinpointApp_nameGenerated (22.57s)
--- PASS: TestAccPinpointEmailChannel_basic (66.20s)
--- PASS: TestAccPinpointEventStream_disappears (71.27s)
--- PASS: TestAccPinpointApp_tags (72.98s)
--- PASS: TestAccPinpointEventStream_basic (121.20s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/pinpoint 127.103s
Thank you @DanielRieske for your contribution and for the bug report/investigation! For the purposes of this PR, I've removed the |
Hi @nam054 thank you for reviewing this PR! - I do want to add that the deprecation is purely a guess right now as a single piece of documentation seems to suggest this. I will keep the open case with their engineering team updated in the other issue. |
This functionality has been released in v5.63.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. 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
This PR migrates the
Pinpoint
resources to AWS SDKv2.Test failures are pre-migration failures and are happening because the
GetEmailChannel
action doesn't seem to returnroleARN
in it's response body.I will do a bit more research on where this exactly goes wrong and file if needed a support case with AWS.
For now this shouldn't block the migration.
Update: AWS support was able to reproduce this behaviour and will be consulting internally on how to proceed. I will create a seperate issue for visibility purposes and as to not block the progress here. Filed under #38772
UpdateEmailChannel
GetEmailChannel
Relations
Closes #36197
Relates #32976
References
Output from Acceptance Testing