forgejo-deployment/infra/cfn/forgejo-ecs-cluster.yaml
Daisuke 1998d1cf03 feat(infra/cfn): provision Forgejo ECS cluster, service, and task
Define ECS cluster with exports, service wired to ALB target group and deployment circuit
breaker, and task definition with IAM role, ARM64 runtime, EFS volumes, ports 3000/2222,
logging, and MinIO/S3 env config.
2026-01-02 18:20:02 +09:00

33 lines
670 B
YAML

AWSTemplateFormatVersion: "2010-09-09"
Description: ECS Cluster for Forgejo
Parameters:
ClusterName:
Type: String
Default: my-forgejo-cluster
Description: Name of the ECS Cluster
Resources:
ECSCluster:
Type: AWS::ECS::Cluster
Properties:
ClusterName: !Ref ClusterName
Tags:
- Key: Project
Value: Git-server
Outputs:
ClusterArn:
Description: ARN of the ECS Cluster
Value: !GetAtt ECSCluster.Arn
Export:
Name: !Sub "${AWS::StackName}-ClusterArn"
ClusterName:
Description: Name of the ECS Cluster
Value: !Ref ClusterName
Export:
Name: !Sub "${AWS::StackName}-ClusterName"