This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
amazon-linux-extras install epel -y | |
yum -y update | |
yum -y install nginx | |
yum -y install python3 | |
yum -y install python3-pip | |
yum -y install ruby | |
yum -y install wget | |
yum -y install curl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
user proxy proxy; | |
error_log /home/proxy/logs/error.log warn; | |
pid /run/nginx.pid; | |
worker_processes auto; | |
worker_rlimit_nofile 32788; | |
events { | |
worker_connections 1024; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
provider "aws" {} | |
data "aws_region" "current" {} | |
data "aws_caller_identity" "current" {} | |
data "aws_availability_zones" "available" { | |
state = "available" | |
} | |
data "aws_elastic_beanstalk_solution_stack" "python-stack" { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Parameters: | |
SolutionStackName: | |
Type: String | |
Resources: | |
DemoBucket: | |
Type: AWS::S3::Bucket | |
Properties: | |
BucketName: !Sub "demo-app-bucket-${AWS::Region}-${AWS::AccountId}" | |
AccessControl: "Private" | |
DemoApplication: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data "aws_caller_identity" "current" {} | |
data "aws_region" "current" {} | |
data "aws_elastic_beanstalk_solution_stack" "python-stack" { | |
name_regex = "^64bit Amazon Linux 2 (.*) running Python 3.8$" | |
most_recent = true | |
} | |
resource "aws_elastic_beanstalk_application" "demo-app" { | |
name = "demo-app" |