Skip to content

Commit

Permalink
using latest acs-info module to create bastions on non-oit accounts
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshutch committed Jan 31, 2020
1 parent 73b6bbf commit 54e6c2e
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ provider "aws" {
}
module "bastion" {
source = "[email protected]:byu-oit/terraform-aws-bastion.git?ref=v1.1.0"
source = "[email protected]:byu-oit/terraform-aws-bastion.git?ref=v1.1.1"
env = "prd"
vpc_vpn_to_campus = true
netid = "mynetid"
Expand Down Expand Up @@ -70,6 +70,7 @@ The bastion is really intended to be ephemeral (spin it up, use it, tear it down
## Input
| Name | Description | Default Value |
| --- | --- | --- |
| dept_abbr| string | AWS Account department abbreviation (e.g. oit, trn) | oit |
| env | Environment of the AWS Account (for finding the shared VPC and tagging the bastion) (e.g. dev, prd)| |
| vpc_vpn_to_campus | Set to true if the bastion needs to be in the VPC that has VPN access to campus | false |
| netid | Your Net ID (for naming the bastion) | |
Expand Down
9 changes: 5 additions & 4 deletions examples/module/example.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ provider "aws" {
}

module "bastion" {
#source = "[email protected]:byu-oit/terraform-aws-bastion.git?ref=v1.1.0"
source = "../../"
env = "prd"
vpc_vpn_to_campus = true
source = "[email protected]:byu-oit/terraform-aws-bastion.git?ref=v1.1.1"
#source = "../../"
dept_abbr = "ces"
env = "dev"
vpc_vpn_to_campus = false
netid = "mynetid"
public_key = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCwWVPlHpRiXGBmB/VG6PUeJ/Ev+Y39n5PBI4DW3ZMDT1g32nEUjzKtxK6KwVzYFQBhReMO2ry4uSTiNIzuOtHk/OCfcdPc8wbW3RlHBgbqs6p7DfYRJAXJCnWEjovijaVY0lyL4+7/YuprZwBaA2NfUIRN8UwVxZck3ULMnCK6BKog0UAE9NQZ9Z0vAtgLYPo9eVJEuGrxEszN29X+4Fl6u3T8x0XQ9EoMWU4YNwKfzBIof3th9Cbv4+FlEKpOFYuCc5vB2NPotalN8phEUqnvtsDkmCLAop6+MrUlnNNYIzmh2RLeqDF+M/ZnX8xb+V/mT9vARVcdcYCxKYeyXLvT example"
#ingress_cidrs = ["128.187.112.21/32"] # optional (defaults to BYU Campus)
Expand Down
3 changes: 2 additions & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ terraform {
}

module "acs" {
source = "[email protected]:byu-oit/terraform-aws-acs-info.git?ref=v1.1.0"
source = "[email protected]:byu-oit/terraform-aws-acs-info.git?ref=v1.2.2"
dept_abbr = var.dept_abbr
env = var.env
vpc_vpn_to_campus = var.vpc_vpn_to_campus
}
Expand Down
5 changes: 5 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
variable "dept_abbr" {
type = string
default = "oit"
description = "Abbreviation of the department type of account (e.g. oit, trn), defaults to oit."
}
variable "env" {
type = string
description = "Account environment (for finding the shared VPC and tagging the bastion) (e.g. dev, prd)."
Expand Down

0 comments on commit 54e6c2e

Please sign in to comment.