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.
33 lines
670 B
YAML
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"
|