Comments (8)
This would also allow a workaround for #617
from ion.
@jayair , since there is a transform
options for Pulumi args you could (breaking) change to transformArgs
and transformOpts
. This will solve the case for multiple resources inside a component and be much clearer (in my opinion).
from ion.
Hmm interesting. We'll need to consider the case when there are multiple resources inside a component.
from ion.
@remembell-root Which opts field are you looking to pass to child resources?
so, aws.sns.Topic only gets { parent } as opts.
Pulumi passes a subset of opts to child resources by default, ie. retainOnDelete
from ion.
In the latest version of SST, u can transform opts like this
new sst.aws.Bucket("MyBucket", {
transform: {
bucket: (args, opts) => {
opts.retainOnDelete = true;
},
},
});
from ion.
@fwang, thanks for implementing this.
I'm sorry, I don't understand why use function transform and not pass the entire opts
from the constructor (as suggested).
from ion.
Cos the bucket component has multiple resources in it
from ion.
@jayair , could you please make notes for next major release to discuss the api change I suggested? It will make my code much cleaner and simpler to understand.
from ion.
Related Issues (20)
- Email Component Does not Validate in AWS
- Too many(?) deploy logs since updating to v0.1.95 HOT 1
- Better support for Jetbrains IDE
- Support for `StackReference`'s
- SST not using provided ACM for redirect hostname
- Redirects are not supported when DNS is disabled
- Provisioned concurrency for lambda
- Docs: component versioning
- Expo cant bundle with sst HOT 2
- Transform errors | Nuxt | Type 'void' is not assignable to type 'undefined'. HOT 1
- API routes in NextJS don't return any data
- SST state and assets S3 buckets fail AWS Security hub
- Remix/SsrSite: allow cloudFrontFunctions custom injections for serverCfFunction & staticCfFunction
- Default Lambda policies not being managed on changes
- Can't create AWS Lambda router: "The parameter origin name must be a domain name."
- Could not open a new TTY when running sst install
- middleware "error": Routing failed. TypeError: globalThis.__import_unsupported is not a function
- Remix Vite Config Resolution Broken in Monorepos HOT 1
- either 'content' (presen t: true) or 'data' (present: false) must be provided - cloudflare HOT 2
- Unable to get environment variables injected into NextJS Site Deployment
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 ion.