Skip to content

Commit 720a1cc

Browse files
authored
Generate layer arn for cdk (#178)
*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 9f25f58 commit 720a1cc

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
@@ -186,6 +186,16 @@ jobs:
186186
echo "}" >> layer_arns.tf
187187
terraform fmt layer_arns.tf
188188
cat layer_arns.tf
189+
- name: generate layer ARN constants for CDK
190+
working-directory: ${{ env.LAYER_NAME }}
191+
run: |
192+
echo "{" > ../layer_cdk
193+
for file in *; do
194+
read arn < "$file"
195+
echo " \"$file\": \"$arn\"," >> ../layer_cdk
196+
done
197+
echo "}" >> ../layer_cdk
198+
cat ../layer_cdk
189199
- name: download layer.zip
190200
uses: actions/download-artifact@v4
191201
with:

0 commit comments

Comments
 (0)