Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
stuft2 committed Jun 15, 2021
1 parent 8ce2d17 commit b6fbd27
Show file tree
Hide file tree
Showing 7 changed files with 133 additions and 4 deletions.
24 changes: 21 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,33 @@ jobs:
run: |
matrix='{
"env":[
{
"tf_version":"0.12.26",
"tf_working_dir":"./examples/ci-0_12",
"aws_key_name":"byu_oit_terraform_dev_key",
"aws_secret_name":"byu_oit_terraform_dev_secret"
},
{
"tf_version":"0.13.2",
"tf_working_dir":"./examples/ci-13",
"tf_working_dir":"./examples/ci-0_13",
"aws_key_name":"byu_oit_terraform_dev_key",
"aws_secret_name":"byu_oit_terraform_dev_secret"
}
{
"tf_version":"0.14.11",
"tf_working_dir":"./examples/ci-0_14",
"aws_key_name":"byu_oit_terraform_dev_key",
"aws_secret_name":"byu_oit_terraform_dev_secret"
},
{
"tf_version":"0.12.26",
"tf_working_dir":"./examples/ci-12",
"tf_version":"0.15.5",
"tf_working_dir":"./examples/ci-0_15",
"aws_key_name":"byu_oit_terraform_dev_key",
"aws_secret_name":"byu_oit_terraform_dev_secret"
},
{
"tf_version":"1.0.0",
"tf_working_dir":"./examples/ci-1_0",
"aws_key_name":"byu_oit_terraform_dev_key",
"aws_secret_name":"byu_oit_terraform_dev_secret"
}
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ provider "aws" {
}
module "bastion" {
source = "github.com/byu-oit/terraform-aws-bastion.git?ref=v2.0.0"
source = "github.com/byu-oit/terraform-aws-bastion.git?ref=v2.0.1"
env = "prd"
vpc_vpn_to_campus = true
netid = "mynetid"
Expand Down
File renamed without changes.
File renamed without changes.
37 changes: 37 additions & 0 deletions examples/ci-0_14/ci.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
terraform {
required_version = "0.14.11"
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 3.0"
}
}
}

provider "aws" {
region = "us-west-2"
}

module "bastion" {
source = "../../"
env = "dev"
vpc_vpn_to_campus = false
netid = "githubac"
public_key = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCwWVPlHpRiXGBmB/VG6PUeJ/Ev+Y39n5PBI4DW3ZMDT1g32nEUjzKtxK6KwVzYFQBhReMO2ry4uSTiNIzuOtHk/OCfcdPc8wbW3RlHBgbqs6p7DfYRJAXJCnWEjovijaVY0lyL4+7/YuprZwBaA2NfUIRN8UwVxZck3ULMnCK6BKog0UAE9NQZ9Z0vAtgLYPo9eVJEuGrxEszN29X+4Fl6u3T8x0XQ9EoMWU4YNwKfzBIof3th9Cbv4+FlEKpOFYuCc5vB2NPotalN8phEUqnvtsDkmCLAop6+MrUlnNNYIzmh2RLeqDF+M/ZnX8xb+V/mT9vARVcdcYCxKYeyXLvT example"
}

output "connect" {
value = module.bastion.connect
}

output "ec2_instance" {
value = module.bastion.ec2_instance
}

output "security_group" {
value = module.bastion.security_group
}

output "key_pair" {
value = module.bastion.key_pair
}
37 changes: 37 additions & 0 deletions examples/ci-0_15/ci.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
terraform {
required_version = "0.15.5"
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 3.0"
}
}
}

provider "aws" {
region = "us-west-2"
}

module "bastion" {
source = "../../"
env = "dev"
vpc_vpn_to_campus = false
netid = "githubac"
public_key = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCwWVPlHpRiXGBmB/VG6PUeJ/Ev+Y39n5PBI4DW3ZMDT1g32nEUjzKtxK6KwVzYFQBhReMO2ry4uSTiNIzuOtHk/OCfcdPc8wbW3RlHBgbqs6p7DfYRJAXJCnWEjovijaVY0lyL4+7/YuprZwBaA2NfUIRN8UwVxZck3ULMnCK6BKog0UAE9NQZ9Z0vAtgLYPo9eVJEuGrxEszN29X+4Fl6u3T8x0XQ9EoMWU4YNwKfzBIof3th9Cbv4+FlEKpOFYuCc5vB2NPotalN8phEUqnvtsDkmCLAop6+MrUlnNNYIzmh2RLeqDF+M/ZnX8xb+V/mT9vARVcdcYCxKYeyXLvT example"
}

output "connect" {
value = module.bastion.connect
}

output "ec2_instance" {
value = module.bastion.ec2_instance
}

output "security_group" {
value = module.bastion.security_group
}

output "key_pair" {
value = module.bastion.key_pair
}
37 changes: 37 additions & 0 deletions examples/ci-1_0/ci.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
terraform {
required_version = "1.0.0"
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 3.0"
}
}
}

provider "aws" {
region = "us-west-2"
}

module "bastion" {
source = "../../"
env = "dev"
vpc_vpn_to_campus = false
netid = "githubac"
public_key = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCwWVPlHpRiXGBmB/VG6PUeJ/Ev+Y39n5PBI4DW3ZMDT1g32nEUjzKtxK6KwVzYFQBhReMO2ry4uSTiNIzuOtHk/OCfcdPc8wbW3RlHBgbqs6p7DfYRJAXJCnWEjovijaVY0lyL4+7/YuprZwBaA2NfUIRN8UwVxZck3ULMnCK6BKog0UAE9NQZ9Z0vAtgLYPo9eVJEuGrxEszN29X+4Fl6u3T8x0XQ9EoMWU4YNwKfzBIof3th9Cbv4+FlEKpOFYuCc5vB2NPotalN8phEUqnvtsDkmCLAop6+MrUlnNNYIzmh2RLeqDF+M/ZnX8xb+V/mT9vARVcdcYCxKYeyXLvT example"
}

output "connect" {
value = module.bastion.connect
}

output "ec2_instance" {
value = module.bastion.ec2_instance
}

output "security_group" {
value = module.bastion.security_group
}

output "key_pair" {
value = module.bastion.key_pair
}

0 comments on commit b6fbd27

Please sign in to comment.