我的项目有 2 个存储库。静态网站和服务器。我希望该网站由 cloudfront 和 s3 以及 elasticbeanstalk 上的服务器托管。我知道这些资源至少需要知道一个 route53 资源才能在相同的域名下才能使 cors 工作。其中包括 vpcs 和其他东西。
所以我的问题是如何使用多个 repos 管理 terraform。我想我可以有一个单独的基础设施回购,为所有回购构建。我也可以让它们分开并将 arns/names/ids 作为变量传递(烦人)。
运行
aws ecs update-service --cluster cluster-name --service service-name --force-new-deployment --region ap-southeast-2打开:
{
"service": {
"serviceArn": "arn:aws:ecs:ap-southeast-2:000000000000:service/service-name",
"serviceName": "service-name",
"clusterArn": "arn:aws:ecs:ap-southeast-2:000000000000:cluster/clustername",
"loadBalancers": [
{
"targetGroupArn": "arn:aws:elasticloadbalancing:ap-southeast-2:000000000000:targetgroup/targetgroupname",
"containerName": "containername",
"containerPort": 5000
}
],
"serviceRegistries": [],
"status": "ACTIVE",
"desiredCount": 1,
"runningCount": 1,
"pendingCount": 1,
"launchType": "FARGATE",
"platformVersion": "LATEST",
"taskDefinition": "arn:aws:ecs:ap-southeast-2:000000000000:task-definition/service-name:43",
:
Run Code Online (Sandbox Code Playgroud)
并阻止我的外壳直到我按下q。这曾经工作得很好。我想我更新了我的 AWSCLI,导致了这个问题。为什么会发生这种情况?如何避免在 CI 脚本中更新我的服务?