简体   繁体   中英

AWS EB CLI Django

I have successfully managed to deploy my Django project on AWS EB using EB CLI through PyCharm terminal local project on a Windows PC, however I would like to access the project via an EB instance on AWS console to edit some files individually instead of deploying the whole project each time.

The instance is Amazon Linux 2.

I connected to the EC2 instance of my project environment on the AWS EC2 instance connect and brings up the Elastic Beanstalk EC2 message, however I'm unable to find my project files within this console. Is there a way to access my already deployed project with AWS console, and if so how?

You can't see your files from the AWS console. Your files were deployed to a virtual machine of which filesystem can be viewed if you connect to the instance.

The recommended way to connect to an Elastic Beanstalk instance is to use eb ssh . This will expose port 22 temporarily on the instance and will allow you to safely connect to it.

eb ssh requires an SSH client to be installed, nowadays even Windows machines do come with SSH pre-installed, so this should not be a problem. It also requires to have an SSH key pair, which can be generated by running eb init --interactive and selecting yes when it asks for creating a key pair.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM