This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| VPC: | |
| Type: AWS::EC2::VPC | |
| Properties: | |
| EnableDnsSupport: true | |
| EnableDnsHostnames: true | |
| CidrBlock: 10.0.0.0/16 | |
| Tags: # You can give | |
| - Key: Name # pretty names to | |
| Value: ECSFS VPC # your resources. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| InternetGateway: | |
| Type: AWS::EC2::InternetGateway | |
| GatewayAttachment: | |
| Type: AWS::EC2::VPCGatewayAttachment | |
| Properties: | |
| InternetGatewayId: !Ref InternetGateway | |
| VpcId: !Ref VPC | |
| PublicRouteTable: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| NatElasticIP: | |
| Type: AWS::EC2::EIP | |
| NatGateway: | |
| Type: AWS::EC2::NatGateway | |
| Properties: | |
| AllocationId: !GetAtt NatElasticIP.AllocationId | |
| SubnetId: !Ref PublicSubnetOne | |
| PrivateRouteTable: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FargateContainerSecurityGroup: | |
| Type: AWS::EC2::SecurityGroup | |
| Properties: | |
| GroupDescription: Access to Fargate containers. | |
| VpcId: !Ref VPC | |
| IngressFromPublicALBSecurityGroup: | |
| Type: AWS::EC2::SecurityGroupIngress | |
| Properties: | |
| Description: Ingress from the public Application Load Balancer. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| TargetGroup: | |
| Type: AWS::ElasticLoadBalancingV2::TargetGroup | |
| Properties: | |
| Name: ecsfs-target-group | |
| Port: 80 | |
| Protocol: HTTP | |
| TargetType: ip | |
| VpcId: !Ref VPC | |
| ListenerHTTP: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ECSCluster: | |
| Type: AWS::ECS::Cluster | |
| Properties: | |
| ClusterName: ecsfs-cluster |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| LogGroup: | |
| Type: AWS::Logs::LogGroup | |
| Properties: | |
| LogGroupName: ecsfs-logs | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ExecutionRole: | |
| Type: AWS::IAM::Role | |
| Properties: | |
| RoleName: ecsfs-execution-role | |
| AssumeRolePolicyDocument: | |
| Statement: | |
| - Effect: Allow | |
| Principal: | |
| Service: ecs-tasks.amazonaws.com | |
| Action: sts:AssumeRole |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| BackendTaskDefinition: | |
| Type: AWS::ECS::TaskDefinition | |
| DependsOn: LogGroup | |
| Properties: | |
| Family: ecsfs-backend-td | |
| Cpu: 256 | |
| Memory: 1024 | |
| NetworkMode: awsvpc | |
| RequiresCompatibilities: | |
| - FARGATE |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| LocalNamespace: | |
| Type: AWS::ServiceDiscovery::PrivateDnsNamespace | |
| Properties: | |
| Vpc: !Ref VPC | |
| Name: local | |
| NginxLocalDiscoveryService: | |
| Type: AWS::ServiceDiscovery::Service | |
| Properties: | |
| Name: ecsfs-nginx |