Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Amplify Init Error - ✖ Root stack creation failed init failed TypeError: Cannot redefine property: default

Using amplify init, right after choosing which profile to use, I get this error and am not sure why: ✖ Root stack creation failed init failed TypeError: Cannot redefine property: default

  • I tried changing the different user to be my default in my credentials file and then picking the default profile in the amplify init step for that - same error.
  • I tried saying I didn't want to use a profile and instead putting in my access key id and secret key in manually, also didn't work.
like image 426
jupiterjelly Avatar asked Mar 05 '26 01:03

jupiterjelly


1 Answers

Found solution here! github issues

Relevant quote - "I found the source of my problem... My ~/.aws/config file contained entries called [default] and [profile default], which causes the symptom."

So I removed the [default] and just left my [profile default] and then the amplify init went through normally!

like image 82
jupiterjelly Avatar answered Mar 07 '26 14:03

jupiterjelly



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!