Skip to content

Commit

Permalink
Merge pull request #171 from SumoLogic/fy25q1awso
Browse files Browse the repository at this point in the history
Fy25q1awso Release
  • Loading branch information
himsharma01 authored May 17, 2024
2 parents 51d9210 + a28721f commit 2cf5541
Show file tree
Hide file tree
Showing 79 changed files with 12,192 additions and 1,530 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/cf-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: "CF template tests"
on: [workflow_dispatch, pull_request]

jobs:
ValidateLinting:
name: "Validatation (cfn-lint)"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup Cloud Formation Linter with Latest Version
uses: scottbrenner/cfn-lint-action@v2

- name: Print the Cloud Formation Linter Version & run Linter.
run: |
cfn-lint aws-observability/**/*.yaml --ignore-templates aws-observability/**/*TestTemplate.yaml
CFSecurityChecksCheckovt:
name: "Security Checks (checkov)"
runs-on: "ubuntu-latest"
steps:
- name: Checkout repo
uses: actions/checkout@v3

- uses: bridgecrewio/checkov-action@master
with:
directory: 'aws-observability/'
quiet: true
framework: cloudformation
output_format: cli
output_bc_ids: false
skip_check: CKV_AWS_26,CKV_AWS_116,CKV_AWS_117,CKV_AWS_115,CKV_AWS_108,CKV_AWS_173,CKV_AWS_18,CKV_AWS_21,CKV_AWS_109,CKV_AWS_67,CKV_AWS_36,CKV_AWS_35,CKV_AWS_111,CKV_AWS_54,CKV_AWS_56,CKV_AWS_55,CKV_AWS_53

CFSecurityChecksCFNNAG:
name: "Security Checks (cfn-nag)"
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6
- name: Install cfn_nag
run: |
gem install cfn-nag
- name: Validate with cfn_nag
run: |
cfn_nag_scan -i aws-observability --ignore-fatal aws-observability/**/TestTemplate.yaml
continue-on-error: true
47 changes: 47 additions & 0 deletions .github/workflows/tf-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: "TF template tests"
on: [workflow_dispatch, pull_request]

jobs:

ValidateTF:
runs-on: ubuntu-latest
name: "Validatation (format & syntax)"
defaults:
run:
working-directory: ./aws-observability-terraform
steps:
- uses: actions/checkout@v4
name: Checkout source code

- uses: hashicorp/setup-terraform@v3
name: Setup Terraform

- name: Terraform fmt
id: fmt
run: terraform fmt -check -recursive -diff
continue-on-error: true

- name: Terraform Init
id: init
run: terraform init

- name: Terraform Validate
id: validate
run: terraform validate

TFSecurityChecks:
name: "Security Checks (checkov)"
runs-on: "ubuntu-latest"
steps:
- name: Checkout repo
uses: actions/checkout@v3

- uses: bridgecrewio/checkov-action@master
with:
directory: 'aws-observability-terraform/'
quiet: true
framework: terraform
output_format: cli
output_bc_ids: false
download_external_modules: true
skip_check: CKV_AWS_26,CKV_AWS_35,CKV_AWS_67,CKV_AWS_36,CKV_AWS_252,CKV_AWS_158,CKV_AWS_338,CKV_AWS_117,CKV_AWS_115,CKV_AWS_173,CKV_AWS_50,CKV_AWS_241,CKV_AWS_240,CKV2_AWS_6,CKV2_AWS_62,CKV_AWS_144,CKV_AWS_18,CKV_AWS_21,CKV_AWS_145,CKV_TF_1,CKV_AWS_27,CKV_AWS_124,CKV2_AWS_10,CKV_AWS_272,CKV2_AWS_61
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@ dmypy.json
terraform
.terraform
terraform.tfstate
terraform.tfstate.backup
.terraform.lock.hcl
aws-observability-terraform/test/*/test_output
aws-observability-terraform/test/*/test_output.log
aws-observability-terraform/**/.terraform
Expand All @@ -141,3 +143,7 @@ pkg/

# OS stuff
.DS_Store


# pycharm
.idea
10 changes: 6 additions & 4 deletions aws-observability-terraform/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.13.0 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 5.16.2, < 6.0.0 |
| <a name="requirement_random"></a> [random](#requirement\_random) | >= 3.1.0 |
| <a name="requirement_sumologic"></a> [sumologic](#requirement\_sumologic) | >= 2.14.0 |
| <a name="requirement_time"></a> [time](#requirement\_time) | >= 0.7.1 |
| <a name="requirement_sumologic"></a> [sumologic](#requirement\_sumologic) | >= 2.28.3, < 3.0.0 |
| <a name="requirement_time"></a> [time](#requirement\_time) | >= 0.11.1 |

## Providers

| Name | Version |
|------|---------|
| <a name="provider_sumologic"></a> [sumologic](#provider\_sumologic) | 2.26.0 |
| <a name="provider_time"></a> [time](#provider\_time) | 0.9.1 |
| <a name="provider_sumologic"></a> [sumologic](#provider\_sumologic) | 2.28.3 |
| <a name="provider_time"></a> [time](#provider\_time) | 0.11.1 |

## Modules

Expand All @@ -28,6 +28,7 @@
|------|------|
| [sumologic_field.account](https://registry.terraform.io/providers/SumoLogic/sumologic/latest/docs/resources/field) | resource |
| [sumologic_field.accountid](https://registry.terraform.io/providers/SumoLogic/sumologic/latest/docs/resources/field) | resource |
| [sumologic_field.apiid](https://registry.terraform.io/providers/SumoLogic/sumologic/latest/docs/resources/field) | resource |
| [sumologic_field.apiname](https://registry.terraform.io/providers/SumoLogic/sumologic/latest/docs/resources/field) | resource |
| [sumologic_field.cacheclusterid](https://registry.terraform.io/providers/SumoLogic/sumologic/latest/docs/resources/field) | resource |
| [sumologic_field.clustername](https://registry.terraform.io/providers/SumoLogic/sumologic/latest/docs/resources/field) | resource |
Expand All @@ -45,6 +46,7 @@
| [sumologic_field.tablename](https://registry.terraform.io/providers/SumoLogic/sumologic/latest/docs/resources/field) | resource |
| [sumologic_field.topicname](https://registry.terraform.io/providers/SumoLogic/sumologic/latest/docs/resources/field) | resource |
| [sumologic_field_extraction_rule.AwsObservabilityAlbAccessLogsFER](https://registry.terraform.io/providers/SumoLogic/sumologic/latest/docs/resources/field_extraction_rule) | resource |
| [sumologic_field_extraction_rule.AwsObservabilityApiGatewayAccessLogsFER](https://registry.terraform.io/providers/SumoLogic/sumologic/latest/docs/resources/field_extraction_rule) | resource |
| [sumologic_field_extraction_rule.AwsObservabilityApiGatewayCloudTrailLogsFER](https://registry.terraform.io/providers/SumoLogic/sumologic/latest/docs/resources/field_extraction_rule) | resource |
| [sumologic_field_extraction_rule.AwsObservabilityDynamoDBCloudTrailLogsFER](https://registry.terraform.io/providers/SumoLogic/sumologic/latest/docs/resources/field_extraction_rule) | resource |
| [sumologic_field_extraction_rule.AwsObservabilityEC2CloudTrailLogsFER](https://registry.terraform.io/providers/SumoLogic/sumologic/latest/docs/resources/field_extraction_rule) | resource |
Expand Down
5 changes: 3 additions & 2 deletions aws-observability-terraform/app-modules/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
|------|---------|
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.13.0 |
| <a name="requirement_null"></a> [null](#requirement\_null) | >= 2.1 |
| <a name="requirement_sumologic"></a> [sumologic](#requirement\_sumologic) | >= 2.14.0 |
| <a name="requirement_sumologic"></a> [sumologic](#requirement\_sumologic) | >= 2.28.3, < 3.0.0 |

## Providers

| Name | Version |
|------|---------|
| <a name="provider_sumologic"></a> [sumologic](#provider\_sumologic) | >= 2.14.0 |
| <a name="provider_sumologic"></a> [sumologic](#provider\_sumologic) | >= 2.28.3, < 3.0.0 |
| <a name="provider_time"></a> [time](#provider\_time) | n/a |

## Modules
Expand Down Expand Up @@ -117,6 +117,7 @@
| <a name="output_sumologic_field_sns"></a> [sumologic\_field\_sns](#output\_sumologic\_field\_sns) | This output contains fields required for sns app. |
| <a name="output_sumologic_field_sqs"></a> [sumologic\_field\_sqs](#output\_sumologic\_field\_sqs) | This output contains fields required for sqs app. |
| <a name="output_sumologic_hierarchy"></a> [sumologic\_hierarchy](#output\_sumologic\_hierarchy) | This output contains Sumologic Hierarchy. |
| <a name="output_sumologic_metric_rules_api_gw"></a> [sumologic\_metric\_rules\_api\_gw](#output\_sumologic\_metric\_rules\_api\_gw) | This output contains metric rules required for api gateway app. |
| <a name="output_sumologic_metric_rules_nlb"></a> [sumologic\_metric\_rules\_nlb](#output\_sumologic\_metric\_rules\_nlb) | This output contains metric rules required for nlb app. |
| <a name="output_sumologic_metric_rules_rds"></a> [sumologic\_metric\_rules\_rds](#output\_sumologic\_metric\_rules\_rds) | This output contains metric rules required for rds app. |
| <a name="output_sumologic_monitors_folder"></a> [sumologic\_monitors\_folder](#output\_sumologic\_monitors\_folder) | This output contains AWS Observability Monitors folder. |
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,4 @@ No resources.
| <a name="output_sumologic_content"></a> [sumologic\_content](#output\_sumologic\_content) | This output contains apigateway App. |
| <a name="output_sumologic_field"></a> [sumologic\_field](#output\_sumologic\_field) | This output contains fields required for apigateway app. |
| <a name="output_sumologic_field_extraction_rule"></a> [sumologic\_field\_extraction\_rule](#output\_sumologic\_field\_extraction\_rule) | This output contains Field Extraction rules required for apigateway app. |
| <a name="output_sumologic_metric_rules"></a> [sumologic\_metric\_rules](#output\_sumologic\_metric\_rules) | This output contains metric rules required for nlb app. |
Loading

0 comments on commit 2cf5541

Please sign in to comment.