-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tf
35 lines (28 loc) · 1.29 KB
/
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
###########################################################
# #
# Scripter: Stinky-Fox #
# About: Terraform script to run a #
# Signal Proxy in AWS #
# Usage: Define variables in vars.tf #
# Version : 1.0 #
# #
###########################################################
###################################################
# #
# Configure AWS provider credentials #
# #
###################################################
provider "aws" {
region = var.awsRegion
access_key = var.awsAccessKey
secret_key = var.awsSecretKey
}
###################################################
# #
# Load the private key from local file #
# #
###################################################
resource "aws_key_pair" "myPKI" {
key_name = var.keyName
public_key = file(var.publicKeyPath)
}