-
Notifications
You must be signed in to change notification settings - Fork 1
/
test_stack.yaml
116 lines (116 loc) · 3.31 KB
/
test_stack.yaml
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
AWSTemplateFormatVersion: "2010-09-09"
Mappings:
Environment:
testing:
DomainName: "test.testing"
acceptance:
DomainName: "test.acceptance"
production:
DomainName: "test.productions"
Resources:
Alphabetically:
Type: "AWS::IAM::Role"
ApplicationLoadBalancerCertificate:
Type: "AWS::CertificateManager::Certificate"
Properties:
DomainName: !FindInMap ["Environment", !Ref "Environment", "DomainName"]
Tags:
- Key: "Name"
Value: !FindInMap ["Environment", !Ref "Environment", "DomainName"]
- Key: "AppGroup"
Value: "unit-test"
- Key: "AppRole"
Value: "certificate"
- Key: "Environment"
Value: !Ref "Environment"
BestDhcpOptions:
Type: "AWS::EC2::DHCPOptions"
Properties:
DomainName: "eu-west-1.compute.internal"
DomainNameServers:
- "AmazonProvidedDNS"
Tags:
- Key: "Name"
Value: "dhcp-options"
- Key: "AppGroup"
Value: "unit-test"
- Key: "AppRole"
Value: "dhcp-options"
LaunchConfiguration:
Type: "AWS::AutoScaling::LaunchConfiguration"
Properties:
AssociatePublicIpAddress: false
ImageId: "ami-12345678"
InstanceType: "t2.medium"
BlockDeviceMappings:
- DeviceName: "/dev/sda1"
Ebs:
VolumeSize: "100"
VolumeType: "gp2"
Tags:
- Key: "Name"
Value: "auto-scaling"
- Key: "AppGroup"
Value: "unit-test"
- Key: "AppRole"
Value: "volumne-type"
Ordered:
Type: "AWS::IAM::Role"
S3VersionedBucket:
Type: "AWS::S3::Bucket"
DeletionPolicy: "Retain"
Properties:
BucketName: "s3-bucket-with-versioning"
LoggingConfiguration:
DestinationBucketName: "s3-accesslogs"
LogFilePrefix: "s3-bucket-with-versioning/"
VersioningConfiguration:
Status: "Enabled"
Tags:
- Key: "Name"
Value: !Sub "coolblue-${Environment}-octopus-deploy"
- Key: "AppGroup"
Value: "octopus-deploy"
- Key: "AppRole"
Value: "storage"
- Key: "Environment"
Value: !Ref "Environment"
TestHostedZone:
Type: "AWS::Route53::HostedZone"
Properties:
Name: "unit.test"
HostedZoneTags:
- Key: "Name"
Value: "a-dns-entry"
- Key: "AppGroup"
Value: "unit-test"
- Key: "AppRole"
Value: "dns-record"
ZapplicationLoadBalancerCertificate:
Type: "AWS::CertificateManager::Certificate"
Properties:
DomainName: "some-domain.eu"
DomainValidationOptions:
- DomainName: "some-domain.eu"
ValidationDomain: "some-domain.eu"
Tags:
- Key: "Name"
Value: "some-domain.eu"
- Key: "AppGroup"
Value: "app-group"
- Key: "AppRole"
Value: "certificate"
ZzapplicationLoadBalancerCertificate:
Type: "AWS::CertificateManager::Certificate"
Properties:
DomainName: "some-domain.eu"
DomainValidationOptions:
- DomainName: "some-domain.eu"
ValidationDomain: "some-domain.eu"
Tags:
- Key: "Name"
Value: !Ref "some-domain.eu"
- Key: "AppGroup"
Value: !Ref "app-group"
- Key: "AppRole"
Value: !Ref "certificate"