Skip to content

Instantly share code, notes, and snippets.

@roxsross

roxsross/main.tf Secret

Created September 9, 2023 16:14
Show Gist options
  • Save roxsross/e2195a148475e404e37c264dea1f18f3 to your computer and use it in GitHub Desktop.
Save roxsross/e2195a148475e404e37c264dea1f18f3 to your computer and use it in GitHub Desktop.
terraform
// Configuración del proveedor
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 5.0"
}
}
}
provider "aws" {
region = "us-east-1"
}
resource "aws_instance" "ec2" {
ami = "ami-053b0d53c279acc90"
instance_type = "t2.micro"
tags = {
"Name" : "ec2-terraform"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment