Skip to content

Commit 528df6c

Browse files
authored
Generate layer arn for cdk (#1073)
*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 c090ce8 commit 528df6c

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
@@ -194,6 +194,16 @@ jobs:
194194
echo "}" >> layer_arns.tf
195195
terraform fmt layer_arns.tf
196196
cat layer_arns.tf
197+
- name: generate layer ARN constants for CDK
198+
working-directory: ${{ env.LAYER_NAME }}
199+
run: |
200+
echo "{" > ../layer_cdk
201+
for file in *; do
202+
read arn < "$file"
203+
echo " \"$file\": \"$arn\"," >> ../layer_cdk
204+
done
205+
echo "}" >> ../layer_cdk
206+
cat ../layer_cdk
197207
- name: download layer.zip
198208
uses: actions/download-artifact@v4
199209
with:

0 commit comments

Comments
 (0)