Skip to content

Commit 9299405

Browse files
authored
Merge pull request #6 from arunlalp/gitlab
Update README file for Tag Policy Implement.
2 parents e03a273 + 46c8753 commit 9299405

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

README.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,44 @@ terraform destroy -var-file=../../../vars/dev/ec2.tfvars
6565

6666
**Note**: Always review the execution plan (`terraform plan`) before applying changes to avoid unintended modifications.
6767

68+
## Terraform AWS Organization Tag Policy Implement.
69+
70+
1. Navigate to the `environment/dev` folder:
71+
72+
```bash
73+
cd environment/tag-policy
74+
```
75+
76+
2. Open the `tag-policy.tfvars` file and modify it with your desired details. This file contains variables used in the Terraform configuration.
77+
78+
## Deployment
79+
80+
1. Initialize Terraform in the working directory:
81+
82+
```bash
83+
terraform init
84+
```
85+
86+
2. Create an execution plan:
87+
88+
```bash
89+
terraform plan -var-file=../../../vars/dev/tag-policy.tfvars
90+
```
91+
92+
3. Apply the changes to create the Tag Policy:
93+
94+
```bash
95+
terraform apply -var-file=../../../vars/dev/tag-policy.tfvars
96+
```
97+
98+
4. To destroy the Tag Policy:
99+
100+
```bash
101+
terraform destroy -var-file=../../../vars/dev/tag-policy.tfvars
102+
```
103+
104+
**Note**: Always review the execution plan (`terraform plan`) before applying changes to avoid unintended modifications.
105+
68106
## Command Reference
69107

70108
Update all outputs:

0 commit comments

Comments
 (0)