Skip to content

Commit 6defbe2

Browse files
committed
fix linting
1 parent fe664bf commit 6defbe2

File tree

2 files changed

+16
-9
lines changed

2 files changed

+16
-9
lines changed

examples/demo_workspace/.header.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Follow the steps below to attach the run task created from the module into a new
1414

1515
* Change the org name in with your own Terraform Cloud org name.
1616

17-
```
17+
```hcl
1818
terraform {
1919
2020
cloud {
@@ -29,6 +29,7 @@ Follow the steps below to attach the run task created from the module into a new
2929
```
3030

3131
* Populate the required variables, change the placeholder value below.
32+
3233
```bash
3334
echo 'tfc_org="<enter your org name here>"' >> tf.auto.tfvars
3435
echo 'aws_region="<enter the AWS region here>"' >> tf.auto.tfvars
@@ -37,6 +38,7 @@ Follow the steps below to attach the run task created from the module into a new
3738
```
3839

3940
* Initialize Terraform Cloud. When prompted, enter the name of the new demo workspace as you specified in the previous step.
41+
4042
```bash
4143
terraform init
4244
```
@@ -46,29 +48,31 @@ Follow the steps below to attach the run task created from the module into a new
4648
* In order to create and configure the run tasks, you also need to have Terraform Cloud token stored as Variable/Variable Sets in the workspace. Add `TFE_HOSTNAME` and `TFE_TOKEN` environment variable to the same variable set or directly on the workspace.
4749
![TFC Configure Variable Set](../diagram/TerraformCloud-VariableSets.png?raw=true "Configure Terraform Cloud Variable Set")
4850

49-
* Enable the flag to attach the run task to the demo workspace.
51+
* Enable the flag to attach the run task to the demo workspace.
52+
5053
```bash
5154
echo 'flag_attach_runtask="true"' >> tf.auto.tfvars
5255
terraform apply
5356
```
5457

55-
* Navigate back to Terraform Cloud, locate the new demo workspace and confirm that the Run Task is attached to the demo workspace.
58+
* Navigate back to Terraform Cloud, locate the new demo workspace and confirm that the Run Task is attached to the demo workspace.
5659
![TFC Run Task in Workspace](../../diagram/TerraformCloud-RunTaskWorkspace.png?raw=true "Run Task attached to the demo workspace")
5760

58-
5961
## Test IAM Access Analyzer using Run Task
6062

6163
The following steps deploy simple IAM policy with invalid permissions. This should trigger the Run Task to send failure and stop the apply.
6264

6365
* Enable the flag to deploy invalid IAM policy to the demo workspace.
66+
6467
```bash
6568
echo 'flag_deploy_invalid_resource="true"' >> tf.auto.tfvars
6669
```
6770

6871
* Run Terraform apply again
72+
6973
```bash
7074
terraform apply
7175
```
7276

73-
* Terraform apply will fail due to several errors, use the CloudWatch link to review the errors.
74-
![TFC Run Task results](../../diagram/TerraformCloud-RunTaskOutput.png?raw=true "Run Task output with IAM Access Analyzer validation")
77+
* Terraform apply will fail due to several errors, use the CloudWatch link to review the errors.
78+
![TFC Run Task results](../../diagram/TerraformCloud-RunTaskOutput.png?raw=true "Run Task output with IAM Access Analyzer validation")

examples/module_workspace/.header.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
First step is to deploy the module into dedicated Terraform Cloud workspace. The output `runtask_id` is used on other Terraform Cloud workspace to configure the runtask.
44

55
* Build and package the Lambda files using the makefile. Run this command from the root directory of this repository.
6+
67
```bash
78
make all
89
```
@@ -15,7 +16,7 @@ First step is to deploy the module into dedicated Terraform Cloud workspace. The
1516

1617
* Change the org name to your TFC org.
1718

18-
```
19+
```hcl
1920
terraform {
2021
2122
cloud {
@@ -30,6 +31,7 @@ First step is to deploy the module into dedicated Terraform Cloud workspace. The
3031
```
3132

3233
* Initialize Terraform Cloud. When prompted, enter a new workspace name, i.e. `aws-ia2-infra`
34+
3335
```bash
3436
terraform init
3537
```
@@ -40,9 +42,10 @@ First step is to deploy the module into dedicated Terraform Cloud workspace. The
4042

4143
* In order to create and configure the run tasks, you also need to have Terraform Cloud token stored as Environment Variables. Add `TFE_HOSTNAME` and `TFE_TOKEN` environment variable.
4244

43-
* Run Terraform apply
45+
* Run Terraform apply
46+
4447
```bash
4548
terraform apply
4649
```
4750

48-
* Use the output value `runtask_id` when deploying the demo workspace. See example of [demo workspace here](../demo_workspace/README.md)
51+
* Use the output value `runtask_id` when deploying the demo workspace. See example of [demo workspace here](../demo_workspace/README.md)

0 commit comments

Comments
 (0)