Commit fda8dd2
authored
fix(gen2-migration): add awsRegion to userPoolConfig in additional auth providers (#14710)
* fix(cli-internal): add awsRegion to userPoolConfig in additional auth providers
The DataGenerator's contributeAdditionalAuthProviders method was
generating userPoolConfig with only userPoolId for
AMAZON_COGNITO_USER_POOLS auth providers. This adds the missing
awsRegion property (backend.auth.stack.region) so the generated
backend.ts matches the expected output.
Verified with existing data.generator.test.ts — all 14 tests pass.
---
Prompt: I've added this line in the mood-board snapshot. This
needs to be added whenever there is a userPool additional auth
provider - awsRegion: backend.auth.stack.region,
* chore: update snapshot manually
* chore: update snapshots1 parent 4f88963 commit fda8dd2
File tree
5 files changed
+16
-0
lines changed- amplify-migration-apps
- backend-only/_snapshot.post.generate/amplify
- mood-board/_snapshot.post.generate/amplify
- product-catalog/_snapshot.post.generate/amplify
- project-boards/_snapshot.post.generate/amplify
- packages/amplify-cli/src/commands/gen2-migration/generate/amplify/data
5 files changed
+16
-0
lines changedLines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| |||
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
152 | 164 | | |
153 | 165 | | |
154 | 166 | | |
| |||
0 commit comments