New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue while deploying ASP.Net Core Project on AWS Elasticbeanstalk #309
Comments
Hi @Satyajust4p , are you deploying to a VPC? If so, does the deployment work if you deploy without a VPC? |
I am unable to understand my fault. |
Hi @Satyajust4p - can you post your Node and CDK versions? (if you have CDK installed globally as opposed to relying on the Visual Studio Toolkit to install it for you)
aws/aws-cdk#19930 has a similar error message and some recent activity over on the CDK repo, hunch it may be related. |
Thanks @ashovlin for the reply. Here is the node version : v16.14.0. |
I've created aws/aws-dotnet-deploy#755 to track this issue on the .NET deploy tool repo. The Visual Studio Toolkit wraps the deploy tool, which is responsible for the CDK deployment. Any guidance/fix will likely apply to the deploy tool layer. |
@Satyajust4p Good morning. Could you please share the following:
Thanks, |
Do you solved this issue? |
This issue has grown stale. Without additional steps to reproduce or supporting details, we aren't able to investigate this issue further. If you are still encountering this problem, please open a new issue and provide supporting details. |
Step 1:- I created a simple ASP.Net Core Web App using Visual Studio 2022
Step 2:- Installed AWS toolkit
Step3:- Selected Publish to AWS for deploying my application on my free AWS tier using Elasticbeanstalk
Step 4:- I get the following error on the 3rd Step i.e. on Deploying AWS CDK Project :
AWSDeploymentProject: deploying...
[0%] start: Publishing 73645f7c905524d6ca666eae7e1e2a7f1bca1d4062451cd2eb619d2d2f7ec4ec:712088662267-eu-central-1
[0%] start: Publishing b634beaf9192c9e30537653615f0e0f9c3d21b3ab410d6ca555b2ea7fd8ce062:712088662267-eu-central-1
[50%] fail: Socket timed out without establishing a connection
[100%] fail: Socket timed out without establishing a connection
❌ AWSDeploymentProject failed: Error: Failed to publish one or more assets. See the error messages above for more information.
at publishAssets (C:\Users\ssaty\AppData\Local\npm-cache_npx\e72b144743208263\node_modules\aws-cdk\lib\util\asset-publishing.ts:60:11)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at CloudFormationDeployments.publishStackAssets (C:\Users\ssaty\AppData\Local\npm-cache_npx\e72b144743208263\node_modules\aws-cdk\lib\api\cloudformation-deployments.ts:572:7)
at CloudFormationDeployments.deployStack (C:\Users\ssaty\AppData\Local\npm-cache_npx\e72b144743208263\node_modules\aws-cdk\lib\api\cloudformation-deployments.ts:419:7)
at deployStack2 (C:\Users\ssaty\AppData\Local\npm-cache_npx\e72b144743208263\node_modules\aws-cdk\lib\cdk-toolkit.ts:264:24)
at C:\Users\ssaty\AppData\Local\npm-cache_npx\e72b144743208263\node_modules\aws-cdk\lib\deploy.ts:39:11
at run (C:\Users\ssaty\AppData\Local\npm-cache_npx\e72b144743208263\node_modules\p-queue\dist\index.js:163:29)
❌ Deployment failed: Error: Stack Deployments Failed: Error: Failed to publish one or more assets. See the error messages above for more information.
at deployStacks (C:\Users\ssaty\AppData\Local\npm-cache_npx\e72b144743208263\node_modules\aws-cdk\lib\deploy.ts:61:11)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at CdkToolkit.deploy (C:\Users\ssaty\AppData\Local\npm-cache_npx\e72b144743208263\node_modules\aws-cdk\lib\cdk-toolkit.ts:338:7)
at initCommandLine (C:\Users\ssaty\AppData\Local\npm-cache_npx\e72b144743208263\node_modules\aws-cdk\lib\cli.ts:364:12)
Stack Deployments Failed: Error: Failed to publish one or more assets. See the error messages above for more information.
AWSDeploymentProject could not be published as ASP.NET Core App to AWS Elastic Beanstalk on Windows: We had an issue deploying your application to AWS. Check the deployment output for more details. Deployment took 124.84s.
AWSDeploymentProject failed to publish to AWS.
Note : The IAM user has administrator privileges.
Any help would be appreciated.
The text was updated successfully, but these errors were encountered: