gifted-gigabyte-53859
11/07/2024, 2:04 AM##
# Frontend/App
# Serve the frontend from an S3 bucket, while keeping the bucket private.
api_app:
type: aws-apigateway:RestAPI
options:
version: 2.6.1
properties:
description: ${pulumi.stack} # requires 2.4.0 or above
stageName: ${pulumi.stack}
disableExecuteApiEndpoint: true # requires 2.4.0 or above
routes:
# <https://www.pulumi.com/registry/packages/aws-apigateway/api-docs/restapi/#target>
- localPath: ${confFrontendCompiledFilesPath}
method: GET
path: /
This creates the following:
├─ aws-apigateway:index:RestAPI api_app
│ ├─ aws:s3/bucket:Bucket apiapp
│ ├─ aws:iam/role:Role api_app4c238266
│ ├─ aws:apigateway/restApi:RestApi api_app
│ ├─ aws:iam/rolePolicyAttachment:RolePolicyAttachment api_app4c238266
│ ├─ aws:s3/bucketObject:BucketObject api_app4c238266/vite.svg
│ ├─ aws:s3/bucketObject:BucketObject api_app4c238266/cko.png
│ ├─ aws:s3/bucketObject:BucketObject api_app4c238266/favicon.ico
│ ├─ aws:s3/bucketObject:BucketObject api_app4c238266/pin-logo-shopify-app.png
│ ├─ aws:s3/bucketObject:BucketObject api_app4c238266/assets/index-ab88d369.css
│ ├─ aws:s3/bucketObject:BucketObject api_app4c238266/index.html
│ ├─ aws:apigateway/deployment:Deployment api_app
│ ├─ aws:s3/bucketObject:BucketObject api_app4c238266/assets/index-1e57b74b.js
I want to get this filename somehow: assets/index-1e57b74b.js
So that I can pass it to a test that checks headers etc.
It's easy to do for other things that I create explicitly, but crosswalk is creating this s3 bucket and the resources in it. So unsure how to refer to them