Getting SSL certificate for AWS EB

I deployed a DRF application on Elastic Beanstalk and now I need to make it https. I requested a public certificate from AWS ACM using EB URL for domain name but got the following message. You cannot request a certificate for Amazon-owned domain names such as those ending in amazonaws.com, cloudfront.net, or elasticbeanstalk.com. Now the… Read More Getting SSL certificate for AWS EB

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

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; events… 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

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

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 using,… Read More Elastic Beanstalk – Ebextension config file not showing on ec2 instance

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

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" assume_role_policy… Read More Terraform – The instance profile associated with the environment does not exist