Skip to content

Commit

Permalink
Issue 753: Fix examples/sfn/statemachine.yaml to work with Uptest
Browse files Browse the repository at this point in the history
  • Loading branch information
svscheg committed Jun 30, 2023
1 parent 59cf425 commit 625b1f8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
3 changes: 2 additions & 1 deletion apis/sfn/v1beta1/zz_generated.resolvers.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions apis/sfn/v1beta1/zz_statemachine_types.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 7 additions & 2 deletions config/sfn/config.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
package sfn

import "github.com/upbound/upjet/pkg/config"
import (
"github.com/upbound/upjet/pkg/config"

"github.com/upbound/provider-aws/config/common"
)

// Configure adds configurations for sfn group.
func Configure(p *config.Provider) {
p.AddResourceConfigurator("aws_sfn_state_machine", func(r *config.Resource) {
r.References["role_arn"] = config.Reference{
Type: "github.com/upbound/provider-aws/apis/iam/v1beta1.Role",
Type: "github.com/upbound/provider-aws/apis/iam/v1beta1.Role",
Extractor: common.PathARNExtractor,
}
})
}

0 comments on commit 625b1f8

Please sign in to comment.