-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add startup taint * add namespace and startup taint to template * templatlize * fix vals * fewer things * add a few missing values * create ns * update values * add nodeSelector and tolerations * remove digest * node group * fmt * syntax and startupTaints * fix syntax * update values * remove ng selector * lower cpu requests * use digest again * simplify repository * fix repository * escape the . * fix subnets_name * subnet selector * use the outputs from karpenter module * create instance profile true * cleanup * without cluster tag * pass in vpc * enable debug and disable serviceMonitor * fix merge issues * update resources and set eksControlPlane true * try enable_pod_identity * update updated upstream * more options for namings * shorter * validate role name length * validate event rules name length * shorter * shorter still * fix prefix * name the queue * 66 - 3 = 63, limit 64 * longest event name is InstanceStateChange * another * maybe * name * name_prefix * or_not * add module release process * update module source * update release actions
- Loading branch information
Showing
8 changed files
with
168 additions
and
116 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 |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| name: Terraform CI/CD | ||
| on: | ||
| workflow_dispatch: | ||
| pull_request: | ||
| types: [closed] | ||
| branches: | ||
| - main | ||
| jobs: | ||
| terraform-ci-cd: | ||
| runs-on: 229685449397 | ||
| permissions: | ||
| contents: write | ||
|
|
||
| steps: | ||
| - name: Checkout code | ||
| uses: CSVD/gh-actions-checkout@v4 | ||
|
|
||
| - name: Setup GITHUB Credentials | ||
| id: github_credentials | ||
| uses: CSVD/gh-auth@main | ||
| with: | ||
| github_app_pem_file: ${{ secrets.GH_APP_PEM_FILE }} | ||
| github_app_installation_id: ${{ vars.GH_APP_INSTALLATION_ID }} | ||
| github_app_id: ${{ vars.GH_APP_ID }} | ||
|
|
||
| - name: Setup GitHub CLI | ||
| run: | | ||
| # Force manual authentication since setup-git might not work with GitHub Enterprise | ||
| echo "${{ steps.github_credentials.outputs.github_token }}" > /tmp/token.txt | ||
| gh auth login --with-token --hostname "github.e.it.census.gov" < /tmp/token.txt | ||
| rm /tmp/token.txt | ||
| # Test GitHub CLI auth status | ||
| gh auth status || echo "GitHub CLI authentication failed" | ||
| - name: Run Release Action | ||
| uses: CSVD/releaser@main | ||
| with: | ||
| github-token: ${{ steps.github_credentials.outputs.github_token }} | ||
| working-directory: '.' |
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,42 @@ | ||
| name: Terraform Validate | ||
| on: | ||
| pull_request: | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
|
|
||
| terraform-validate: | ||
| runs-on: "229685449397" | ||
| permissions: | ||
| contents: write | ||
| steps: | ||
| - name: Checkout code | ||
| uses: CSVD/gh-actions-checkout@v4 | ||
|
|
||
| - name: Setup Terraform | ||
| uses: CSVD/gh-actions-setup-terraform@v2 | ||
| with: | ||
| terraform_version: '1.7.3' | ||
|
|
||
| - name: Validate Terraform Configuration | ||
| id: validate | ||
| uses: CSVD/terraform-validate@main | ||
|
|
||
| - name: Check Validation/Test Results | ||
| if: always() | ||
| run: | | ||
| # Set default values if outputs are empty | ||
| IS_VALID="${{ steps.validate.outputs.is_valid }}" | ||
| TESTS_PASSED="${{ steps.validate.outputs.tests_passed }}" | ||
| # If outputs are empty, set them to false | ||
| [ -z "$IS_VALID" ] && IS_VALID="false" | ||
| [ -z "$TESTS_PASSED" ] && TESTS_PASSED="false" | ||
| if [[ "$IS_VALID" != "true" || "$TESTS_PASSED" != "true" ]]; then | ||
| echo "Validation or test errors found:" | ||
| echo "${{ steps.validate.outputs.stderr }}" | ||
| exit 1 | ||
| else | ||
| echo "All validations and tests passed successfully!" | ||
| fi |
This file was deleted.
Oops, something went wrong.
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,37 @@ | ||
| locals { | ||
| prefixes = { | ||
| "efs" = "v-efs-" | ||
| "s3" = "v-s3-" | ||
| "ebs" = "v-ebs-" | ||
| "kms" = "k-kms-" | ||
| "role" = "r-" | ||
| "policy" = "p-" | ||
| "group" = "g-" | ||
| "security-group" = "" # "sg-" | ||
| # VPC | ||
| "vpc" = "" | ||
| "dhcp-options" = "" | ||
| "vpc-peer" = "vpcp-" | ||
| "route-table" = "route-" | ||
| "subnet" = "" | ||
| "vpc-endpoint" = "vpce-" | ||
| "elastic-ip" = "eip-" | ||
| "nat-gateway" = "nat-" | ||
| "internet-gateway" = "igw-" | ||
| "network-acl" = "nacl-" | ||
| "customer-gateway" = "cgw-" | ||
| "vpn-gateway" = "vpcg-" | ||
| "vpn-connection" = "vpn_" | ||
| "log-group" = "lg-" | ||
| "log-stream" = "lgs-" | ||
| # EKS | ||
| "eks" = "eks-" | ||
| "eks-s3" = "v-s3-eks-" | ||
| "eks-user" = "s-eks-" | ||
| "eks-role" = "r-eks-" | ||
| "eks-policy" = "p-eks-" | ||
| "eks-security-group" = "eks-sg-" # "sg-eks-" | ||
| "event-rule" = "eks-ev-" | ||
| "eks-queue" = "eks-q-" | ||
| } | ||
| } |