github.com/in4it/ecs-deploy@v0.0.42-0.20240508120354-ed77ff16df25/examples/bootstrap.sh (about)

     1  #!/bin/bash
     2  #
     3  # local server
     4  #
     5  # create a .env file with all the variables first,
     6  # then execute this script using ./examples/bootstrap.sh
     7  
     8  source .env
     9  
    10  make build && \
    11  ./ecs-deploy-linux-amd64 --bootstrap \
    12    --alb-security-groups $ALB_SG \
    13    --cloudwatch-logs-enabled \
    14    --cloudwatch-logs-prefix $CLOUDWATCH_LOGS_PREFIX \
    15    --cluster-name $CLUSTER_NAME \
    16    --ecs-desired-size 1 \
    17    --ecs-max-size 1 \
    18    --ecs-min-size 1 \
    19    --ecs-security-groups $ECS_SG \
    20    --ecs-subnets $ECS_SUBNETS \
    21    --environment $AWS_ACCOUNT_ENV \
    22    --instance-type t2.micro \
    23    --key-name $KEY_NAME \
    24    --loadbalancer-domain cluster.in4it.io \
    25    --paramstore-enabled \
    26    --paramstore-kms-arn $PARAMSTORE_KMS_ARN \
    27    --paramstore-prefix $PARAMSTORE_PREFIX \
    28    --profile $CLUSTER_AWS_PROFILE \
    29    --region $CLUSTER_AWS_REGION