Skip to content

Instantly share code, notes, and snippets.

@Yamini-crypto
Created January 16, 2024 10:28
Show Gist options
  • Save Yamini-crypto/a21e2e2c57715ceb20c998f692ec19fa to your computer and use it in GitHub Desktop.
Save Yamini-crypto/a21e2e2c57715ceb20c998f692ec19fa to your computer and use it in GitHub Desktop.
mkdir terraform-gitops-example
cd terraform-gitops-example
terraform init
Create Terraform Configuration File (main.tf):
provider "aws" {
region = "us-west-1"
}
resource "aws_instance" "example" {
ami = "ami-0c55b159cbfafe1f0"
instance_type = "t2.micro"
}
Test Configuration Locally:
terraform plan
terraform apply
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment