-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #209 from jianzs/feat-website-resource
feat: add new Website resource type
- Loading branch information
Showing
35 changed files
with
959 additions
and
201 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
"@plutolang/pulumi-adapter": patch | ||
--- | ||
|
||
feat(adapter): add `projectRoot` to Pulumi config for path resolution | ||
|
||
This commit adds the `projectRoot` setting to the Pulumi configuration by default. This feature improves the accuracy of relative path resolution for resource creation, like a Website. With the `projectRoot` available, the infra SDK can correctly resolve paths given by the user relative to the project's base directory. For instance, creating a Website resource with a path parameter relative to the project root is now possible as demonstrated: | ||
|
||
```typescript | ||
const website = new Website("./public"); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
"@plutolang/pluto-infra": patch | ||
"@plutolang/pluto": patch | ||
--- | ||
|
||
feat(sdk): add Website resource type |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
"@plutolang/pyright-deducer": patch | ||
"@plutolang/static-deducer": patch | ||
--- | ||
|
||
feat(deducer): allow using direct captured properties as arguments in infra API | ||
|
||
This change introduces the ability to use direct captured properties as arguments in infrastructure API calls. For instance, the code below is now considered valid: | ||
|
||
```python | ||
from pluto_client import Website, Router | ||
|
||
router = Router("router") | ||
website = Website(path="path/to/website", name="website") | ||
|
||
website.addEnv("ROUTER", router.url()) | ||
``` | ||
|
||
In this example, `router.url()` is a direct captured property which the website utilizes to establish a connection to the backend service. | ||
|
||
The goal is for the infrastructure API to accept both direct captured properties and variables assigned with these properties, as demonstrated here: | ||
|
||
```python | ||
from pluto_client import Website, Router | ||
|
||
router = Router("router") | ||
website = Website(path="path/to/website", name="website") | ||
|
||
router_url = router.url() | ||
website.addEnv("ROUTER", router_url) | ||
``` | ||
|
||
Currently, the API only accepts direct captured properties as arguments. Future updates will include support for variables that store the return values of these properties. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
"@plutolang/pluto-infra": patch | ||
--- | ||
|
||
chore(sdk): upgrade @pulumi/aws to support Python 3.12 in Lambda | ||
|
||
Upgraded `@pulumi/aws` version from 6.4.1 to 6.34.1 to ensure compatibility with the Python 3.12 runtime in AWS Lambda functions. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.