File tree Expand file tree Collapse file tree 2 files changed +54
-0
lines changed
terraform/account-wide-infrastructure/dev Expand file tree Collapse file tree 2 files changed +54
-0
lines changed Original file line number Diff line number Diff line change 1+ module "vpc" {
2+ source = " ../modules/vpc"
3+ aws_region = var. aws_region
4+ vpc_cidr_block = var. vpc_cidr_block
5+ enable_dns_hostnames = var. enable_dns_hostnames
6+ vpc_public_subnets_cidr_block = var. vpc_public_subnets_cidr_block
7+ aws_azs = var. aws_azs
8+ name_prefix = " nhsd-nrlf--dev"
9+ }
10+
11+
12+ module "web" {
13+ source = " ../modules/ec2"
14+ instance_type = var. instance_type
15+ instance_key = var. instance_key
16+ name_prefix = " nhsd-nrlf--dev"
17+
18+ subnet_id = module. vpc . subnet_id
19+ security_groups = module. vpc . security_group
20+ }
Original file line number Diff line number Diff line change @@ -13,3 +13,37 @@ variable "devsandbox_api_domain_name" {
1313 description = " The internal DNS name of the API Gateway for the dev sandbox environment"
1414 default = " dev-sandbox.api.record-locator.dev.national.nhs.uk"
1515}
16+
17+ variable "aws_azs" {
18+ type = string
19+ description = " AWS Availability Zones"
20+ default = " eu-west-1a"
21+ }
22+
23+ variable "enable_dns_hostnames" {
24+ type = bool
25+ description = " Enable DNS hostnames in VPC"
26+ default = true
27+ }
28+
29+ variable "vpc_cidr_block" {
30+ type = string
31+ description = " Base CIDR Block for VPC"
32+ default = " 10.0.0.0/16"
33+ }
34+
35+ variable "vpc_public_subnets_cidr_block" {
36+ type = string
37+ description = " CIDR Block for Public Subnets in VPC"
38+ default = " 10.0.0.0/24"
39+ }
40+
41+ variable "instance_type" {
42+ type = string
43+ description = " Type for EC2 Instance"
44+ default = " t2.micro"
45+ }
46+
47+ variable "instance_key" {
48+ default = " WorkshopKeyPair"
49+ }
You can’t perform that action at this time.
0 commit comments