amazon-archives / aws-cognito-angular-quickstart

An Angular(v5)-based QuickStart single-page app utilizing Amazon Cognito, S3, and DynamoDB (Serverless architecture)
https://cognito.budilov.com
Apache License 2.0
689 stars 304 forks source link

Elastic Beanstalk Support #44

Closed jiajing28 closed 7 years ago

jiajing28 commented 7 years ago

Made updates to the createResource script that prompts users for a dynamic root name as well as a choice in whether they want to upload their application to S3 or Elastic Beanstalk

vbudilov commented 7 years ago

The contents of dist/ should probably go under the location /static to improve performance, since this is a completely static site (it doesn't require a runtime environment).

Configuring the Proxy Server http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create_deploy_nodejs.container.html

vbudilov commented 7 years ago

We might want to mention that choosing Beanstalk as an option would run for 10 minutes or so

vbudilov commented 7 years ago

After running the command to install the environment on beanstalk, I got the following (the messages seem to contradict each other):

INFO: Successfully launched environment: budilov2test

Elastic Beanstalk environment creation failed
Region:  us-west-2
vbudilov commented 7 years ago

It would be great to see the create script print a URL which I could call to test the newly deployed environment. Is that possible with our APIs?

vbudilov commented 7 years ago

Is there a "delete environment" script?

vbudilov commented 7 years ago

The script should have the ability to take an aws 'profile' as a value.

vbudilov commented 7 years ago

A brief set of command of how to update your app using beanstalk would be helpful in the README. Basically, once deployed, how do I redeploy with changes and not recreate some of the resources (like DDB)?

jiajing28 commented 7 years ago

@vbudilov commented on Feb 11, 2017, 6:30 AM PST:

We might want to mention that choosing Beanstalk as an option would run for 10 minutes or so

Agreed. I'll add a line mentioning this to the logs. I think it's also worthwhile to add to the README a link describing what Elastic Beanstalk and S3 are. This would be especially useful before they run the createResources script

jiajing28 commented 7 years ago

@vbudilov commented on Feb 11, 2017, 6:40 AM PST:

It would be great to see the create script print a URL which I could call to test the newly deployed environment. Is that possible with our APIs?

eb open will launch the deployed web app in a browser. You can also run eb status to see attributes of the environment which will include the url but I think this is "additional" information that people who are interested can find through the eb cli link.

jiajing28 commented 7 years ago

@vbudilov commented on Feb 11, 2017, 6:40 AM PST:

Is there a "delete environment" script?

Yes, eb terminate deletes an environment. Again, users can find this command by following the eb cli link.

jiajing28 commented 7 years ago

@vbudilov commented on Feb 11, 2017, 6:43 AM PST:

The script should have the ability to take an aws 'profile' as a value.

Can you describe what you define as an aws 'profile'?