Skip to content

Commit 1807cca

Browse files
committed
Welcome to Stack Simplify
1 parent 9793055 commit 1807cca

File tree

1 file changed

+7
-44
lines changed

1 file changed

+7
-44
lines changed

25-Azure-DevOps-Terraform-Azure-AKS/README.md

Lines changed: 7 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -205,56 +205,18 @@ Public File: aks-terraform-devops-ssh-key-ububtu.pub (To be uploaded to Azure De
205205
- Design your Pipeline
206206
- Pipeline Name: 01-terraform-provision-aks-cluster-pipeline.yml
207207
### Stage-1: Validate Stage
208+
- **Stage-1:** Terraform Validate Stage
209+
- **Step-1:** Publish Artifacts to Pipeline (Pipeline artifacts provide a way to share files between stages in a pipeline or between different pipelines. )
210+
- **Step-2:** Install Latest Terraform (0.13.5) (Ideally not needed if we use default Agents)
211+
- **Step-3:** Validate Terraform Manifests
208212
```yaml
209-
210-
trigger:
211-
- master
212-
213-
pool:
214-
vmImage: 'ubuntu-latest'
215-
216-
# Stage-1: Validate Stage
217-
## Step-1: Install Latest Terraform (0.13.5) (Ideally not needed if we use default Agents)
218-
## Step-2: Validate Terraform Manifests
219-
## Step-3: Publish Artifacts to Pipeline (Pipeline artifacts provide a way to share files between stages in a pipeline or between different pipelines. )
220-
221-
stages:
222-
- stage: Validate
223-
jobs:
224-
- job: ValidateJob
225-
continueOnError: false
226-
steps:
227-
- publish: terraform-manifests
228-
artifact: terraform-manifests-out
229-
- task: TerraformInstaller@0
230-
displayName: Terraform Installer
231-
inputs:
232-
terraformVersion: 'latest'
233-
- task: TerraformCLI@0
234-
displayName: Terraform Init
235-
inputs:
236-
command: 'init'
237-
workingDirectory: '$(System.DefaultWorkingDirectory)/terraform-manifests'
238-
backendType: 'azurerm'
239-
backendServiceArm: 'terraform-aks-azurerm-for-pipe3'
240-
backendAzureRmResourceGroupName: 'terraform-state-storage-rg2'
241-
backendAzureRmStorageAccountName: 'tfstatekalyan123'
242-
backendAzureRmContainerName: 'tfstatefiles'
243-
backendAzureRmKey: 'aks-base.tfstate'
244-
allowTelemetryCollection: false
245-
- task: TerraformCLI@0
246-
displayName: Terraform Validate
247-
inputs:
248-
command: 'validate'
249-
workingDirectory: '$(System.DefaultWorkingDirectory)/terraform-manifests'
250-
allowTelemetryCollection: false
251213

252214
```
253215

254216

255217
### Pipeline Save and Run
256218
- Click on **Save and Run**
257-
- Commit Message: First Commit - Validate terraform manifests
219+
- Commit Message: First Pipeline Commit - Validate terraform manifests
258220
- Click on **Job** and Verify Pipeline
259221

260222

@@ -266,7 +228,8 @@ stages:
266228
- **Step-3:** Terraform Initialize (State Storage to store in Azure Storage Account for Dev AKS Cluster)
267229
- **Step-4:** Terraform Plan (Create Plan)
268230
- **Step-5:** Terraform Apply (Use the plan created in previous step)
269-
- [Azure Pipelines - Deployment Jobs](https://docs.microsoft.com/en-us/azure/devops/pipelines/process/deployment-jobs?view=azure-devops)
231+
- [Azure DevOps Pipelines - Deployment Jobs](https://docs.microsoft.com/en-us/azure/devops/pipelines/process/deployment-jobs?view=azure-devops)
232+
- [Azure DevOps Pipelines - Environments](https://docs.microsoft.com/en-us/azure/devops/pipelines/process/environments?view=azure-devops)
270233

271234
### Stage-2: Deployment-1: Deploy Dev AKS Cluster
272235
```yaml

0 commit comments

Comments
 (0)