forked from stelligent/mu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mu.yml
49 lines (42 loc) · 1.53 KB
/
mu.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
---
environments:
- name: example
## You can customize the generated CloudFormation by adding a templates section.
## The name of the CloudFormation stack that you are trying to update is the key
## and the value is snippet of CloudFormation template that is spliced together
## with the default template for that stack.
##
## To preview the template without actually making any changes in your AWS account,
## add the --dryrun or -d flag.
##
## WARNING: don't use the short for for intrinsic functions (e.g. use `Fn::Sub`, not `!Sub`).
## The `!` is a YAML tag and isn't able to survive deserialization and serialization.
##
## For more details, see https://github.com/stelligent/mu/wiki/Custom-CloudFormation
templates:
mu-cluster-example: ## <-- this is the name of the CloudFormation stack that is being updated
Resources:
# Define a new security group
ExtraSG:
Type: AWS::EC2::SecurityGroup
Properties:
VpcId:
Fn::ImportValue: !Sub ${VpcId}
GroupDescription: Example additional ECS Host Security Group
SecurityGroupIngress:
- IpProtocol: tcp
FromPort: '8080'
ToPort: '8080'
CidrIp: !Ref SshAllow
## Update the existing launch config to reference new SG
ContainerInstances:
Properties:
SecurityGroups: [ !Ref ExtraSG ]
## Override stack parameters
parameters:
'mu-environment-acceptance':
ImageId: ami-xxx
## Override stack tags
tags:
'mu-environment-acceptance':
CostCenter: research