-
Notifications
You must be signed in to change notification settings - Fork 1
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
Plugin(AWS): Design AWS resource groups for Nitric Stacks #127
Comments
Pulumi resource group documentation: In essence they appear to be an index of common AWS resources. So assuming we properly tag deployed resources we can associate them to a particular stack within an AWS account: All resources withing a nitric stack: const test = new aws.resourcegroups.Group("test", {
resourceQuery: {
query: `{
"TagFilters": [
{
"Key": "x-nitric-stack",
"Values": ["my-stack"]
}
]
}
`,
},
}); All collection (dynamodb) resources within a stack: const test = new aws.resourcegroups.Group("test", {
resourceQuery: {
query: `{
"ResourceTypeFilters": [
"AWS::DynamoDb::Table"
],
"TagFilters": [
{
"Key": "x-nitric-stack",
"Values": ["my-stack"]
}
]
}
`,
},
}); |
List of supported AWS resources: Note that resource groups can also be in resource groups, which allows us to get up to all sorts of shenanigans :). |
Initial thoughts for a basic design: Add stages as a concept for AWS deployments (other clouds currently handle this by project segregation). The stage will be some valid string that will be appended to the stack name at deploy time that will give it a unique name. This will allow two developers for example to deploy the same stack to the same AWS account under two different stage names. All resources are tagged with the name of the stack they were deployed for: We deploy a top level resource group that allows that aggregates stack resource groups under a single group, with a name of the stack. We could also flatten deployed resources under this group as well. We also deploy sub resource groups that belong to the parent resource group that compose a single resource type e.g. collections We include and environment variable for deployed container services in AWS that contains the name of the stack (stackname + stage) to be used when querying for local resources. |
┆Issue is synchronized with this Jira Story by Unito
The text was updated successfully, but these errors were encountered: