Hi there! I'm experiencing an AWS Amplify deployment error related to CDK bucket permissions. My build is failing with the following error:
"Bucket named 'cdk-#####-assets-#####-eu-central-1' exists, but not in account #####. Wrong account?"
Important details:
- The bucket definitely exists in the correct AWS account (#####)
- This was working perfectly until recent changes involving environment variables
- I'm using Next.js with AWS Amplify Gen 2
- The error occurs during the build phase during deployment.
I've verified:
- The S3 bucket exists in the correct account
- The deployment is targeting the correct region (eu-central-1)
- The AWS credentials being used are for the correct account
Any guidance on resolving this CDK deployment error would be greatly appreciated!