Skip to content

Commit 24085bd

Browse files
authored
Generate layer arn for cdk (#353)
*Issue #, if available:* Adding another layer arn structure that works with typescript *Testing* https://github.com/aws-observability/aws-otel-python-instrumentation/actions/runs/14502949412/job/40686703733 By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
1 parent 7b8e086 commit 24085bd

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/release-lambda.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,16 @@ jobs:
182182
echo "}" >> layer_arns.tf
183183
terraform fmt layer_arns.tf
184184
cat layer_arns.tf
185+
- name: generate layer ARN constants for CDK
186+
working-directory: ${{ env.LAYER_NAME }}
187+
run: |
188+
echo "{" > ../layer_cdk
189+
for file in *; do
190+
read arn < "$file"
191+
echo " \"$file\": \"$arn\"," >> ../layer_cdk
192+
done
193+
echo "}" >> ../layer_cdk
194+
cat ../layer_cdk
185195
- name: download layer.zip
186196
uses: actions/download-artifact@v4
187197
with:

0 commit comments

Comments
 (0)