Giter Site home page Giter Site logo

hl-component-fargate-v2's Introduction

cftest

fargate-v2 CfHighlander component

Deploys a ECS fargates service with support for creating and managing ALB/NLB target groups

vpc-v2 CfHighlander component

Base component in which to build AWS network based resources from such as EC2, RDS and ECS

kurgan add fargate-v2

Requirements

Parameters

Name Use Default Global Type Allowed Values
EnvironmentName Tagging dev true string
EnvironmentType Tagging development true string ['development','production']
VPCId Security Groups None false AWS::EC2::VPC::Id
SubnetIds list of subnets None false CommaDelimitedList
EcsCluster ecs cluster to deploy to None false string
LoadBalancer ALB/NLB None false string (arn)
LoadBalancer ALB/NLB None false string (arn)
Listener ALB/NLB listener None false string (arn
DesiredCount No running tasks 1 false int
MinimumHealthyPercent Deployment 100 false int
MaximumPercent Deployment 200 false int
EnableScaling Autoscaling false false boolean

Configuration

Task Definition

task_definition:
  web:
    image: nginx
    ports:
      - 80

Target Groups

targetgroup:
  name: web
  type: ip
  container: nginx
  port: 80
  protocol: http
  listener: http
  rules:
    -
      host: www.*
      priority: 10

Outputs/Exports

Name Value Exported
SecurityGroup Ecs Service SecurityGroup true
TaskTargetGroup Task Targetgroup true
ServiceName Ecs Service Name true

Included Components

ecs-task

Development

gem install cfhighlander

or via docker

docker pull theonestack/cfhighlander

compiling the templates

cfcompile fargate-v2

compiling with the vaildate flag to validate the templates

cfcompile fargate-v2 --validate

Testing

gem install rspec
rspec

.........
CloudFormation YAML template for ecs-task written to /Users/aaronwalker/Workspaces/theonestack/hl-component-fargate-v2/out/yaml/fargatev2Task.compiled.yaml
CloudFormation YAML template for fargate-v2 written to /Users/aaronwalker/Workspaces/theonestack/hl-component-fargate-v2/out/tests/targetgroup_param/fargate-v2.compiled.yaml
Validate template /Users/aaronwalker/Workspaces/theonestack/hl-component-fargate-v2/out/tests/targetgroup_param/fargate-v2.compiled.yaml locally
SUCCESS
Validate template /Users/aaronwalker/Workspaces/theonestack/hl-component-fargate-v2/out/yaml/fargatev2Task.compiled.yaml locally
SUCCESS

  ============================
  #    CfHighlander Tests    #
  ============================

  Pass: 1
  Fail: 0
  Time: 3.289156

...

Finished in 32.62 seconds (files took 0.31077 seconds to load)
40 examples, 0 failures

hl-component-fargate-v2's People

Contributors

aaronwalker avatar dupontz avatar guslington avatar samseppiol avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.