Skip to content

Commit

Permalink
amending Readme.md (#3)
Browse files Browse the repository at this point in the history
adding s3 dashboard module

renaming variable.tf

CCL-898 json config

updating visual config

updating width of tiles

adding .github

adding .github

adding .github

CCL-898  golden dashboards

CCL-898 added mks dashboards

CCL-898 latest

CCL-898-test latest classic dashboards

adding varibales file

amending README file

adding varibles

correcting readme file

removing .ided/,DSstore etc

removing .ided/,DSstore etc

moving terraform files into root folder

chaning workflow name

chaning workflow name

adding cloudfront and ES dashbaords (#5)

adding new dashboards

adding new dashboards

adding cloudfront and ES dashbaords (#6)

adding new dashboards

adding new dashboards

adding new dashboards

adding new dashboards

adding new dashboards

adding new dashboards

adding new dashboards

adding new dashboards

CCL-827added dyntarce metrics and anomolies

revert

adding variables

adding alerts and events.tf
  • Loading branch information
MOHAMMED-ho committed Nov 12, 2024
1 parent f09fb34 commit 332ea72
Show file tree
Hide file tree
Showing 17 changed files with 5,011 additions and 1 deletion.
24 changes: 24 additions & 0 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
commit-message:
prefix: "(GHA)"
reviewers:
- "UKHomeOffice/core-cloud-devops"
labels:
- "dependencies"
- "patch"
- package-ecosystem: "terraform"
directory: "/"
schedule:
interval: "daily"
commit-message:
prefix: "(TF)"
reviewers:
- "UKHomeOffice/core-cloud-devops"
labels:
- "dependencies"
- "patch"
26 changes: 26 additions & 0 deletions .github/workflows/pull-request-sast.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Validate Terraform with Trivy

on:
push:
branches:
- main
pull_request:

permissions:
contents: read

jobs:
RunTerraformValidation:
name: Scan Terraform Config
runs-on: ubuntu-latest

steps:
- name: Clone the Repository
uses: actions/checkout@v4

# Results have to be a table as the organisation does not have Advanced Security license.
- name: Scan Terraform Config
uses: aquasecurity/trivy-action@0.19.0
with:
scan-type: 'config'
exit-code: '1'
39 changes: 39 additions & 0 deletions .github/workflows/pull-request-semver-label-check.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: 'Check PR for SemVer Label'
on:
pull_request:
types:
- labeled
- unlabeled
- opened
- reopened
- synchronize
branches:
- main

permissions:
pull-requests: read
contents: read

jobs:
semver-check:
name: 'Check PR for SemVer Label'
if: |
contains(github.event.pull_request.labels.*.name, 'skip-release') == false
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Parse the SemVer label
id: label
uses: UKHomeOffice/match-label-action@v1
with:
labels: minor,major,patch
mode: singular

- name: Calculate SemVer value
id: calculate
uses: UKHomeOffice/semver-calculate-action@v2
with:
increment: ${{ steps.label.outputs.matchedLabels }}
github_token: ${{ secrets.GITHUB_TOKEN }}
46 changes: 46 additions & 0 deletions .github/workflows/pull-request-semver-tag-merge.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: 'SemVer Tag on Main Merge'
on:
pull_request:
types:
- closed
branches:
- main

permissions:
pull-requests: read
contents: write

concurrency:
group: ${{ github.workflow }}
cancel-in-progress: false

jobs:
semver-tag:
name: 'Tag Repository with SemVer'
if: |
github.event.pull_request.merged == true &&
contains(github.event.pull_request.labels.*.name, 'skip-release') == false
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Parse the SemVer label
id: label
uses: UKHomeOffice/match-label-action@v1
with:
labels: minor,major,patch
mode: singular

- name: Calculate SemVer value
id: calculate
uses: UKHomeOffice/semver-calculate-action@v2
with:
increment: ${{ steps.label.outputs.matchedLabels }}
github_token: ${{ secrets.GITHUB_TOKEN }}

- name: Tag Repository
uses: UKHomeOffice/semver-tag-action@v4
with:
tag: ${{ steps.calculate.outputs.version }}
github_token: ${{ secrets.GITHUB_TOKEN }}
43 changes: 43 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Local .terraform directories
**/.terraform/*

**/.terraform*
**/.terragrunt*

# .tfstate files
*.tfstate
*.tfstate.*

# Crash log files
crash.log
crash.*.log

# Exclude all .tfvars files, which are likely to contain sensitive data, such as
# password, private keys, and other secrets. These should not be part of version
# control as they are data points which are potentially sensitive and subject
# to change depending on the environment.
*.tfvars
*.tfvars.json

# Ignore override files as they are usually used to override resources locally and so
# are not checked in
override.tf
override.tf.json
*_override.tf
*_override.tf.json

# Include override files you do wish to add to version control using negated pattern
# !example_override.tf

# Include tfplan files to ignore the plan output of command: terraform plan -out=tfplan
# example: *tfplan*

# Ignore CLI configuration files
.terraformrc
terraform.rc

*.env

__dont_track*

.DS_Store
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
# core-cloud-dynatrace-golden-dashboards-terraform
Note: as we dont have any metrics in Dynatarce as of yet, these templates do not contain the dimensions for now, these will be updated once we have got metrics coming into dynatrace.
Loading

0 comments on commit 332ea72

Please sign in to comment.