Skip to content

Commit 513cb10

Browse files
authored
Merge pull request #1806 from aws-observability/mergerel
Merge release/v0.45.x to terraform
2 parents 422515f + a9ccf06 commit 513cb10

6 files changed

Lines changed: 57 additions & 64 deletions

File tree

Lines changed: 34 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -1,81 +1,58 @@
1-
# For most projects, this workflow file will not need changing; you simply need
2-
# to commit it to your repository.
3-
#
4-
# You may wish to alter this file to override the set of languages analyzed,
5-
# or to provide custom queries or build logic.
6-
#
7-
# ******** NOTE ********
8-
# We have attempted to detect the languages in your repository. Please check
9-
# the `language` matrix defined below to confirm you have the correct set of
10-
# supported CodeQL languages.
11-
#
121
name: "CodeQL"
132

143
on:
154
push:
165
branches: [ terraform ]
176
pull_request:
18-
# The branches below must be a subset of the branches above
197
branches: [ terraform ]
208
schedule:
219
- cron: '18 17 * * 6'
2210

2311
jobs:
24-
fomrat:
12+
format:
2513
name: Format
2614
runs-on: ubuntu-latest
2715
steps:
28-
- name: Checkout
29-
uses: actions/checkout@v4
30-
- name: Setup Terraform
31-
uses: hashicorp/setup-terraform@v2
32-
with:
33-
terraform_version: '1.10.3'
34-
- name: Format Terraform
35-
run: cd terraform && make check-fmt
16+
- name: Checkout
17+
uses: actions/checkout@v4
18+
- name: Setup Terraform
19+
uses: hashicorp/setup-terraform@v2
20+
with:
21+
terraform_version: '1.10.3'
22+
- name: Format Terraform
23+
run: cd terraform && make check-fmt
3624

3725
analyze:
3826
name: Analyze
3927
runs-on: ubuntu-latest
28+
permissions:
29+
security-events: write
30+
actions: read
31+
contents: read
4032

4133
strategy:
4234
fail-fast: false
4335
matrix:
44-
language: [ 'go', 'java', 'python' ]
45-
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
46-
# Learn more:
47-
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
36+
language: [ 'java' ]
4837

4938
steps:
50-
- name: Checkout repository
51-
uses: actions/checkout@v4
52-
53-
# Initializes the CodeQL tools for scanning.
54-
- name: Initialize CodeQL
55-
uses: github/codeql-action/init@v3
56-
with:
57-
languages: ${{ matrix.language }}
58-
# If you wish to specify custom queries, you can do so here or in a config file.
59-
# By default, queries listed here will override any specified in a config file.
60-
# Prefix the list here with "+" to use these queries and those in the config file.
61-
# queries: ./path/to/local/query, your-org/your-repo/queries@main
62-
63-
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
64-
# If this step fails, then you should remove it and run the build manually (see below)
65-
- name: Autobuild
66-
if: matrix.language != 'java'
67-
uses: github/codeql-action/autobuild@v3
68-
69-
# ℹ️ Command-line programs to run using the OS shell.
70-
# 📚 https://git.io/JvXDl
71-
72-
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
73-
# and modify them (or add more) to build your code if your project
74-
# uses a compiled language
75-
76-
- run: |
77-
./gradlew build
78-
if: matrix.language == 'java'
79-
80-
- name: Perform CodeQL Analysis
81-
uses: github/codeql-action/analyze@v3
39+
- name: Checkout repository
40+
uses: actions/checkout@v4
41+
42+
- name: Setup Java
43+
uses: actions/setup-java@v3
44+
with:
45+
distribution: 'temurin'
46+
java-version: '11'
47+
48+
- name: Initialize CodeQL
49+
uses: github/codeql-action/init@v3
50+
with:
51+
languages: ${{ matrix.language }}
52+
53+
- name: Build Java
54+
run: |
55+
./gradlew build
56+
57+
- name: Perform CodeQL Analysis
58+
uses: github/codeql-action/analyze@v3

terraform/eks/memcached-service/memcached.tf

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,22 @@ resource "helm_release" "bitnami" {
3535
chart = "memcached"
3636
version = "5.8.1"
3737

38+
set {
39+
name = "image.repository"
40+
value = "bitnamilegacy/memcached"
41+
}
42+
set {
43+
name = "image.tag"
44+
value = "1.6.23-debian-11-r9"
45+
}
46+
set {
47+
name = "metrics.image.repository"
48+
value = "bitnamilegacy/memcached-exporter"
49+
}
50+
set {
51+
name = "metrics.image.tag"
52+
value = "0.14.2-debian-11-r9"
53+
}
3854
set {
3955
name = "metrics.enabled"
4056
value = "true"

terraform/eks/otlp.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@ resource "kubernetes_config_map" "aoc_config_map" {
130130

131131
data = {
132132
"aoc-config.yml" = module.basic_components.0.otconfig_content
133-
"client.qps" = "100"
134-
"client.burst" = "400"
133+
"client.qps" = "100"
134+
"client.burst" = "400"
135135
}
136136
depends_on = [kubernetes_service_account.sample-app-sa]
137137
}

terraform/eks/otlp/versions.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ terraform {
99
kubernetes = {
1010
version = "2.36.0"
1111
}
12-
helm ={
13-
source = "hashicorp/helm"
12+
helm = {
13+
source = "hashicorp/helm"
1414
version = "2.17.0"
1515
}
1616
kubectl = {

terraform/eks/versions.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ terraform {
99
kubernetes = {
1010
version = "2.36.0"
1111
}
12-
helm ={
13-
source = "hashicorp/helm"
12+
helm = {
13+
source = "hashicorp/helm"
1414
version = "2.17.0"
1515
}
1616
kubectl = {

terraform/testcases/otlp_mock/parameters.tfvars

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ sample_app = "spark"
55

66
sample_app_image = "public.ecr.aws/aws-otel-test/aws-otel-java-spark:f3c87ee4c0e3fc7cd8bf6d0eb7d8e570f75ae6dc"
77

8-
mock_endpoint ="mocked-server:443/put-data"
8+
mock_endpoint = "mocked-server:443/put-data"

0 commit comments

Comments
 (0)