Comments (3)
Out of curiosity what's the use case for using a specific bucket name? On AWS all buckets globally must have unique names, so any fixed name you choose in your Wing source code would only be able to be used once (and it would cause issues if you are trying to define a reusable library or deploy your app to multiple environments).
Maybe it makes sense to support this through a platform parameter instead?
from wing.
I was working on recreating a blog post that used a bucket as the source of images
But even when I was using bucket before, it was convenient to have names especially when they where public. It is true the I had buckets prefixed with the environment.
Do you mind showing how this will work with platform parameters, I am interested seeing a simple solution for such a common requirement
from wing.
Do you mind showing how this will work with platform parameters, I am interested seeing a simple solution for such a common requirement
It would be simple to add custom prefix to a bucket using platform parameters, i.e. you could have a wing.toml
with something like
[ my-tf-aws-platform ]
bucket_prefix = "blah"
And then just a simple hook on newInstance
that adds this to instances of buckets
However if your naming conventions or even desired full name is different per bucket, then this is not ideal for platform parameters, as it becomes very obscure and the platform code becomes tightly coupled to your Wing code.
Im not sure of the use case for specifying full names of bucket, I know it can definitely cause issues as @Chriscbr mentioned with libraries.
I know there are certain types of patterns where naming buckets matter, like very simple static sites hosted in s3 sometimes will use a www.xxxx.com
naming convention.
from wing.
Related Issues (20)
- Autocomplete breaks inside nested struct fields within if blocks
- Update docusaurus version to 3.x.x from 2.x.x HOT 1
- Animate node expanding/collapsing transitions
- Change direction connections from parent to child so they go from left to right HOT 2
- Allow filtering the logs by the selected node automatically HOT 3
- Add ability to specify a timeout for `http` methods HOT 3
- `aws.region` API HOT 2
- Improve Console endpoints UI HOT 1
- Console not showing compilation errors HOT 3
- Console allows resource interactions while app is loading
- wing test -t sim stopped working after wing update HOT 1
- cdk8s winglib platfrom error when trying to get root node
- RevitalB Test
- Revital's second test
- Omit connections that start from hidden nodes HOT 1
- Automatically center node when it is expanded
- Console: Test runner fails when running more than one test at a time
- Cleaning `root` and `root/Default` from all user-facing data
- New API section in the docs
- Notify Wing console users a new version of the console is out
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wing.