-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.tf
67 lines (54 loc) · 1.29 KB
/
test.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
terraform {
required_providers {
epic = {
version = "0.1.0"
source = "localhost/providers/epic"
}
aws = {
source = "hashicorp/aws"
version = "5.47.0"
}
}
}
provider "epic" {}
provider "aws" {
region = "us-east-1"
}
resource "epic_random_name" "movie_name" {
media_type = "movie"
title = "lord of the rings"
}
resource "epic_random_name" "tv_series_name" {
media_type = "tv_series"
title = "game of thrones"
}
resource "epic_random_quote" "lotr_quote" {
media_type = "movie"
title = "lord of the rings"
}
resource "epic_random_quote" "got_quote" {
media_type = "tv_series"
title = "game of thrones"
}
resource "aws_s3_bucket" "epic" {
bucket = epic_random_name.movie_name.name
tags = {
Name = epic_random_name.movie_name.name
Description = epic_random_quote.lotr_quote.quote
}
}
output "s3_bucket_name" {
value = aws_s3_bucket.epic.bucket
}
output "random_movie_name" {
value = epic_random_name.movie_name.name
}
output "random_tv_series_name" {
value = epic_random_name.tv_series_name.name
}
output "lotr_quote" {
value = epic_random_quote.lotr_quote.quote
}
output "got_quote" {
value = epic_random_quote.got_quote.quote
}