forked from briancain/terraform-aws-helloworld
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tf
41 lines (35 loc) · 757 Bytes
/
main.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
terraform {
backend "s3" {
bucket = "test-cristhian"
key = "terraform"
region = "us-east-2"
profile = "dev"
}
}
provider "aws" {
profile = "dev"
region = "us-east-2"
}
resource "aws_s3_bucket" "bucket" {
bucket = var.bucket_name
acl = "private"
tags = {
Name = "Bucket Created From Local Terraformer"
Environment = "Cristhian-Dev"
}
}
resource "null_resource" "hello_world" {
provisioner "local-exec" {
command = "echo hello world!!"
}
}
resource "null_resource" "hello_world_part_2" {
provisioner "local-exec" {
command = "echo ${var.greetings}!"
}
}
resource "null_resource" "dont_hack_me" {
provisioner "local-exec" {
command = "echo My password is: ${var.password}"
}
}