Amplify-cli: Analytics module region mapping are not up-to-date

Created on 10 Nov 2019  路  8Comments  路  Source: aws-amplify/amplify-cli

Through AWS Console, I can create a pinpoint project in ap-southeast-2. When I add analytics through amplify cli, it created a project in region us-west-2. When I saw the cloudformation template, the regions mapping do effectively map ap-southeast-2 to us-west-2.

Amplify CLI Version
3.17.0

To Reproduce

  • amplify configure (set ap-southeast-2 as project region)
  • amplify add analytics (look at amplify/backend/analytics cloudformation file regions mapping)

Desktop (please complete the following information):

  • OS: Arch Linux
  • Node Version. v10.17.0
analytics enhancement pending-review

Most helpful comment

is this still getting worked on. as I keep getting pinpoint created in the US, creating Pinpoint from the console is not as good as using Amplify. is this going to be fixed anytime soon as I can not see it being a hard fix.

All 8 comments

@tartur thanks for reporting, we'll look into it!

This mapping is a historical issue, the analytics categories was in the Amplify CLI since its first launch (Nov 2018), and at that time, AWS Pinpoint was not available in ap-southeast-2, that's why projects configured to be in ap-southeast-2 was mapped to us-west-2.
We will look into this and update the mappings for newly created projects.

Any updates on this?

is this still getting worked on. as I keep getting pinpoint created in the US, creating Pinpoint from the console is not as good as using Amplify. is this going to be fixed anytime soon as I can not see it being a hard fix.

Same issue here. It would be great to have any sort of update on the above issue. Thank you!

experiencing the same issues with version 4.32.0, 1 year after the problem was reported.

is there a workaround? cause that's a blocker at the moment on my end.

I'm willing to take this up, but since this will be my first time contributing, I'd appreciate some guidance as to where and how to proceed.

I did a brief search of the codebase and found these two files where we may need to update the mappings.

  1. https://github.com/aws-amplify/amplify-cli/blob/master/packages/amplify-provider-awscloudformation/src/aws-utils/aws-pinpoint.js#L7
  2. https://github.com/aws-amplify/amplify-cli/blob/955022cbc5d792868240e4e1bd8b024085da1c0f/packages/amplify-e2e-core/src/utils/pinpoint.ts#L22

Let me know if there's other places which will need to be updated as well.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

nicksmithr picture nicksmithr  路  3Comments

jexh picture jexh  路  3Comments

zjullion picture zjullion  路  3Comments

onlybakam picture onlybakam  路  3Comments

gabriel-wilkes picture gabriel-wilkes  路  3Comments