CARVIEW |
Select Language
HTTP/2 200
date: Thu, 31 Jul 2025 06:47:36 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
etag: W/"1d7af493741cac2113b0b651672218ff"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com wss://alive-staging.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=GiPBiR%2Bpl%2F2AYflKu2VSsSJZjOsuUHR4kPkASjbLZRqmEEVMEHccGONi%2Bngxcs%2F1aO3Og9dK1YRq0VXclxU49xcVcr0xtur%2BMPKD%2BvbSELb6a3EyuKTMtHELGi%2FHVevv8glbF4wabjbvQfclqK%2Fu2Pdw678PbkgWFB8FRNLxkxYJrMumyCBKJKm5bEg4MpCquo1u2aZ91%2FrXB0yLw8GlIDF7QrcsbA9Z%2Bj%2FauWs4aCZkAJvyaBAD7mkZUBK86shmR%2BVyQ2fRLNBXnzxytkQLxw%3D%3D--FcPQOucrM6VP1Q8M--AlpPbawQta03EkvlBgx8bA%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1396492957.1753944456; Path=/; Domain=github.com; Expires=Fri, 31 Jul 2026 06:47:36 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Fri, 31 Jul 2026 06:47:36 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: B244:2291D2:46A164:5A67F6:688B1188
Environments · stelligent/mu Wiki · GitHub
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 132
Environments
Casey Lee edited this page Oct 26, 2018
·
22 revisions

Environments are defined to become a target for deploying services to. Each environment is a CloudFormation stack consisting of the following resources:
- VPC – To provide the network infrastructure to launch the ECS container instances into. Optionally, you can target an existing VPC.
- ECS Cluster – The cluster that the services will be deployed into.
- Auto Scaling Group – To manage the ECS container instances that contain the compute resources for running the containers. Auto scaling policies will be defined based on memory entitlements in the cluster.
- Application Load Balancer – To provide load balancing for the microservices running in containers.
The VPC that mu creates is shown in the diagram below:
---
### Define a list of environments
environments:
# The unique name of the environment (required)
- name: acceptance
provider: ecs # The type of environment to use, ec2, eks, ecs, or ecs-fargate (default: ecs)
### Attributes for the ECS container instances
cluster:
imageId: ami-xxxxxx # The AMI to use for the ECS container instances (default: latest ECS optimized AMI)
osType: amazon # Type of OS. Supported values: amazon, centos7 (default: amazon)
instanceType: t2.micro # The instance type to use for the ECS container instances (default: t2.micro)
instanceTenancy: default # Whether to use default or dedicated tenancy (default: default)
desiredCapacity: 1 # Desired number of ECS container instances (default 1)
keyName: my-keypair # name of EC2 keypair to associate with ECS container instances. Launches bastion host if defined. (default: none)
sshAllow: 0.0.0.0/0 # CIDR block to allow SSH access from (default: 0.0.0.0/0)
httpProxy: 10.0.0.43:8080 # Host and port to use for HTTP proxy for yum, docker images, and ECS (default: none)
targetCPUReservation: 75 # Threshold for % CPU utilization to scale out ECS container instances (default: 75)
targetMemoryReservation: 75 # Threshold for % memory utilization to scale in ECS container instances (default: 75)
minSize: 1 # Min size to scale the ECS ASG to (default: 1)
maxSize: 2 # Max size to scale the ECS ASG to (default: 2)
### Attributes for the ELB
loadbalancer:
internal: true # Whether to create an internal ELB or not (default: false)
hostedzone: mydomain.com # HostedZone in Route53 to create ELB DNS for. Leave blank to not create DNS (default: none)
name: api # Name to register in hostedzone for ELB DNS. (default: environment name)
certificate: 973c1a2f-8d43... # The identifier of a certificate in ACM. If defined, will create HTTPS listener in ELB. (default: none)
### Attributes for Service Discovery
discovery:
provider: route53 # Which provider to use for service discovery: `route53` is currently the only supported provider (default: route53)
name: acceptance.mu.local # What namespace to use for service discovery (default <environment>.<namespace>.local)
### Attributes for the VPC to target. If not defined, a VPC will be created. (default: none)
vpcTarget:
vpcId: vpc-xxxxx # The id of the VPC to launch ECS container instances into
instanceSubnetIds: # The list of subnets to use for ECS container instances
- subnet-xxxxx
- subnet-xxxxy
- subnet-xxxxz
elbSubnetIds: # The list of subnets to use for ELBs
- subnet-xxxxx
- subnet-xxxxy
- subnet-xxxxz
# List all environments
> mu env list
# Show details about a specific environment (ECS container instances, Running services, etc)
> mu env show <environment_name>
# View the logs from EC2 instances in your cluster
> mu env logs [--follow] <environment_name> [filter]
# Upsert an environment
> mu env up <environment_name>
# Terminate an environment
> mu env terminate <environment_name>
Clone this wiki locally
You can’t perform that action at this time.