Skip to content

Commit

Permalink
Rename env to EC2_INSTANCE_TAG (#4815)
Browse files Browse the repository at this point in the history
Signed-off-by: Jongwoo Han <[email protected]>
  • Loading branch information
jongwooo authored Aug 14, 2024
1 parent a325a0e commit 87dc1c8
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ spec:
- name: REGION
value: '<region for instances>'
# tag of the ec2 instance
- name: INSTANCE_TAG
- name: EC2_INSTANCE_TAG
value: 'key:value'
- name: TOTAL_CHAOS_DURATION
value: '60'
Expand Down Expand Up @@ -67,7 +67,7 @@ spec:
value: '60'
- name: REGION
value: '<region for instances>'
- name: INSTANCE_TAG
- name: EC2_INSTANCE_TAG
value: 'key:value'
```
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ spec:
spec:
components:
env:
# delay between each iteration of chaos
# delay between each iteration of chaos
- name: CHAOS_INTERVAL
value: '15'
# time duration for the chaos execution
- name: TOTAL_CHAOS_DURATION
value: '60'
- name: REGION
value: '<region for instances>'
- name: INSTANCE_TAG
- name: EC2_INSTANCE_TAG
value: 'key:value'

Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ spec:
- name: REGION
value: '<region for instances>'
# tag of the ec2 instance
- name: INSTANCE_TAG
- name: EC2_INSTANCE_TAG
value: 'key:value'
- name: TOTAL_CHAOS_DURATION
value: '60'
12 changes: 6 additions & 6 deletions mkdocs/docs/experiments/categories/aws/ec2-stop-by-tag.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,9 @@ When the MANAGED_NODEGROUP is enable then the experiment will not try to start t
<th> Notes </th>
</tr>
<tr>
<td> INSTANCE_TAG </td>
<td> EC2_INSTANCE_TAG </td>
<td> Instance Tag to filter the target ec2 instance.</td>
<td> The <code>INSTANCE_TAG</code> should be provided as <code>key:value</code> ex: <code>team:devops</code></td>
<td> The <code>EC2_INSTANCE_TAG</code> should be provided as <code>key:value</code> ex: <code>team:devops</code></td>
</tr>
<tr>
<td> REGION </td>
Expand Down Expand Up @@ -196,7 +196,7 @@ Refer the [common attributes](../common/common-tunables-for-all-experiments.md)

### Target single instance

It will stop a random single ec2 instance with the given `INSTANCE_TAG` tag and the `REGION` region.
It will stop a random single ec2 instance with the given `EC2_INSTANCE_TAG` tag and the `REGION` region.

Use the following example to tune this:

Expand All @@ -217,7 +217,7 @@ spec:
components:
env:
# tag of the ec2 instance
- name: INSTANCE_TAG
- name: EC2_INSTANCE_TAG
value: 'key:value'
# region for the ec2 instance
- name: REGION
Expand All @@ -228,7 +228,7 @@ spec:
### Target Percent of instances
It will stop the `INSTANCE_AFFECTED_PERC` percentage of ec2 instances with the given `INSTANCE_TAG` tag and `REGION` region.
It will stop the `INSTANCE_AFFECTED_PERC` percentage of ec2 instances with the given `EC2_INSTANCE_TAG` tag and `REGION` region.

Use the following example to tune this:

Expand All @@ -252,7 +252,7 @@ spec:
- name: INSTANCE_AFFECTED_PERC
value: '100'
# tag of the ec2 instance
- name: INSTANCE_TAG
- name: EC2_INSTANCE_TAG
value: 'key:value'
# region for the ec2 instance
- name: REGION
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spec:
- name: INSTANCE_AFFECTED_PERC
value: '100'
# tag of the ec2 instance
- name: INSTANCE_TAG
- name: EC2_INSTANCE_TAG
value: 'key:value'
# region for the ec2 instance
- name: REGION
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ spec:
components:
env:
# tag of the ec2 instance
- name: INSTANCE_TAG
- name: EC2_INSTANCE_TAG
value: 'key:value'
# region for the ec2 instance
- name: REGION
Expand Down

0 comments on commit 87dc1c8

Please sign in to comment.