mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-04-29 03:38:51 +00:00
Merge pull request #687 from shaderecker/terraform-otc
Update Terraform config for 0.13
This commit is contained in:
commit
9a7f55bb52
5 changed files with 23 additions and 10 deletions
|
@ -9,7 +9,7 @@ This can easily be extended to support other [Terraform providers](https://www.t
|
||||||
- [What get's created](#what-created)
|
- [What get's created](#what-created)
|
||||||
- [Amazon Web Services (AWS)](#what-created-aws)
|
- [Amazon Web Services (AWS)](#what-created-aws)
|
||||||
- [Open Telekom Cloud (OTC)](#what-created-otc)
|
- [Open Telekom Cloud (OTC)](#what-created-otc)
|
||||||
- [Pre-Requisites](#pre)
|
- [Prerequisites](#pre)
|
||||||
- [Amazon Web Services (AWS)](#pre-aws)
|
- [Amazon Web Services (AWS)](#pre-aws)
|
||||||
- [Open Telekom Cloud (OTC)](#pre-otc)
|
- [Open Telekom Cloud (OTC)](#pre-otc)
|
||||||
- [Terraform Variables](#variables)
|
- [Terraform Variables](#variables)
|
||||||
|
@ -45,8 +45,8 @@ This can easily be extended to support other [Terraform providers](https://www.t
|
||||||
* Network, Subnet, Router (= Virtual Private Cloud [VPC])
|
* Network, Subnet, Router (= Virtual Private Cloud [VPC])
|
||||||
|
|
||||||
<a name="pre"></a>
|
<a name="pre"></a>
|
||||||
## Pre-Requisites
|
## Prerequisites
|
||||||
* [Terraform](https://www.terraform.io/) 0.12
|
* [Terraform](https://www.terraform.io/) 0.13
|
||||||
|
|
||||||
<a name="pre-aws"></a>
|
<a name="pre-aws"></a>
|
||||||
### Amazon Web Services (AWS)
|
### Amazon Web Services (AWS)
|
||||||
|
@ -90,7 +90,7 @@ In `aws/variables.tf`, you can change the additional variables:
|
||||||
<a name="variables-otc"></a>
|
<a name="variables-otc"></a>
|
||||||
### Open Telekom Cloud (OTC)
|
### Open Telekom Cloud (OTC)
|
||||||
In `otc/variables.tf`, you can change the additional variables:
|
In `otc/variables.tf`, you can change the additional variables:
|
||||||
* `availabiliy_zone`
|
* `availability_zone`
|
||||||
* `flavor`
|
* `flavor`
|
||||||
* `key_pair` - Specify an existing SSH key pair
|
* `key_pair` - Specify an existing SSH key pair
|
||||||
* `image_id`
|
* `image_id`
|
||||||
|
@ -124,4 +124,4 @@ If you want the remove the built infrastructure, you can run [`terraform destroy
|
||||||
|
|
||||||
<a name="connecting"></a>
|
<a name="connecting"></a>
|
||||||
## Connecting to the Instance
|
## Connecting to the Instance
|
||||||
When the installation is completed, you can proceed with connecting/logging in to the T-Pot according to the [documentation](https://github.com/dtag-dev-sec/tpotce#ssh-and-web-access).
|
When the installation is completed, you can proceed with connecting/logging in to the T-Pot according to the [documentation](https://github.com/telekom-security/tpotce#ssh-and-web-access).
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
terraform {
|
terraform {
|
||||||
required_version = ">= 0.12"
|
required_version = ">= 0.13"
|
||||||
|
required_providers {
|
||||||
|
aws = {
|
||||||
|
source = "hashicorp/aws"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,7 +36,7 @@ resource "random_id" "tpot" {
|
||||||
}
|
}
|
||||||
|
|
||||||
resource "opentelekomcloud_compute_instance_v2" "ecs_1" {
|
resource "opentelekomcloud_compute_instance_v2" "ecs_1" {
|
||||||
availability_zone = var.availabiliy_zone
|
availability_zone = var.availability_zone
|
||||||
name = random_id.tpot.b64
|
name = random_id.tpot.b64
|
||||||
flavor_name = var.flavor
|
flavor_name = var.flavor
|
||||||
key_pair = var.key_pair
|
key_pair = var.key_pair
|
||||||
|
|
|
@ -34,7 +34,7 @@ variable "ecs_prefix" {
|
||||||
}
|
}
|
||||||
|
|
||||||
# ECS configuration
|
# ECS configuration
|
||||||
variable "availabiliy_zone" {
|
variable "availability_zone" {
|
||||||
default = "eu-de-03"
|
default = "eu-de-03"
|
||||||
description = "Select an availability zone"
|
description = "Select an availability zone"
|
||||||
}
|
}
|
||||||
|
@ -50,7 +50,7 @@ variable "key_pair" {
|
||||||
}
|
}
|
||||||
|
|
||||||
variable "image_id" {
|
variable "image_id" {
|
||||||
default = "d97dd29c-9318-4e4c-8d3a-7307d1513b77"
|
default = "fb7b0c9c-8b20-4e3f-832c-ea38c981c282"
|
||||||
description = "Select a Debian 10 base image id"
|
description = "Select a Debian 10 base image id"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,11 @@
|
||||||
terraform {
|
terraform {
|
||||||
required_version = ">= 0.12"
|
required_version = ">= 0.13"
|
||||||
|
required_providers {
|
||||||
|
opentelekomcloud = {
|
||||||
|
source = "terraform-providers/opentelekomcloud"
|
||||||
|
}
|
||||||
|
random = {
|
||||||
|
source = "hashicorp/random"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue