Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename env to EC2_INSTANCE_TAG #4815

Merged
merged 1 commit into from
Aug 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading