forked from b1021204/terraform-provider-scraping
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tf
34 lines (27 loc) · 796 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
terraform {
required_providers {
scraping = {
source = "registry.terraform.io/hashicorp/scraping"
}
}
}
provider "scraping" {}
resource "scraping_resource" "example"{
environment = "Linux(Ubuntu22.04LTS)(2024後期)"
username = "b1021204"
password = "SAKURAskip108"
// machine_name = "EC2-pollux-144224"
machine_stop = false
instance_type = "t4g.large"
connection {
type = "ssh"
user = "ubuntu"
private_key = file(provider::scraping::key("b1021204", "SAKURAskip108", "Linux(Ubuntu22.04LTS)(2024後期)", "/Users/nsysk_0101/univ/b4/terraform-provider-scraping"))
host = scraping_resource.example.ip
}
provisioner "remote-exec" {
inline = [
"mkdir mid_seminar"
]
}
}