Replies: 13 comments 7 replies
-
Hey @matf3en! Thanks for mentioning my blog post so I can check what's going on. In your example, it looks like you have Let me know if that helps, otherwise, happy to keep troubleshooting. |
Beta Was this translation helpful? Give feedback.
-
Thank you @mtliendo !! |
Beta Was this translation helpful? Give feedback.
-
Hi @mtliendo. Thanks for getting back to me so fast. Thanks for the link to the repo - I didn't see that - I haven't tried it yet, but it looks like that'll solve my issue. Any reason why these critical lines aren't actually in your post? |
Beta Was this translation helpful? Give feedback.
-
@pahud Is there a way to improve the cdk documentation to reflect this please? |
Beta Was this translation helpful? Give feedback.
-
@mtliendo Spoke too soon - I've torn down my repos / amplify apps via cdk and then recreated using the lines of code from your repo namely :
Now the console does show 'Web compute' instead of 'Web', but still doesn't show a production branch, or a Framework 👍 |
Beta Was this translation helpful? Give feedback.
-
Oh interesting. Hmm, let me investigate and see if I can reproduce. |
Beta Was this translation helpful? Give feedback.
-
@matf3en Is this with GitHub? Looking at the Source repository in your screenshot, does that say code commit? |
Beta Was this translation helpful? Give feedback.
-
@mtliendo Yes - that's correct - Code Commit. |
Beta Was this translation helpful? Give feedback.
-
@matf3en Sure! If there's any doc addition you believe useful, feel free to submit a PR for that so we can help the community. I am converting this to discussion as this is not relevant to a CDK bug but the guidance. If you believe we should add some doc update, feel free to create another new issue/PR to address that. Thank you. |
Beta Was this translation helpful? Give feedback.
-
@mtliendo Did you get anywhere with this please? |
Beta Was this translation helpful? Give feedback.
-
Thank you for the investigation @matf3en @mtliendo ! We are not closing this. We just need more discussion before we can tell if it's relevant to a CDK bug and figure out how to fix that with a pull request. If the CDK app can deploy successfully yet the console doesn't reflect correctly, we tend to consider this as a general guidance request rather than a CDK bug. We appreciate all discussion and feedback here and feel free to tag me anytime if we conclude this is a CDK bug so we can fix it with a pull request. Thank you for all the feedback. |
Beta Was this translation helpful? Give feedback.
-
Experiencing the same issues. Unable to specify the framework and am getting an "AccessDenied" upon trying to access my page using a custom domain. While creating the Amplify app in CDK, I use If I use customRules: [
{
source: '/<*>',
target: ' /index.html',
status: RedirectStatus.NOT_FOUND_REWRITE,
},
], like in @mtliendo's GitHub repo, I'm getting a 4O4 error instead. |
Beta Was this translation helpful? Give feedback.
-
@pahud You said you needed more discussion to work out whether this was a bug or not. How much more exactly please? This has been going on for two weeks with no sign of even experts knowing how to solve it? If I was doing something stupid and obvious, no-one's been able to tell me what that is... surely your bug people need to look at this rather than just continuing to hope that someone spots a user mistake? |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
I am trying to deploy a NextJs 13 app to amplify hosting using the CDK.
My App is created, and my Code Commit repo/branches linked properly.
However, the 'Framework' setting (Amplify 'general' tab) is totally blank. This means that the next js files are not treated properly on deployment, which means that the website displays an 'Access Denied' xml error.
I further note that the 'Production Branch URL' setting is empty and that platform shows 'Web' not 'Web Compute'
I have created an Amplify app manually via the console, and confirmed that the 'Framework' section is properly filled with 'Next.js - SSR'
Expected Behavior
Amplify app 'Framework' setting should be populated with 'Next.js - SSR' on cdk deploy
AWS documentation suggests no problems :
https://aws.amazon.com/blogs/mobile/deploy-a-nextjs-13-application-to-amplify-with-the-aws-cdk/
Current Behavior
Amplify app 'Framework' setting is populated with '' on cdk deploy
Reproduction Steps
Create a next js app and commit to a repo.
Create a fresh CDK install
Create a stack housing a repo resource pointing to your next js app.
Create a stack housing an amplify app using your repo as a code source.
deploy both stacks.
Observe the missing 'Framework' setting on the Amplify app in the console.
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.68.0
Framework Version
No response
Node.js Version
16.14.2
OS
windows powershell
Language
Typescript
Language Version
No response
Other information
No response
Beta Was this translation helpful? Give feedback.
All reactions