-
Notifications
You must be signed in to change notification settings - Fork 0
/
000-config.tf
61 lines (51 loc) · 1.3 KB
/
000-config.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
# Global variables
# Availability zone to spaws the infrastructure
variable "availability_zone" {
description = "Availability zone of the infrastructure"
default = "eu-west-2b"
}
variable "demo_eip" {
description = "Public IP reserved"
default = "eipalloc-50b4771a"
}
# AMI
# For now: only outscale Centos 7 official AMI
variable "ami_ids" {
description = "AMI IDs used by the infrastructure"
type = "map"
default = {
demo = "ami-d4f6551d"
}
}
# Number of instances
variable "instances_num" {
default = 3
description = "Counter for instances"
}
# Account information
# Fill the value in terraform.tfvars
variable "access_key" {
description = "AK"
}
variable "secret_key" {
description = "SK"
}
variable "public_ssh_key" {
description = "SSH public key used to connected to the instances"
}
# Configuration provider : Outscale
provider "aws" {
access_key = "${var.access_key}"
secret_key = "${var.secret_key}"
region = "eu-west-2"
endpoints {
ec2 = "https://fcu.eu-west-2.outscale.com"
iam = "https://fcu.eu-west-2.outscale.com"
elb = "https://fcu.eu-west-2.outscale.com"
s3 = "https://osu.eu-west-2.outscale.com"
}
# outscale specific
skip_credentials_validation = true
skip_requesting_account_id = true
insecure = true
}