aboutsummaryrefslogtreecommitdiffstats
path: root/fdio.infra.terraform/terraform-aws-vpc/example
diff options
context:
space:
mode:
authorPeter Mikus <pmikus@cisco.com>2022-03-24 10:48:15 +0100
committerPeter Mikus <pmikus@cisco.com>2022-03-24 10:05:05 +0000
commitc5181ae1627fed20b79a829bf2330f3ee9d8a0f6 (patch)
tree606c7a53441e65f40cc16631b0495eb6c7129efa /fdio.infra.terraform/terraform-aws-vpc/example
parentdc28d6ba2adc598699a71fc5757f08325840d358 (diff)
feat(terraform): AWS VPC
Signed-off-by: Peter Mikus <pmikus@cisco.com> Change-Id: I3acd41dc07c15eac0e87a4aedd75d53b30666cf8
Diffstat (limited to 'fdio.infra.terraform/terraform-aws-vpc/example')
-rw-r--r--fdio.infra.terraform/terraform-aws-vpc/example/main.tf7
-rw-r--r--fdio.infra.terraform/terraform-aws-vpc/example/output.tf4
-rw-r--r--fdio.infra.terraform/terraform-aws-vpc/example/providers.tf3
-rw-r--r--fdio.infra.terraform/terraform-aws-vpc/example/variables.tf5
-rw-r--r--fdio.infra.terraform/terraform-aws-vpc/example/versions.tf9
5 files changed, 28 insertions, 0 deletions
diff --git a/fdio.infra.terraform/terraform-aws-vpc/example/main.tf b/fdio.infra.terraform/terraform-aws-vpc/example/main.tf
new file mode 100644
index 0000000000..9d9469754d
--- /dev/null
+++ b/fdio.infra.terraform/terraform-aws-vpc/example/main.tf
@@ -0,0 +1,7 @@
+module "vpc" {
+ source = "../"
+ security_group_name = "terraform-sg"
+ subnet_availability_zone = "us-east-1a"
+ tags_name = "terraform-vpc"
+ tags_environment = "terraform-vpc-environment"
+}
diff --git a/fdio.infra.terraform/terraform-aws-vpc/example/output.tf b/fdio.infra.terraform/terraform-aws-vpc/example/output.tf
new file mode 100644
index 0000000000..c26bbaecb6
--- /dev/null
+++ b/fdio.infra.terraform/terraform-aws-vpc/example/output.tf
@@ -0,0 +1,4 @@
+output "vpc_id" {
+ value = module.vpc.vpc_id
+ description = "The ID of the VPC"
+} \ No newline at end of file
diff --git a/fdio.infra.terraform/terraform-aws-vpc/example/providers.tf b/fdio.infra.terraform/terraform-aws-vpc/example/providers.tf
new file mode 100644
index 0000000000..5ff54f0d65
--- /dev/null
+++ b/fdio.infra.terraform/terraform-aws-vpc/example/providers.tf
@@ -0,0 +1,3 @@
+provider "aws" {
+ region = var.region
+} \ No newline at end of file
diff --git a/fdio.infra.terraform/terraform-aws-vpc/example/variables.tf b/fdio.infra.terraform/terraform-aws-vpc/example/variables.tf
new file mode 100644
index 0000000000..f75f3d547f
--- /dev/null
+++ b/fdio.infra.terraform/terraform-aws-vpc/example/variables.tf
@@ -0,0 +1,5 @@
+variable "region" {
+ description = "AWS Region."
+ type = string
+ default = "us-east-1"
+}
diff --git a/fdio.infra.terraform/terraform-aws-vpc/example/versions.tf b/fdio.infra.terraform/terraform-aws-vpc/example/versions.tf
new file mode 100644
index 0000000000..af1be4a4e1
--- /dev/null
+++ b/fdio.infra.terraform/terraform-aws-vpc/example/versions.tf
@@ -0,0 +1,9 @@
+terraform {
+ required_providers {
+ aws = {
+ source = "hashicorp/aws"
+ version = ">= 4.3.0"
+ }
+ }
+ required_version = ">= 1.1.4"
+}