Skip to content

๐Ÿš€ Demo project showcasing a complete VCS-driven Terraform Cloud workflow, automating infrastructure deployments through GitHub integration.

License

Notifications You must be signed in to change notification settings

SanketNalage/Terraform-Cloud-Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

6 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Terraform-Cloud-Project

๐Ÿš€ Demo project showcasing a complete VCS-driven Terraform Cloud workflow, automating infrastructure deployments through GitHub integration.

Step-01: Sign-Up for Terraform Cloud - Free Account & Login

Step-02: Create Organization

  • Organization Name: sanket-org
  • Email Address: give the email which you used at login of Terraform.io
  • Click on Create Organization

Org


Step-03: Create New Workspace

  • Get in to newly created Organization
  • Click on New Workspace
  • Choose your workflow:
    • Version Control Workflow
  • Connect to VCS
    • Connect to a version control provider: github.com
    • NEW WINDOW: Authorize Terraform Cloud: Click on Authorize Terraform Cloud Button
    • NEW WINDOW: Install Terraform Cloud
    • Select radio button: Only select repositories
    • Selected 1 Repository: SanketNalage/Terraform-Cloud-Project
    • Click on Install
  • Choose a Repository
    • SanketNalage/Terraform-Cloud-Project
  • Configure Settings
    • Workspace Name: Terraform-Cloud-Project (Whatever populated automically leave to defaults)
    • Advanced Settings: leave to defaults
  • Click on Create Workspace
  • You should see this message Configuration uploaded successfully

workspace



workspace1


Step-04: Configure Variables

  • Variable: aws_region
    • key: aws_region
    • value: eu-north-1
  • Variable: instance_type
    • key: instance_type
    • value: t3.micro

Step-05: Configre Environment Variables

  • Setup AWS Access Keys for Terraform
  • Configure AWS Access Key ID and Secret Access Key
  • Environment Variable: AWS_ACCESS_KEY_ID
    • Key: AWS_ACCESS_KEY_ID
    • Value: XXXXXXXXXXXXXXXXXXXXXX
  • Environment Variable: AWS_SECRET_ACCESS_KEY
    • Key: AWS_SECRET_ACCESS_KEY
    • Value: YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY

Step-06: Click on Queue Plan

  • Go to Workspace -> Runs -> Queue Plan
  • Review the plan generated in Full Screen
  • Add Comment: First Run
  • Click on Confirm & Apply
  • Add Comment: First Run Approved
  • Click on Confirm Plan
  • Review Apply log output in Full Screen
  • Add Comment: Successfully Provisioned, Verified in AWS

run



plan



apply



apply1


Step-07: Review Terraform State

  • Go to Workspace -> States
  • Review the state file

state


Step-8: Destruction and Deletion

  • Goto -> Workspace -> Settings -> Destruction and Deletion
  • click on Queue Destroy Plan to delete the resources on cloud
  • Goto -> Workspac -> Runs -> Click on Confirm & Apply
  • Add Comment: Approved for Deletion

state


About

๐Ÿš€ Demo project showcasing a complete VCS-driven Terraform Cloud workflow, automating infrastructure deployments through GitHub integration.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published