Skip to content

Commit 39b8550

Browse files
authored
Merge pull request #127 from ravigurram8/topic-release-11
1.16.0 build updates
2 parents 5fe7401 + d6caa3d commit 39b8550

16 files changed

Lines changed: 228 additions & 9 deletions

cft-templates/Rstudio.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,3 +136,6 @@ Outputs:
136136
Value: !Ref 'RstudioEC2Instance'
137137
ApplicationPort:
138138
Value: '443'
139+
AvailabilityZone:
140+
Description: AvailabilityZone of newly created Rstudio EC2Instance
141+
Value: !GetAtt [RstudioEC2Instance, AvailabilityZone]

cft-templates/amazon-ebs.yml

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
AWSTemplateFormatVersion: 2010-09-09
2+
3+
Description: Amazon EBS volume is a durable, block-level storage device that you can attach to your instances. After you attach a volume to an instance, you can use it as you would use a physical hard drive.
4+
Metadata:
5+
AWS::CloudFormation::Interface:
6+
ParameterGroups:
7+
- Label:
8+
default: EBS Configuration
9+
Parameters:
10+
- VolumeType
11+
- VolumeSize
12+
- Iops
13+
- Throughput
14+
- AvailabilityZone
15+
- Encrypted
16+
- KmsKeyId
17+
Parameters:
18+
VolumeType:
19+
Description: If the volume type is io1 or io2, you must specify the IOPS that the volume supports.
20+
Type: String
21+
AllowedValues: [gp2, gp3, io1, io2, sc1, st1, standard]
22+
Default: standard
23+
VolumeSize:
24+
Description: >-
25+
The size of the volume, in GiBs. You must specify either a snapshot ID or a volume size. If you specify a snapshot, the default is the snapshot size. You can specify a volume size that is equal to or larger than the snapshot size.
26+
The following are the supported volumes sizes for each volume type:
27+
gp2 and gp3:1-16,384
28+
io1 and io2: 4-16,384
29+
st1 and sc1: 125-16,384
30+
standard: 1-1,024
31+
Type: Number
32+
Default: 100
33+
Iops:
34+
Description: >-
35+
The number of I/O operations per second (IOPS). For gp3, io1, and io2 volumes, this represents the number of IOPS that are provisioned for the volume.
36+
applicable only if VolumeType selected is gp3,io1 or io2.
37+
gp3: 3,000-16,000 IOPS
38+
io1: 100-64,000 IOPS
39+
io2: 100-64,000 IOPS
40+
Type: Number
41+
Default: 3000
42+
Throughput:
43+
Description: The throughput to provision for a gp3 volume, with a minimum of 125 MiB/s or a maximum of 1,000 MiB/s.
44+
Type: Number
45+
MaxValue: 1000
46+
MinValue: 125
47+
Default: 125
48+
AvailabilityZone:
49+
Description: choose the Availability Zone in which to create the volume. A volume can be attached only to instances that is in the same Availability Zone.
50+
Type: AWS::EC2::AvailabilityZone::Name
51+
Encrypted:
52+
Description: Indicates whether the volume should be encrypted.
53+
Type: String
54+
AllowedValues: [true, false]
55+
Default: false
56+
KmsKeyId:
57+
Description: >-
58+
The ID of the AWS Key Management Service (AWS KMS) key used to encrypt Amazon Elastic Block Store (Amazon EBS) volume.
59+
applicable only when AWS KMS key is available and Encryption is set to true.
60+
Type: String
61+
Default: NONE
62+
63+
ResearcherName:
64+
Description: Researcher name that will be added as tag to the resources.
65+
Type: String
66+
ProjectId:
67+
Description: Project Id that will be added as tag to the resources.
68+
Type: String
69+
Namespace:
70+
Description: An environment name that will be prefixed to resource names.
71+
Type: String
72+
73+
74+
Conditions:
75+
KMSKeyNotProvided: !Equals [!Ref KmsKeyId, 'NONE']
76+
IopsVolumeType: !Or [!Equals [!Ref VolumeType, gp3],!Equals [!Ref VolumeType, io1],!Equals [!Ref VolumeType, io2]]
77+
ThroughputApplicable: !Equals [!Ref VolumeType, gp3]
78+
79+
Resources:
80+
VolumeId:
81+
Type: AWS::EC2::Volume
82+
Properties:
83+
VolumeType: !Ref VolumeType
84+
Size: !Ref VolumeSize
85+
Iops: !If [IopsVolumeType, !Ref Iops, !Ref 'AWS::NoValue']
86+
Throughput: !If [ThroughputApplicable, !Ref Throughput, !Ref 'AWS::NoValue']
87+
AvailabilityZone: !Ref AvailabilityZone
88+
Encrypted: !Ref Encrypted
89+
KmsKeyId: !If [KMSKeyNotProvided, !Ref 'AWS::NoValue', !Ref KmsKeyId]
90+
# AvailabilityZone: !Select [0, !GetAZs '']
91+
92+
Tags:
93+
- Key: cost_resource
94+
Value: !Sub ${AWS::StackName}
95+
- Key: researcher_name
96+
Value: !Ref ResearcherName
97+
- Key: project_name
98+
Value: !Ref ProjectId
99+
- Key: Name
100+
Value: !Join ['-', [Ref: Namespace, 'Volume']]
101+
DeletionPolicy: Snapshot
102+
103+
Outputs:
104+
VolumeId:
105+
Description: Volume id of newly created Ebs volume.
106+
Value: !Ref VolumeId
107+
AvailabilityZone:
108+
Description: location of newly created Ebs volume.
109+
Value: !Ref AvailabilityZone

cft-templates/cromwell-advanced.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -946,3 +946,6 @@ Outputs:
946946
Value: !Sub ${S3Bucket}
947947
BatchComputeEnvironment:
948948
Value: !Ref SpotComputeEnv
949+
AvailabilityZone:
950+
Description: AvailabilityZone of newly created EC2 instance
951+
Value: !GetAtt [EC2Instance, AvailabilityZone]

cft-templates/ec2-EIP.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,3 +123,6 @@ Outputs:
123123
InstanceDNSName:
124124
Description: DNS name of the newly created EC2 instance
125125
Value: !GetAtt [EC2Instance, PublicDnsName]
126+
AvailabilityZone:
127+
Description: AvailabilityZone of newly created EC2 instance
128+
Value: !GetAtt [EC2Instance, AvailabilityZone]

cft-templates/ec2-dcv.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,4 +178,7 @@ Outputs:
178178
Value: !GetAtt [EC2Instance, PublicDnsName]
179179
ApplicationPort:
180180
Description: The Port in which the application is running
181-
Value: '8443'
181+
Value: '8443'
182+
AvailabilityZone:
183+
Description: AvailabilityZone of newly created EC2 instance
184+
Value: !GetAtt [EC2Instance, AvailabilityZone]

cft-templates/ec2-linux-docker-mysql.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,4 +171,7 @@ Outputs:
171171
Value: !GetAtt [EC2Instance, PublicDnsName]
172172
InstancePrivateIPAddress:
173173
Description: Private IP address of the newly created EC2 instance
174-
Value: !GetAtt [EC2Instance, PrivateIp]
174+
Value: !GetAtt [EC2Instance, PrivateIp]
175+
AvailabilityZone:
176+
Description: AvailabilityZone of newly created EC2 instance
177+
Value: !GetAtt [EC2Instance, AvailabilityZone]

cft-templates/ec2-linux-docker.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,4 +133,7 @@ Outputs:
133133
Value: !GetAtt [EC2Instance, PublicIp]
134134
InstanceDNSName:
135135
Description: DNS name of the newly created EC2 instance
136-
Value: !GetAtt [EC2Instance, PublicDnsName]
136+
Value: !GetAtt [EC2Instance, PublicDnsName]
137+
AvailabilityZone:
138+
Description: AvailabilityZone of newly created EC2 instance
139+
Value: !GetAtt [EC2Instance, AvailabilityZone]

cft-templates/ec2-ubuntu-update.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,3 +127,6 @@ Outputs:
127127
InstanceDNSName:
128128
Description: DNS name of the newly created EC2 instance
129129
Value: !GetAtt [EC2Instance, PublicDnsName]
130+
AvailabilityZone:
131+
Description: AvailabilityZone of newly created EC2 instance
132+
Value: !GetAtt [EC2Instance, AvailabilityZone]

cft-templates/ec2-ubuntu.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,3 +127,6 @@ Outputs:
127127
InstanceDNSName:
128128
Description: DNS name of the newly created EC2 instance
129129
Value: !GetAtt [EC2Instance, PublicDnsName]
130+
AvailabilityZone:
131+
Description: AvailabilityZone of newly created EC2 instance
132+
Value: !GetAtt [EC2Instance, AvailabilityZone]

cft-templates/nextflow-advanced.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -735,3 +735,6 @@ Outputs:
735735
Value: !Sub ${DefaultQueue}
736736
BatchComputeEnvironment:
737737
Value: !Ref SpotComputeEnv
738+
AvailabilityZone:
739+
Description: AvailabilityZone of newly created EC2 instance
740+
Value: !GetAtt [EC2Instance, AvailabilityZone]

0 commit comments

Comments
 (0)