Skip to content

Commit dd81247

Browse files
committed
feat: Add cloudformation types
1 parent 9c9937f commit dd81247

4 files changed

Lines changed: 30 additions & 0 deletions

File tree

pkg/tree/aws/aws.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66
"github.com/infracost/go-proto/pkg/tree/aws/apigateway"
77
"github.com/infracost/go-proto/pkg/tree/aws/apigatewayv2"
88
"github.com/infracost/go-proto/pkg/tree/aws/appautoscaling"
9+
"github.com/infracost/go-proto/pkg/tree/aws/cloudformation"
910
"github.com/infracost/go-proto/pkg/tree/aws/ec2"
1011
)
1112

@@ -16,6 +17,7 @@ type AWS struct {
1617
APIGateway apigateway.APIGateway `tree:"apigateway"`
1718
APIGatewayV2 apigatewayv2.APIGatewayV2 `tree:"apigatewayv2"`
1819
AppAutoScaling appautoscaling.AppAutoScaling `tree:"appautoscaling"`
20+
CloudFormation cloudformation.CloudFormation `tree:"cloudformation"`
1921
}
2022

2123
func (aws *AWS) PostProcess() {
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
package cloudformation
2+
3+
type CloudFormation struct {
4+
Stacks []Stack `tree:"stacks,flatten"`
5+
StackSets []StackSet `tree:"stack_sets,flatten"`
6+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package cloudformation
2+
3+
import (
4+
"github.com/infracost/go-proto/pkg/tree/resource"
5+
"github.com/infracost/go-proto/pkg/tree/value"
6+
)
7+
8+
type Stack struct {
9+
resource.Resource `tree:"-"`
10+
TemplateBody value.String `tree:"template_body"`
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package cloudformation
2+
3+
import (
4+
"github.com/infracost/go-proto/pkg/tree/resource"
5+
"github.com/infracost/go-proto/pkg/tree/value"
6+
)
7+
8+
type StackSet struct {
9+
resource.Resource `tree:"-"`
10+
TemplateBody value.String `tree:"template_body"`
11+
}

0 commit comments

Comments
 (0)