
[英]HTTPS/SSL Issues on AWS Elastic Beanstalk Multicontainer Docker Configuration
[英]How to enable https in elasticbeanstalk with multicontainer docker without using AWS 53 endpoint domain or any other domain's ssl?
我有带有以下 Dockerrun.json 的多容器的 elasticbeanstalk。 和 elb 地址http://{app-name-env}.ap-south-1.elasticbeanstalk.com/
,现在我想将HTTP
转换为HTTPS
而不购买 AWS 53 端点(任何其他基于成本的购买)。 在某些示例中,他们使用带有 {app-name-env}.ap-south-1.elasticbeanstalk.com 作为域的 HTTPS。
{
"AWSEBDockerrunVersion": 2,
"containerDefinitions": [{
"environment": [{
"name": "POSTGRES_USER",
"value": "admin"
},
{
"name": "POSTGRES_PASSWORD",
"value": "postgres"
},
{
"name": "POSTGRES_DB",
"value": "some-db"
}
],
"essential": true,
"image": "postgres:12-alpine",
"memory": 300,
"mountPoints": [{
"containerPath": "/var/lib/postgresql/data/",
"sourceVolume": "postgres_data"
}],
"name": "db",
"portMappings": [{
"containerPort": 5432,
"hostPort": 5432
}]
},
{
"essential": true,
"links": [
"db"
],
"name": "web",
"image": "**********.dkr.ecr.ap-south-1.amazonaws.com/***:***",
"memory": 300,
"portMappings": [{
"containerPort": 80,
"hostPort": 80
}]
}
],
"volumes": [{
"host": {
"sourcePath": "postgres_data"
},
"name": "postgres_data"
}
]
}
遗憾的是你不能这样做。 对于 Https 所需的有效公共 ssl 证书,您需要自己的域。 您不能将 aws 提供的域用于 eb。
您所遵循的教程是将 ACM 用于只能为您自己的域获取的 ssl 证书。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.