Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Add CORS options to lambda-function-url releaser #4418

Merged
merged 3 commits into from
Jan 24, 2023

Conversation

jgwhite
Copy link
Contributor

@jgwhite jgwhite commented Jan 18, 2023

Why the change?

Addresses #4233

What’s the plan?

  • Get it working
  • Changelog
  • Make sure docs are decent

What does it look like?

cors-fast.mov

CleanShot 2023-01-24 at 19 33 11@2x

How do I test it?

Try adding CORS config to one of the Lambda examples.

Visit the website preview and verify the docs make sense.

@jgwhite
Copy link
Contributor Author

jgwhite commented Jan 18, 2023

This doesn’t seem to update the function URL CORS config at the moment. More investigation needed.

@jgwhite jgwhite changed the title wip! Add CORS options to lambda-function-url releaser Add CORS options to lambda-function-url releaser Jan 18, 2023
@jgwhite
Copy link
Contributor Author

jgwhite commented Jan 20, 2023

Bit further, but curious behavior when no cors block is specified:

» Performing operation locally
✓ Running release v28
✓ No permissions need to be updated
! error reading from server: EOF

@briancain
Copy link
Member

! error reading from server: EOF

I think that usually means the Waypoint server panicked. If you haven't checked already, you'll find what happened in the server logs I think!

@jgwhite
Copy link
Contributor Author

jgwhite commented Jan 24, 2023

This is now working nicely, but the docs need some love.

Addresses #4233

Co-authored-by: Shirley Xiaolin Xu <xiaolin@hashicorp.com>
Co-authored-by: Britt Gresham <britt@brittg.com>
Co-authored-by: Brian Cain <bcain@hashicorp.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants