-
Notifications
You must be signed in to change notification settings - Fork 201
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Story: Infrastructure Customizations #493
Comments
See discussion #868 started by @schosterbarak about "hosting" Wing apps within existing "environments". Example use case: I have a VPC that is already defined elsewhere (be it through IAC or manually), and I want all my Wing resources to be deployed into this VPC. That's a classic non-functional aspect of the deployment that we want to support. |
Could be useful to have a set of pre-defined policies that track with well-architected principles, but with different levels of resiliency or security: Thinking of something like "well-architected t-shirt sizing": Even small would have key best practices around least access/privledge, but when it comes to other areas that have cost implications, it's 'lighter' on the configs: medium - for production-style workloads large - for Enterprise/X-Region needs |
Once this is implemented we will need to update the temporary solution in #1162 (azure location) using env variable to retrieve location app prop for Azure |
Just initial thoughts so far. The goal: provide a plugin system that allows users wing to provide non-functional requirements to their wing applications. [Rendered Version](https://github.com/winglang/wing/blob/hasanaburayyan/wing-plugin-system/docs/05-rfcs/2023-01-21-wing-plugins.md) Resolves #493 *By submitting this pull request, I confirm that my contribution is made under the terms of the [Monada Contribution License](https://docs.winglang.io/terms-and-policies/contribution-license.html)*.
Congrats! 🚀 This was released in Wing 0.5.8. |
Upgrades project dependencies. See details in [workflow run]. [Workflow Run]: https://github.com/winglang/console/actions/runs/4882222919 ------ *Automatically created via the "upgrade" workflow.* Signed-off-by: monadabot <monabot@monada.co>
Summary
Apply non-functional infrastructure concerns on Wing apps using declarative, policy-driven syntax.
Feature Spec
(hypothetical readme)
You can use wing policy files to apply infrastructure policies to your wing applications during compilation.
Use the
--policy
switch in the compiler to tell the compiler which policy to use. For example:Where
my-policy.wp
is (this is just a mock up):The policy file is a bit like a CSS file. It selects which elements in the Terraform output to work on and then applies a bunch of attributes on it. This rule selects all
aws_s3_bucket
resources (hence the*
) and enables versioning on the bucket.Use Cases
s3:putObject
operations.The text was updated successfully, but these errors were encountered: