1- [ @clickup/ci-storage-cdk ] ( ../README.md ) / [ Exports] ( ../modules.md ) / CiStorage
1+ [ ** @clickup/ci-storage-cdk ** ] ( ../README.md )
2+
3+ ***
4+
5+ [ @clickup/ci-storage-cdk ] ( ../globals.md ) / CiStorage
26
37# Class: CiStorage
48
9+ Defined in: [ src/CiStorage.ts:188] ( https://github.com/clickup/ci-storage-cdk/blob/master/src/CiStorage.ts#L188 )
10+
511A reusable Construct to launch ci-storage infra in some other stack. This
612class is meant to be put in a public domain and then used in any project.
713
@@ -11,7 +17,7 @@ class is meant to be put in a public domain and then used in any project.
1117 sparse checkout), and then, ` docker compose ` is run. There is no need to
1218 pre-build any images or publish them anywhere, it's all done on the fly.
1319
14- Why vanilla EC2 instances + docker- compose and not ECS or Fargate?
20+ Why vanilla EC2 instances + docker compose and not ECS or Fargate?
1521
16221 . For ECS and Fargate, in 2 minutes after the termination warning, we only
1723 have more 2 minutes to shutdown the OS (it's documented, i.e. 4 minutes in
@@ -25,22 +31,22 @@ Why vanilla EC2 instances + docker-compose and not ECS or Fargate?
25313 . Tests often times need to run "Docker in Docker", which is problematic in
2632 ECS and Fargate environment.
2733
28- ## Hierarchy
34+ ## Extends
2935
3036- ` Construct `
3137
32- ↳ ** ` CiStorage ` **
33-
3438## Constructors
3539
36- ### constructor
40+ ### new CiStorage()
41+
42+ > ** new CiStorage** (` scope ` , ` key ` , ` props ` ): [ ` CiStorage ` ] ( CiStorage.md )
3743
38- • ** new CiStorage ** ( ` scope ` , ` key ` , ` props ` ) : [ ` CiStorage ` ] ( CiStorage.md )
44+ Defined in : [ src/ CiStorage.ts:206 ] ( https://github.com/clickup/ci-storage-cdk/blob/master/src/ CiStorage.ts#L206 )
3945
4046#### Parameters
4147
42- | Name | Type |
43- | : ------ | : ------ |
48+ | Parameter | Type |
49+ | ------ | ------ |
4450| ` scope ` | ` Construct ` |
4551| ` key ` | ` string ` |
4652| ` props ` | [ ` CiStorageProps ` ] ( ../interfaces/CiStorageProps.md ) |
@@ -51,152 +57,27 @@ Why vanilla EC2 instances + docker-compose and not ECS or Fargate?
5157
5258#### Overrides
5359
54- Construct.constructor
55-
56- #### Defined in
57-
58- [ src/CiStorage.ts:203] ( https://github.com/clickup/ci-storage-cdk/blob/master/src/CiStorage.ts#L203 )
60+ ` Construct.constructor `
5961
6062## Properties
6163
62- ### vpc
63-
64- • ` Readonly ` ** vpc** : ` IVpc `
65-
66- #### Defined in
67-
68- [ src/CiStorage.ts:186] ( https://github.com/clickup/ci-storage-cdk/blob/master/src/CiStorage.ts#L186 )
69-
70- ___
71-
72- ### hostedZone
73-
74- • ` Optional ` ` Readonly ` ** hostedZone** : ` IHostedZone `
75-
76- #### Defined in
77-
78- [ src/CiStorage.ts:187] ( https://github.com/clickup/ci-storage-cdk/blob/master/src/CiStorage.ts#L187 )
79-
80- ___
81-
82- ### keyPair
83-
84- • ` Readonly ` ** keyPair** : ` IKeyPair `
85-
86- #### Defined in
87-
88- [ src/CiStorage.ts:188] ( https://github.com/clickup/ci-storage-cdk/blob/master/src/CiStorage.ts#L188 )
89-
90- ___
91-
92- ### keyPairPrivateKeySecretName
93-
94- • ` Readonly ` ** keyPairPrivateKeySecretName** : ` string `
95-
96- #### Defined in
97-
98- [ src/CiStorage.ts:189] ( https://github.com/clickup/ci-storage-cdk/blob/master/src/CiStorage.ts#L189 )
99-
100- ___
101-
102- ### roles
103-
104- • ` Readonly ` ** roles** : ` Object `
105-
106- #### Type declaration
107-
108- | Name | Type |
109- | :------ | :------ |
110- | ` runner ` | ` Role ` |
111- | ` host ` | ` Role ` |
112-
113- #### Defined in
114-
115- [ src/CiStorage.ts:190] ( https://github.com/clickup/ci-storage-cdk/blob/master/src/CiStorage.ts#L190 )
116-
117- ___
118-
119- ### securityGroup
120-
121- • ` Readonly ` ** securityGroup** : ` SecurityGroup `
122-
123- #### Defined in
124-
125- [ src/CiStorage.ts:191] ( https://github.com/clickup/ci-storage-cdk/blob/master/src/CiStorage.ts#L191 )
126-
127- ___
128-
129- ### vpcLink
130-
131- • ` Readonly ` ** vpcLink** : ` VpcLink `
132-
133- #### Defined in
134-
135- [ src/CiStorage.ts:192] ( https://github.com/clickup/ci-storage-cdk/blob/master/src/CiStorage.ts#L192 )
136-
137- ___
138-
139- ### host
140-
141- • ` Readonly ` ** host** : ` Object `
142-
143- #### Type declaration
144-
145- | Name | Type |
146- | :------ | :------ |
147- | ` fqdn ` | ` undefined ` \| ` string ` |
148- | ` instance ` | ` CfnInstance ` |
149-
150- #### Defined in
151-
152- [ src/CiStorage.ts:193] ( https://github.com/clickup/ci-storage-cdk/blob/master/src/CiStorage.ts#L193 )
153-
154- ___
155-
156- ### autoScalingGroups
157-
158- • ` Readonly ` ** autoScalingGroups** : \{ ` autoScalingGroup ` : ` AutoScalingGroup ` ; ` launchTemplate ` : ` LaunchTemplate ` }[ ] = ` [] `
159-
160- #### Defined in
161-
162- [ src/CiStorage.ts:197] ( https://github.com/clickup/ci-storage-cdk/blob/master/src/CiStorage.ts#L197 )
163-
164- ___
165-
166- ### instanceToAmi
167-
168- • ` Readonly ` ** instanceToAmi** : ` InstanceToAmi `
169-
170- #### Defined in
171-
172- [ src/CiStorage.ts:201] ( https://github.com/clickup/ci-storage-cdk/blob/master/src/CiStorage.ts#L201 )
173-
174- ___
175-
176- ### scope
177-
178- • ` Readonly ` ** scope** : ` Construct `
179-
180- #### Defined in
181-
182- [ src/CiStorage.ts:204] ( https://github.com/clickup/ci-storage-cdk/blob/master/src/CiStorage.ts#L204 )
183-
184- ___
185-
186- ### key
187-
188- • ` Readonly ` ** key** : ` string `
189-
190- #### Defined in
191-
192- [ src/CiStorage.ts:205] ( https://github.com/clickup/ci-storage-cdk/blob/master/src/CiStorage.ts#L205 )
193-
194- ___
195-
196- ### props
197-
198- • ` Readonly ` ** props** : [ ` CiStorageProps ` ] ( ../interfaces/CiStorageProps.md )
199-
200- #### Defined in
201-
202- [ src/CiStorage.ts:206] ( https://github.com/clickup/ci-storage-cdk/blob/master/src/CiStorage.ts#L206 )
64+ | Property | Type | Default value |
65+ | ------ | ------ | ------ |
66+ | <a id =" vpc " ></a > ` vpc ` | ` IVpc ` | ` undefined ` |
67+ | <a id =" hostedzone " ></a > ` hostedZone? ` | ` IHostedZone ` | ` undefined ` |
68+ | <a id =" keypair " ></a > ` keyPair ` | ` IKeyPair ` | ` undefined ` |
69+ | <a id =" keypairprivatekeysecretname " ></a > ` keyPairPrivateKeySecretName ` | ` string ` | ` undefined ` |
70+ | <a id =" roles " ></a > ` roles ` | ` object ` | ` undefined ` |
71+ | ` roles.runner ` | ` Role ` | ` undefined ` |
72+ | ` roles.host ` | ` Role ` | ` undefined ` |
73+ | <a id =" securitygroup " ></a > ` securityGroup ` | ` SecurityGroup ` | ` undefined ` |
74+ | <a id =" vpclink " ></a > ` vpcLink ` | ` VpcLink ` | ` undefined ` |
75+ | <a id =" host " ></a > ` host ` | ` object ` | ` undefined ` |
76+ | ` host.fqdn ` | ` undefined ` \| ` string ` | ` undefined ` |
77+ | ` host.instance ` | ` CfnInstance ` | ` undefined ` |
78+ | <a id =" autoscalinggroups " ></a > ` autoScalingGroups ` | ` object ` [ ] | ` [] ` |
79+ | <a id =" instancetoami " ></a > ` instanceToAmi ` | ` InstanceToAmi ` | ` undefined ` |
80+ | <a id =" loggroupname " ></a > ` logGroupName ` | ` string ` | ` undefined ` |
81+ | <a id =" scope-1 " ></a > ` scope ` | ` Construct ` | ` undefined ` |
82+ | <a id =" key-1 " ></a > ` key ` | ` string ` | ` undefined ` |
83+ | <a id =" props-1 " ></a > ` props ` | [ ` CiStorageProps ` ] ( ../interfaces/CiStorageProps.md ) | ` undefined ` |
0 commit comments