Closed michalzubkowicz closed 3 years ago
Hi @michalzubkowicz,
Good morning.
Somehow I'm unable to reproduce the issue. Here are the steps (executed on Mac):
Created ASP.NET Core web application using Microsoft's Visual Studio template (no authentication) targeting .NET Core 3.1.
Using Mac Terminal (or command prompt), navigated to project directory.
Executed the command dotnet eb deploy-environment
:
Enter Elastic Beanstalk Application: (The name of the Elastic Beanstalk application.)
AspNetCoreElasticBeanstalk
Enter Elastic Beanstalk Environment: (The name of the Elastic Beanstalk environment.)
App-env
Select Elastic Beanstalk Solution Stack:
1) 64bit Amazon Linux 2 v2.1.0 running .NET Core
2) 64bit Windows Server 2012 R2 running IIS 8.5
3) 64bit Windows Server 2012 running IIS 8
4) 64bit Windows Server 2016 v2.6.0 running IIS 10.0
5) 64bit Windows Server 2019 v2.6.0 running IIS 10.0
6) 64bit Windows Server Core 2012 R2 running IIS 8.5
7) 64bit Windows Server Core 2016 v2.6.0 running IIS 10.0
8) 64bit Windows Server Core 2019 v2.6.0 running IIS 10.0
1
Creating new Elastic Beanstalk Application
Determine publish location: /Users/<user>/dev/repros/AspNetCoreElasticBeanstalk146/AspNetCoreElasticBeanstalk146/bin/Release/netcoreapp3.1/publish
Executing publish command
... invoking 'dotnet publish'
Executing: dotnet publish "/Users/<user>/dev/repros/AspNetCoreElasticBeanstalk146/AspNetCoreElasticBeanstalk146" --output "/Users/<user>/dev/repros/AspNetCoreElasticBeanstalk146/AspNetCoreElasticBeanstalk146/bin/Release/netcoreapp3.1/publish" --configuration "Release" --framework "netcoreapp3.1" --runtime linux-x64 --self-contained false
... dotnet publish: Microsoft (R) Build Engine version 16.8.0+126527ff1 for .NET
... dotnet publish: Copyright (C) Microsoft Corporation. All rights reserved.
... dotnet publish: Determining projects to restore...
... dotnet publish: Restored /Users/<user>/dev/repros/AspNetCoreElasticBeanstalk146/AspNetCoreElasticBeanstalk146/AspNetCoreElasticBeanstalk146.csproj (in 111 ms).
... dotnet publish: AspNetCoreElasticBeanstalk146 -> /Users/<user>/dev/repros/AspNetCoreElasticBeanstalk146/AspNetCoreElasticBeanstalk146/bin/Release/netcoreapp3.1/linux-x64/AspNetCoreElasticBeanstalk146.dll
... dotnet publish: AspNetCoreElasticBeanstalk146 -> /Users/<user>/dev/repros/AspNetCoreElasticBeanstalk146/AspNetCoreElasticBeanstalk146/bin/Release/netcoreapp3.1/linux-x64/AspNetCoreElasticBeanstalk146.Views.dll
... dotnet publish: AspNetCoreElasticBeanstalk146 -> /Users/<user>/dev/repros/AspNetCoreElasticBeanstalk146/AspNetCoreElasticBeanstalk146/bin/Release/netcoreapp3.1/publish/
Changed permissions on published dll (chmod +r AspNetCoreElasticBeanstalk146.dll).
Changed permissions on published dll (chmod +r AspNetCoreElasticBeanstalk146.Views.dll).
Configuring application bundle for a Linux deployment
Writing Procfile for deployment bundle
... Procfile command used to start application
web: dotnet exec ./AspNetCoreElasticBeanstalk146.dll
Zipping up publish folder
... zipping: adding: AspNetCoreElasticBeanstalk146.dll (deflated 61%)
... zipping: adding: AspNetCoreElasticBeanstalk146 (deflated 61%)
... zipping: adding: AspNetCoreElasticBeanstalk146.runtimeconfig.json (deflated 36%)
... zipping: adding: AspNetCoreElasticBeanstalk146.pdb (deflated 49%)
... zipping: adding: web.config (deflated 40%)
... zipping: adding: appsettings.json (deflated 36%)
... zipping: adding: AspNetCoreElasticBeanstalk146.deps.json (deflated 92%)
... zipping: adding: AspNetCoreElasticBeanstalk146.Views.dll (deflated 68%)
... zipping: adding: Procfile (stored 0%)
... zipping: adding: appsettings.Development.json (deflated 38%)
... zipping: adding: AspNetCoreElasticBeanstalk146.Views.pdb (deflated 50%)
... zipping: adding: wwwroot/favicon.ico (deflated 71%)
... zipping: adding: wwwroot/css/site.css (deflated 54%)
... zipping: adding: wwwroot/js/site.js (deflated 27%)
... zipping: adding: wwwroot/lib/bootstrap/LICENSE (deflated 42%)
... zipping: adding: wwwroot/lib/jquery/LICENSE.txt (deflated 44%)
... zipping: adding: wwwroot/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.js (deflated 76%)
... zipping: adding: wwwroot/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.min.js (deflated 62%)
... zipping: adding: wwwroot/lib/jquery-validation-unobtrusive/LICENSE.txt (deflated 36%)
... zipping: adding: wwwroot/lib/jquery-validation/LICENSE.md (deflated 42%)
... zipping: adding: wwwroot/lib/jquery/dist/jquery.min.js (deflated 66%)
... zipping: adding: wwwroot/lib/jquery/dist/jquery.min.map (deflated 60%)
... zipping: adding: wwwroot/lib/jquery/dist/jquery.js (deflated 71%)
... zipping: adding: wwwroot/lib/jquery-validation/dist/jquery.validate.min.js (deflated 68%)
... zipping: adding: wwwroot/lib/jquery-validation/dist/additional-methods.js (deflated 72%)
... zipping: adding: wwwroot/lib/jquery-validation/dist/additional-methods.min.js (deflated 70%)
... zipping: adding: wwwroot/lib/jquery-validation/dist/jquery.validate.js (deflated 73%)
... zipping: adding: wwwroot/lib/bootstrap/dist/css/bootstrap.min.css (deflated 85%)
... zipping: adding: wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.min.css.map (deflated 75%)
... zipping: adding: wwwroot/lib/bootstrap/dist/css/bootstrap.css (deflated 87%)
... zipping: adding: wwwroot/lib/bootstrap/dist/css/bootstrap-grid.css.map (deflated 82%)
... zipping: adding: wwwroot/lib/bootstrap/dist/css/bootstrap-grid.min.css (deflated 88%)
... zipping: adding: wwwroot/lib/bootstrap/dist/css/bootstrap.css.map (deflated 80%)
... zipping: adding: wwwroot/lib/bootstrap/dist/css/bootstrap.min.css.map (deflated 84%)
... zipping: adding: wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.min.css (deflated 60%)
... zipping: adding: wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.css (deflated 65%)
... zipping: adding: wwwroot/lib/bootstrap/dist/css/bootstrap-grid.css (deflated 89%)
... zipping: adding: wwwroot/lib/bootstrap/dist/css/bootstrap-grid.min.css.map (deflated 87%)
... zipping: adding: wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.css.map (deflated 78%)
... zipping: adding: wwwroot/lib/bootstrap/dist/js/bootstrap.bundle.js (deflated 79%)
... zipping: adding: wwwroot/lib/bootstrap/dist/js/bootstrap.bundle.min.js.map (deflated 74%)
... zipping: adding: wwwroot/lib/bootstrap/dist/js/bootstrap.bundle.js.map (deflated 77%)
... zipping: adding: wwwroot/lib/bootstrap/dist/js/bootstrap.js (deflated 81%)
... zipping: adding: wwwroot/lib/bootstrap/dist/js/bootstrap.bundle.min.js (deflated 72%)
... zipping: adding: wwwroot/lib/bootstrap/dist/js/bootstrap.min.js (deflated 74%)
... zipping: adding: wwwroot/lib/bootstrap/dist/js/bootstrap.js.map (deflated 77%)
... zipping: adding: wwwroot/lib/bootstrap/dist/js/bootstrap.min.js.map (deflated 76%)
Created publish archive (/Users/<user>/dev/repros/AspNetCoreElasticBeanstalk146/AspNetCoreElasticBeanstalk146/bin/Release/netcoreapp3.1/AspNetCoreElasticBeanstalk146-637420740291291460.zip).
Zip archive created: /Users/<user>/dev/repros/AspNetCoreElasticBeanstalk146/AspNetCoreElasticBeanstalk146/bin/Release/netcoreapp3.1/AspNetCoreElasticBeanstalk146-637420740291291460.zip
Making sure bucket 'elasticbeanstalk-us-east-2-139480602983' exists
..a bucket with name 'elasticbeanstalk-us-east-2-139480602983' already exists and will be used for upload
... Uploading from file path /Users/<user>/dev/repros/AspNetCoreElasticBeanstalk146/AspNetCoreElasticBeanstalk146/bin/Release/netcoreapp3.1/AspNetCoreElasticBeanstalk146-637420740291291460.zip, size 1036542 bytes to Amazon S3
Uploading to S3. (Bucket: elasticbeanstalk-us-east-2-139480602983 Key: AspNetCoreElasticBeanstalk/AWSDeploymentArchive_AspNetCoreElasticBeanstalk_637420740050197060.zip)
... Progress: 10%
... Progress: 20%
... Progress: 30%
... Progress: 41%
... Progress: 51%
... Progress: 61%
... Progress: 71%
... Progress: 82%
... Progress: 92%
... Progress: 100%
Creating new application version: 637420740050197060
Getting latest environment event date before update
Select EC2 Instance Profile:
1) aws-elasticbeanstalk-ec2-role
2) *** Create new Instance Profile ***
1
Using service role aws-elasticbeanstalk-service-role
Waiting for environment update to complete
11/27/20 11:40:51 AM INFO createEnvironment is starting.
11/27/20 11:40:51 AM INFO Using elasticbeanstalk-us-east-2-139480602983 as Amazon S3 storage bucket for environment data.
11/27/20 11:41:14 AM INFO Environment health has transitioned to Pending. Initialization in progress (running for 2 seconds). There are no instances.
11/27/20 11:41:16 AM INFO Created security group named: awseb-e-hytnt2z327-stack-AWSEBSecurityGroup-1GZMI317Z4LHU
11/27/20 11:41:32 AM INFO Created EIP: 3.140.21.66
11/27/20 11:42:37 AM INFO Waiting for EC2 instances to launch. This may take a few minutes.
11/27/20 11:42:43 AM INFO Instance deployment found a runtime-dependent .NET Core application in your source bundle.
11/27/20 11:42:46 AM INFO Instance deployment completed successfully.
11/27/20 11:43:00 AM INFO Application available at App-env.eba-dkm3xpid.us-east-2.elasticbeanstalk.com.
11/27/20 11:43:00 AM INFO Successfully launched environment: App-env
Environment update complete: http://3.140.21.66/
Update Complete
Executed dotnet eb list-environments
:
Amazon Elastic Beanstalk Tools for .NET Core applications (4.1.0)
Project Home: https://github.com/aws/aws-extensions-for-dotnet-cli
App-env (Ready/Green) http://App-env.eba-dkm3xpid.us-east-2.elasticbeanstalk.com/
5. Re-executed `dotnet eb deploy-environment` from project's root directory:
Amazon Elastic Beanstalk Tools for .NET Core applications (4.1.0) Project Home: https://github.com/aws/aws-extensions-for-dotnet-cli
Enter Elastic Beanstalk Application: (The name of the Elastic Beanstalk application.)
AspNetCoreElasticBeanstalk
Enter Elastic Beanstalk Environment: (The name of the Elastic Beanstalk environment.)
App-env
Determine publish location: /Users/
As you could see above, re-executing `dotnet eb deploy-environment` updates the environment and application successfully without any issues. Not sure what could be causing issue in your case.
Thanks,
Ashish
Hi @ashishdhingra .
I've tried also with sample app created with dotnet new command
dotnet eb deploy-environment --environment AppApp-env --application AppApp
Amazon Elastic Beanstalk Tools for .NET Core applications (4.1.0)
Project Home: https://github.com/aws/aws-extensions-for-dotnet-cli
Select Elastic Beanstalk Solution Stack:
1) 64bit Amazon Linux 2 v2.1.0 running .NET Core
2) 64bit Windows Server 2012 R2 running IIS 8.5
3) 64bit Windows Server 2012 running IIS 8
4) 64bit Windows Server 2016 v2.6.0 running IIS 10.0
5) 64bit Windows Server 2019 v2.6.0 running IIS 10.0
6) 64bit Windows Server Core 2012 R2 running IIS 8.5
7) 64bit Windows Server Core 2016 v2.6.0 running IIS 10.0
8) 64bit Windows Server Core 2019 v2.6.0 running IIS 10.0
1
Determine publish location: /home/user/Downloads/my-new-app/bin/Release/netcoreapp3.1/publish
Executing publish command
... invoking 'dotnet publish'
Executing: dotnet publish "/home/user/Downloads/my-new-app" --output "/home/user/Downloads/my-new-app/bin/Release/netcoreapp3.1/publish" --configuration "Release" --framework "netcoreapp3.1" --runtime linux-x64 --self-contained false
... dotnet publish: Microsoft (R) Build Engine version 16.7.1+52cd83677 for .NET
... dotnet publish: Copyright (C) Microsoft Corporation. All rights reserved.
... dotnet publish: Determining projects to restore...
... dotnet publish: Restored /home/user/Downloads/my-new-app/my-new-app.csproj (in 342 ms).
... dotnet publish: my-new-app -> /home/user/Downloads/my-new-app/bin/Release/netcoreapp3.1/linux-x64/my-new-app.dll
... dotnet publish: my-new-app -> /home/user/Downloads/my-new-app/bin/Release/netcoreapp3.1/linux-x64/my-new-app.Views.dll
... dotnet publish: npm WARN eslint-config-react-app@5.2.0 requires a peer of eslint-plugin-flowtype@3.x but none is installed. You must install peer dependencies yourself.
... dotnet publish: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.2 (node_modules/fsevents):
... dotnet publish: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
... dotnet publish: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.12 (node_modules/webpack-dev-server/node_modules/fsevents):
... dotnet publish: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.12: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
... dotnet publish: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.12 (node_modules/watchpack/node_modules/fsevents):
... dotnet publish: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.12: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
... dotnet publish: audited 1864 packages in 8.408s
... dotnet publish: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.12 (node_modules/jest-haste-map/node_modules/fsevents):
... dotnet publish: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.12: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
... dotnet publish:
... dotnet publish:
... dotnet publish: 54 packages are looking for funding
... dotnet publish: run npm fund
for details
... dotnet publish:
... dotnet publish: found 4958 vulnerabilities (4950 low, 1 moderate, 7 high)
... dotnet publish: run npm audit fix
to fix them, or npm audit
for details
... dotnet publish:
... dotnet publish: > my_new_app@0.1.0 build /home/user/Downloads/my-new-app/ClientApp
... dotnet publish: > react-scripts build
... dotnet publish:
... dotnet publish: Creating an optimized production build...
... dotnet publish: Browserslist: caniuse-lite is outdated. Please run:
... dotnet publish: npx browserslist@latest --update-db
... dotnet publish: Compiled successfully.
... dotnet publish:
... dotnet publish: File sizes after gzip:
... dotnet publish:
... dotnet publish: 56.61 KB build/static/js/2.91b6face.chunk.js
... dotnet publish: 22.39 KB build/static/css/2.74189dbb.chunk.css
... dotnet publish: 2.66 KB build/static/js/main.61271514.chunk.js
... dotnet publish: 772 B build/static/js/runtime-main.cf05de03.js
... dotnet publish: 271 B build/static/css/main.13b298a8.chunk.css
... dotnet publish:
... dotnet publish: The project was built assuming it is hosted at /.
... dotnet publish: You can control this with the homepage field in your package.json.
... dotnet publish:
... dotnet publish: The build folder is ready to be deployed.
... dotnet publish: You may serve it with a static server:
... dotnet publish:
... dotnet publish: npm install -g serve
... dotnet publish: serve -s build
... dotnet publish:
... dotnet publish: Find out more about deployment here:
... dotnet publish:
... dotnet publish: bit.ly/CRA-deploy
... dotnet publish:
... dotnet publish: my-new-app -> /home/user/Downloads/my-new-app/bin/Release/netcoreapp3.1/publish/
Changed permissions on published dll (chmod +r Microsoft.AspNetCore.SpaServices.dll).
Changed permissions on published dll (chmod +r Microsoft.Extensions.Logging.Abstractions.dll).
Changed permissions on published dll (chmod +r Microsoft.Extensions.Configuration.dll).
Changed permissions on published dll (chmod +r Microsoft.AspNetCore.SpaServices.Extensions.dll).
Changed permissions on published dll (chmod +r Microsoft.Extensions.Logging.Configuration.dll).
Changed permissions on published dll (chmod +r Microsoft.Extensions.Logging.dll).
Changed permissions on published dll (chmod +r my-new-app.dll).
Changed permissions on published dll (chmod +r Microsoft.Extensions.Configuration.Abstractions.dll).
Changed permissions on published dll (chmod +r Microsoft.Extensions.FileProviders.Abstractions.dll).
Changed permissions on published dll (chmod +r my-new-app.Views.dll).
Changed permissions on published dll (chmod +r Microsoft.Extensions.Options.ConfigurationExtensions.dll).
Changed permissions on published dll (chmod +r Microsoft.Extensions.Options.dll).
Changed permissions on published dll (chmod +r Microsoft.Extensions.DependencyInjection.Abstractions.dll).
Changed permissions on published dll (chmod +r Microsoft.Extensions.Logging.Console.dll).
Changed permissions on published dll (chmod +r Newtonsoft.Json.dll).
Changed permissions on published dll (chmod +r Microsoft.Extensions.FileSystemGlobbing.dll).
Changed permissions on published dll (chmod +r Microsoft.AspNetCore.NodeServices.dll).
Changed permissions on published dll (chmod +r Microsoft.Extensions.DependencyInjection.dll).
Changed permissions on published dll (chmod +r Microsoft.Extensions.Configuration.Binder.dll).
Changed permissions on published dll (chmod +r Microsoft.Extensions.FileProviders.Physical.dll).
Changed permissions on published dll (chmod +r Microsoft.Extensions.Primitives.dll).
Configuring application bundle for a Linux deployment
Writing Procfile for deployment bundle
... Procfile command used to start application
web: dotnet exec ./my-new-app.dll
Zipping up publish folder
... zipping: adding: my-new-app.deps.json (deflated 91%)
... zipping: adding: my-new-app.pdb (deflated 48%)
... zipping: adding: Microsoft.AspNetCore.SpaServices.dll (deflated 58%)
... zipping: adding: Microsoft.Extensions.Logging.Abstractions.dll (deflated 53%)
... zipping: adding: Microsoft.Extensions.Configuration.dll (deflated 47%)
... zipping: adding: Microsoft.AspNetCore.SpaServices.Extensions.dll (deflated 54%)
... zipping: adding: Microsoft.Extensions.Logging.Configuration.dll (deflated 46%)
... zipping: adding: Microsoft.Extensions.Logging.dll (deflated 49%)
... zipping: adding: my-new-app.dll (deflated 57%)
... zipping: adding: appsettings.Development.json (deflated 38%)
... zipping: adding: Microsoft.Extensions.Configuration.Abstractions.dll (deflated 47%)
... zipping: adding: Microsoft.Extensions.FileProviders.Abstractions.dll (deflated 48%)
... zipping: adding: my-new-app.Views.dll (deflated 60%)
... zipping: adding: Microsoft.Extensions.Options.ConfigurationExtensions.dll (deflated 47%)
... zipping: adding: Microsoft.Extensions.Options.dll (deflated 55%)
... zipping: adding: Microsoft.Extensions.DependencyInjection.Abstractions.dll (deflated 55%)
... zipping: adding: Microsoft.Extensions.Logging.Console.dll (deflated 48%)
... zipping: adding: Newtonsoft.Json.dll (deflated 62%)
... zipping: adding: Microsoft.Extensions.FileSystemGlobbing.dll (deflated 49%)
... zipping: adding: my-new-app (deflated 61%)
... zipping: adding: Microsoft.AspNetCore.NodeServices.dll (deflated 56%)
... zipping: adding: Microsoft.Extensions.DependencyInjection.dll (deflated 53%)
... zipping: adding: Procfile (stored 0%)
... zipping: adding: appsettings.json (deflated 40%)
... zipping: adding: Microsoft.Extensions.Configuration.Binder.dll (deflated 47%)
... zipping: adding: web.config (deflated 39%)
... zipping: adding: Microsoft.Extensions.FileProviders.Physical.dll (deflated 48%)
... zipping: adding: my-new-app.runtimeconfig.json (deflated 31%)
... zipping: adding: Microsoft.Extensions.Primitives.dll (deflated 50%)
... zipping: adding: my-new-app.Views.pdb (deflated 48%)
... zipping: adding: ClientApp/build/favicon.ico (deflated 71%)
... zipping: adding: ClientApp/build/index.html (deflated 52%)
... zipping: adding: ClientApp/build/asset-manifest.json (deflated 75%)
... zipping: adding: ClientApp/build/precache-manifest.217cd030db62f1447befc72e20940c1e.js (deflated 60%)
... zipping: adding: ClientApp/build/service-worker.js (deflated 44%)
... zipping: adding: ClientApp/build/manifest.json (deflated 41%)
... zipping: adding: ClientApp/build/static/css/2.74189dbb.chunk.css (deflated 84%)
... zipping: adding: ClientApp/build/static/css/main.13b298a8.chunk.css (deflated 28%)
... zipping: adding: ClientApp/build/static/css/main.13b298a8.chunk.css.map (deflated 46%)
... zipping: adding: ClientApp/build/static/css/2.74189dbb.chunk.css.map (deflated 80%)
... zipping: adding: ClientApp/build/static/js/main.61271514.chunk.js.map (deflated 66%)
... zipping: adding: ClientApp/build/static/js/2.91b6face.chunk.js.map (deflated 71%)
... zipping: adding: ClientApp/build/static/js/2.91b6face.chunk.js (deflated 69%)
... zipping: adding: ClientApp/build/static/js/2.91b6face.chunk.js.LICENSE.txt (deflated 75%)
... zipping: adding: ClientApp/build/static/js/runtime-main.cf05de03.js.map (deflated 65%)
... zipping: adding: ClientApp/build/static/js/runtime-main.cf05de03.js (deflated 52%)
... zipping: adding: ClientApp/build/static/js/main.61271514.chunk.js (deflated 68%)
Created publish archive (/home/user/Downloads/my-new-app/bin/Release/netcoreapp3.1/my-new-app-637423324741676266.zip).
Zip archive created: /home/user/Downloads/my-new-app/bin/Release/netcoreapp3.1/my-new-app-637423324741676266.zip
Making sure bucket 'elasticbeanstalk-us-east-1-974959842011' exists
... Uploading from file path /home/user/Downloads/my-new-app/bin/Release/netcoreapp3.1/my-new-app-637423324741676266.zip, size 1055325 bytes to Amazon S3
Uploading to S3. (Bucket: elasticbeanstalk-us-east-1-974959842011 Key: AppApp/AWSDeploymentArchive_AppApp_637423324409322989.zip)
... Progress: 10%
... Progress: 20%
... Progress: 30%
... Progress: 40%
... Progress: 50%
... Progress: 60%
... Progress: 70%
... Progress: 80%
... Progress: 90%
... Progress: 100%
Creating new application version: 637423324409322989
Getting latest environment event date before update
Select EC2 Instance Profile:
1) aws-elasticbeanstalk-ec2-role
2) Create new Instance Profile
1
Using service role aws-elasticbeanstalk-service-role
Error creating environment: Environment AppApp-env already exists
After deleting and recreating environment I cannot reproduce this issue. I'll reopen this when I will be able to reproduce it on new environment.
Hi @michalzubkowicz,
Thanks for confirming that the command works for you. I'm closing this issue. Feel free to open a new issue referencing this one in case you encounter it again.
Thanks, Ashish
Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.
https://github.com/aws/aws-extensions-for-dotnet-cli/issues/146#issue-751603739 I had the same issue. You want to terminate the previous instance.
eb terminate django-env
I discovered the terminate option by running: eb --help
Once the existing instance is terminated, I was able to run: eb create django-env
Description
Cannot redeploy application, because of error "Error creating environment: Environment App-env already exists" I can see such environment with command dotnet eb list-environments
Reproduction Steps
After deploying first time with command dotnet eb deploy-environment succesfully and later trying to redeploy app this error occurs.
Environment
Linux Mint 20 Amazon Elastic Beanstalk Tools for .NET Core applications (4.1.0)
This is a :bug: bug-report