Skip to content

Update Elastic Beanstalk configuration files for Amazon Linux 2#840

Merged
eitoball merged 7 commits into
mainfrom
amazon-linux-2
Nov 20, 2021
Merged

Update Elastic Beanstalk configuration files for Amazon Linux 2#840
eitoball merged 7 commits into
mainfrom
amazon-linux-2

Conversation

@eitoball

@eitoball eitoball commented Nov 16, 2021

Copy link
Copy Markdown
Member

I tried to deploy it on dev environment.
It fails when swapping environment CNAMEs, so I swap them manually.

Command to create new environment on new platform

$ ./deploy.py new_env api prd api-master-xxxxx "arn:aws:elasticbeanstalk:us-west-2::platform/Ruby 2.6 running on 64bit Amazon Linux 2/3.4.0"

Commands to revert to previous environment

$ aws elasticbeanstalk create-environment --application-name api --environment-name safecastapi-prd-007 --template-name dev --platform-arn "arn:aws:elasticbeanstalk:us-west-2::platform/Puma with Ruby 2.6 running on 64bit Amazon Linux/2.12.5" --version-label api-airnote_landing_page-1412-e0382bdd03a59364f679dfeaea196e04bdd03ca8
$ aws elasticbeanstalk create-environment --application-name api --environment-name safecastapi-prd-wrk-007 --template-name dev-wrk --platform-arn "arn:aws:elasticbeanstalk:us-west-2::platform/Puma with Ruby 2.6 running on 64bit Amazon Linux/2.12.5" --version-label api-airnote_landing_page-1412-e0382bdd03a59364f679dfeaea196e04bdd03ca8
  • Need to install PostgreSQL 11 stuff manually.

@eitoball eitoball self-assigned this Nov 16, 2021
@eitoball eitoball force-pushed the amazon-linux-2 branch 9 times, most recently from 377ac1e to 143795b Compare November 19, 2021 17:28
@eitoball eitoball marked this pull request as ready for review November 20, 2021 06:32
@@ -1,12 +0,0 @@
files:
"/etc/nginx/conf.d/maintenance.conf":

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you have another way to have a maintenance page somewhere in here? Could probably live without for awhile.

server {
listen 81;
server_name _ localhost;
root /var/app/current/public/maintenance;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah nice

@matschaffer matschaffer left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This all looks pretty solid to me. Fire when ready and ping me in slack if anything gets weird.

Thanks for the work getting us updated! 🧡

@eitoball eitoball merged commit abaf8a3 into main Nov 20, 2021
@eitoball eitoball deleted the amazon-linux-2 branch November 20, 2021 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants