How to find my current nginx.conf file from the AWS EC2 Enviroment

Advertisements I need to modify nginx.conf to increase client_max_body_size . On the AWS docs . Here they are giving an example of how to modify the configuration . but they are doing a lot more things that I don’t want to do that. https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/java-se-nginx.html user nginx; error_log /var/log/nginx/error.log warn; pid /var/run/nginx.pid; worker_processes auto; worker_rlimit_nofile 33282;… Read More How to find my current nginx.conf file from the AWS EC2 Enviroment

aws Unknown runtime version named 'openjdk8' of java. This build image has the following versions: corretto11, corretto8

Advertisements I am trying to deploy my java application to aws EBS using codecommit but I am faced with this error YAML_FILE_ERROR Message: Unknown runtime version named ‘openjdk8’ of java. This build image has the following versions: corretto11, corretto8 I am using ubuntu with codebuild standard:4.0 my runtime version in my buildspec is openjdk8 >Solution… Read More aws Unknown runtime version named 'openjdk8' of java. This build image has the following versions: corretto11, corretto8

Elastic Beanstalk – Ebextension config file not showing on ec2 instance

Advertisements files: "/home/ec2-user/vhost.conf": mode: "000777" owner: root group: root encoding: plain content: | NameVirtualHost *:80 <VirtualHost *:80> ServerName api.domain.com DocumentRoot "/var/app/current/api/" <Directory "/var/app/current/api"> AllowOverride All Require all Granted </Directory> </VirtualHost> container_commands: 00_chmod: command: "sudo chmod 777 /etc/httpd/conf.d/elasticbeanstalk" 01_rewrite: command: "sudo mv -f /home/ec2-user/vhost.conf /etc/httpd/conf.d/elasticbeanstalk/vhost.conf" 02_apache: command: "sudo apachectl restart" This is the config i am… Read More Elastic Beanstalk – Ebextension config file not showing on ec2 instance

Terraform – The instance profile associated with the environment does not exist

Advertisements I am trying to create an Elastic Beanstalk application but I am coming across the error: The instance profile iam_for_beanstalk associated with the environment does not exist. The role does exist as you can see here: and it is being created via Terraform through the following code: resource "aws_iam_role" "beanstalk" { name = "iam_for_beanstalk"… Read More Terraform – The instance profile associated with the environment does not exist