Skip to content

Commit

Permalink
tag fablab's AWS resources and name environments distinctly
Browse files Browse the repository at this point in the history
  • Loading branch information
qrkourier committed Sep 20, 2023
1 parent 42279ce commit 46fb81a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ jobs:
- name: Create Test Environment
run: |
echo "ZITI_ROOT=$(go env GOPATH)/bin" >> "$GITHUB_ENV"
$(go env GOPATH)/bin/simple-transfer create -d simple-transfer-${GITHUB_RUN_NUMBER} -n simple-transfer-${GITHUB_RUN_NUMBER} -l environment=gh,ziti_version=$($(go env GOPATH)/bin/ziti-ci -q get-current-version)
$(go env GOPATH)/bin/simple-transfer create -d simple-transfer-${GITHUB_RUN_NUMBER} -n simple-transfer-${GITHUB_RUN_NUMBER} -l environment=gh-fablab-smoketest,ziti_version=$($(go env GOPATH)/bin/ziti-ci -q get-current-version)
$(go env GOPATH)/bin/simple-transfer up
- name: Test Ziti Command
Expand Down Expand Up @@ -273,7 +273,7 @@ jobs:
- name: Create Test Environment
run: |
echo "ZITI_ROOT=$(go env GOPATH)/bin" >> "$GITHUB_ENV"
$(go env GOPATH)/bin/simple-transfer create -d simple-transfer-ha-${GITHUB_RUN_NUMBER} -n simple-transfer-ha-${GITHUB_RUN_NUMBER} -l ha=true,environment=gh,ziti_version=$($(go env GOPATH)/bin/ziti-ci -q get-current-version)
$(go env GOPATH)/bin/simple-transfer create -d simple-transfer-ha-${GITHUB_RUN_NUMBER} -n simple-transfer-ha-${GITHUB_RUN_NUMBER} -l ha=true,environment=gh-fablab-ha-smoketest,ziti_version=$($(go env GOPATH)/bin/ziti-ci -q get-current-version)
$(go env GOPATH)/bin/simple-transfer up
# - name: Test Ziti Command
Expand Down
8 changes: 8 additions & 0 deletions zititest/models/test_resources/terraform/vpc/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,16 @@ resource "aws_vpc" "fablab" {
enable_dns_hostnames = true
tags = {
Name = var.environment_tag
source = "fablab"
}
}

resource "aws_internet_gateway" "fablab" {
vpc_id = aws_vpc.fablab.id
tags = {
Name = var.environment_tag
source = "fablab"
}
}

resource "aws_subnet" "fablab" {
Expand All @@ -33,6 +38,7 @@ resource "aws_subnet" "fablab" {
availability_zone = var.az
tags = {
Name = var.environment_tag
source = "fablab"
}
}

Expand All @@ -44,6 +50,7 @@ resource "aws_route_table" "fablab" {
}
tags = {
Name = var.environment_tag
source = "fablab"
}
}

Expand Down Expand Up @@ -125,5 +132,6 @@ resource "aws_security_group" "fablab" {
}
tags = {
Name = var.environment_tag
source = "fablab"
}
}

0 comments on commit 46fb81a

Please sign in to comment.