Skip to content

Commit 524396b

Browse files
Collect properties in addition to tags.
1 parent d65d92c commit 524396b

9 files changed

Lines changed: 1085 additions & 4 deletions

File tree

.github/workflows/test.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
spec:
15+
- spec/lambda/firehose_metrics_tag_enrichment_spec.rb
16+
- spec/lambda/firehose_logs_tag_enrichment_spec.rb
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- uses: ruby/setup-ruby@v1
21+
with:
22+
ruby-version: '3.2'
23+
bundler-cache: true
24+
25+
- name: Run tests
26+
run: bundle exec rspec ${{ matrix.spec }} --format documentation

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
# OS
22
.DS_Store
3-
Thumbs.db
3+
Thumbs.db
4+
5+
.claude/

Gemfile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# frozen_string_literal: true
2+
3+
source 'https://rubygems.org'
4+
5+
# Lambda runtime dependencies
6+
gem 'aws-sdk-ec2'
7+
gem 'aws-sdk-lambda'
8+
gem 'aws-sdk-rds'
9+
gem 'aws-sdk-resourcegroupstaggingapi'
10+
gem 'rexml' # Required by AWS SDK for XML parsing
11+
12+
group :test do
13+
gem 'rspec'
14+
end

Gemfile.lock

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
aws-eventstream (1.4.0)
5+
aws-partitions (1.1200.0)
6+
aws-sdk-core (3.241.0)
7+
aws-eventstream (~> 1, >= 1.3.0)
8+
aws-partitions (~> 1, >= 1.992.0)
9+
aws-sigv4 (~> 1.9)
10+
base64
11+
bigdecimal
12+
jmespath (~> 1, >= 1.6.1)
13+
logger
14+
aws-sdk-ec2 (1.588.0)
15+
aws-sdk-core (~> 3, >= 3.241.0)
16+
aws-sigv4 (~> 1.5)
17+
aws-sdk-lambda (1.172.0)
18+
aws-sdk-core (~> 3, >= 3.241.0)
19+
aws-sigv4 (~> 1.5)
20+
aws-sdk-rds (1.303.0)
21+
aws-sdk-core (~> 3, >= 3.241.0)
22+
aws-sigv4 (~> 1.5)
23+
aws-sdk-resourcegroupstaggingapi (1.90.0)
24+
aws-sdk-core (~> 3, >= 3.241.0)
25+
aws-sigv4 (~> 1.5)
26+
aws-sigv4 (1.12.1)
27+
aws-eventstream (~> 1, >= 1.0.2)
28+
base64 (0.3.0)
29+
bigdecimal (4.0.1)
30+
diff-lcs (1.6.2)
31+
jmespath (1.6.2)
32+
logger (1.7.0)
33+
rexml (3.4.4)
34+
rspec (3.13.2)
35+
rspec-core (~> 3.13.0)
36+
rspec-expectations (~> 3.13.0)
37+
rspec-mocks (~> 3.13.0)
38+
rspec-core (3.13.6)
39+
rspec-support (~> 3.13.0)
40+
rspec-expectations (3.13.5)
41+
diff-lcs (>= 1.2.0, < 2.0)
42+
rspec-support (~> 3.13.0)
43+
rspec-mocks (3.13.7)
44+
diff-lcs (>= 1.2.0, < 2.0)
45+
rspec-support (~> 3.13.0)
46+
rspec-support (3.13.6)
47+
48+
PLATFORMS
49+
arm64-darwin-24
50+
ruby
51+
52+
DEPENDENCIES
53+
aws-sdk-ec2
54+
aws-sdk-lambda
55+
aws-sdk-rds
56+
aws-sdk-resourcegroupstaggingapi
57+
rexml
58+
rspec
59+
60+
BUNDLED WITH
61+
2.6.9

cloudformation/full/better-stack-full.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,20 @@ Resources:
229229
Effect: Allow
230230
Action:
231231
- ec2:DescribeInstances
232+
- ec2:DescribeVolumes
232233
- ec2:DescribeTags
233234
Resource: '*'
235+
- Sid: RDSDescribe
236+
Effect: Allow
237+
Action:
238+
- rds:DescribeDBInstances
239+
Resource: '*'
240+
- Sid: LambdaDescribe
241+
Effect: Allow
242+
Action:
243+
- lambda:ListFunctions
244+
- lambda:GetFunction
245+
Resource: '*'
234246
Tags:
235247
- Key: Solution
236248
Value: BetterStack

0 commit comments

Comments
 (0)