Skip to content

Commit

Permalink
feat: try provisioner
Browse files Browse the repository at this point in the history
  • Loading branch information
tkdn committed Mar 9, 2024
1 parent 80c331f commit 306b7de
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 23 additions & 0 deletions ch8.production-grade-infrastructure/examples/provisioner/main.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
terraform {
required_version = ">= 1.0.0, < 2.0.0"

required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 5.0"
}
}
}

provider "aws" {
region = "ap-northeast-1"
}

resource "aws_instance" "example" {
ami = "ami-019d9da0f68cbf7c0"
instance_type = "t2.micro"

provisioner "local-exec" {
command = "echo \"hello, world from $(uname -smp)\""
}
}

0 comments on commit 306b7de

Please sign in to comment.