Skip to content

Commit

Permalink
clean(tools): cleanup deploy_terraform circleci jobs and script
Browse files Browse the repository at this point in the history
Signed-off-by: Massimiliano Giovagnoli <[email protected]>
  • Loading branch information
maxgio92 committed Aug 10, 2023
1 parent 3f95f42 commit dbe0b58
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 102 deletions.
38 changes: 0 additions & 38 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,6 @@
version: 2
jobs:
"test-infra/scan/terraform":
docker:
- image: alpine/git:v2.26.2
steps:
- checkout
- run:
name: Scan terraform code # terrascan -d does not currently support remote TF modules. See: https://github.com/accurics/terrascan/issues/332
command: |
apk add curl tar
curl -L "$(curl -Ls https://api.github.com/repos/accurics/terrascan/releases/latest | grep -o -E "https://.+?_Linux_x86_64.tar.gz")" > terrascan.tar.gz
tar -xf terrascan.tar.gz
install terrascan /usr/local/bin
terrascan scan -i terraform -d config/clusters -v \
--skip-rules 'AC_AWS_0214,AC_AWS_0369,AC_AWS_0487,AC_AWS_078,AWS.CloudTrail.Logging.Medium.007,AC_AWS_0447,AC_AWS_0497,AC_AWS_0458,AC_AWS_0320'
"test-infra/deploy/terraform":
requires:
- test-infra/scan/terraform
docker:
- image: amazon/aws-cli:2.6.3
steps:
- checkout
- run:
name: Deploy terraform
command: |
yum update -y
yum install jq unzip git -y
./tools/deploy_terraform.sh
"test-infra/deploy/prow":
requires:
- test-infra/deploy/terraform
docker:
- image: amazon/aws-cli:2.6.3
steps:
Expand All @@ -46,15 +17,6 @@ workflows:
version: 2
build:
jobs:
- "test-infra/scan/terraform":
context: test-infra
- "test-infra/deploy/terraform":
requires:
- test-infra/scan/terraform
context: test-infra
filters:
branches:
only: master
- "test-infra/deploy/prow":
requires:
- test-infra/deploy/terraform
Expand Down
64 changes: 0 additions & 64 deletions tools/deploy_terraform.sh

This file was deleted.

0 comments on commit dbe0b58

Please sign in to comment.