-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Creating a VPC is now the default behavior.
- Loading branch information
Ubuntu
committed
Oct 5, 2020
1 parent
e005f65
commit 70a0580
Showing
8 changed files
with
162 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -74,19 +74,13 @@ This install option creates only the default resources: sdm gateways, ssh, mysql | |
module "strongdm_onboarding" { | ||
source = "strongdm/onboarding/sdm" | ||
# Prefix will be added to resource names | ||
prefix = "foo" | ||
# List of existing users to grant resources to | ||
# NOTE: An error will occur if these users are already assigned to a role in strongDM | ||
# Grant yourself access to the resources | ||
# This account should currently be in NO ROLE in the Admin UI. | ||
grant_to_existing_users = [ | ||
"[email protected]", | ||
] | ||
# New accounts to create with access to all resources | ||
admin_users = [ | ||
"[email protected]", | ||
] | ||
} | ||
``` | ||
|
||
|
@@ -115,10 +109,11 @@ module "strongdm_onboarding" { | |
create_kibana = true | ||
# Gateways take approximately 5 min | ||
create_strongdm_gateways = true | ||
# VPC creation takes approximately 5 min | ||
# If set to false the default VPC will be used instead | ||
create_vpc = true | ||
# Leave variables set to null to create resources in default VPC. | ||
vpc_id = null | ||
subnet_ids = null | ||
# List of existing users to grant resources to | ||
# NOTE: An error will occur if these users are already assigned to a role in strongDM | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
|
||
data "aws_availability_zones" "available" { | ||
state = "available" | ||
} | ||
module "vpc" { | ||
source = "terraform-aws-modules/vpc/aws" | ||
|
||
create_vpc = var.create_vpc | ||
|
||
name = "${var.prefix}-vpc" | ||
cidr = "10.0.0.0/16" | ||
|
||
|
||
|
||
azs = [ | ||
data.aws_availability_zones.available.names[0], | ||
data.aws_availability_zones.available.names[1], | ||
data.aws_availability_zones.available.names[2], | ||
] | ||
private_subnets = ["10.0.100.0/24"] | ||
public_subnets = ["10.0.101.0/24", "10.0.102.0/24", "10.0.103.0/24"] | ||
|
||
tags = merge( | ||
{ Name = "${var.prefix}-vpc" }, | ||
local.default_tags, | ||
var.tags, | ||
) | ||
} |
Oops, something went wrong.