Skip to content
This repository has been archived by the owner on Mar 2, 2024. It is now read-only.

[NOTASK] Update goformation dependency that has breaking changes #310

Merged
merged 3 commits into from
Feb 12, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ require (
github.com/Shopify/logrus-bugsnag v0.0.0-20171204204709-577dee27f20d // indirect
github.com/andreyvit/diff v0.0.0-20170406064948-c7f18ee00883
github.com/apparentlymart/go-cidr v1.1.0
github.com/aws/aws-sdk-go v1.37.8
github.com/awslabs/goformation/v4 v4.13.1
github.com/aws/aws-sdk-go v1.37.9
github.com/awslabs/goformation/v4 v4.16.2
github.com/bitly/go-simplejson v0.5.0 // indirect
github.com/bmizerany/assert v0.0.0-20160611221934-b7ed37b82869
github.com/bshuster-repo/logrus-logstash-hook v1.0.0 // indirect
Expand Down Expand Up @@ -68,7 +68,6 @@ require (
github.com/mitchellh/mapstructure v1.3.3 // indirect
github.com/mitchellh/reflectwalk v1.0.1 // indirect
github.com/moby/sys/mount v0.2.0 // indirect
github.com/onsi/ginkgo v1.13.0 // indirect
github.com/opencontainers/selinux v1.8.0 // indirect
github.com/ory/dockertest v3.3.5+incompatible
github.com/oslokommune/kaex v0.1.7
Expand All @@ -78,11 +77,12 @@ require (
github.com/rancher/k3d/v3 v3.4.0
github.com/rogpeppe/go-internal v1.6.1 // indirect
github.com/sanity-io/litter v1.5.0
github.com/sclevine/agouti v3.0.0+incompatible // indirect
github.com/sebdah/goldie/v2 v2.5.3
github.com/sirupsen/logrus v1.7.0
github.com/smartystreets/assertions v1.0.0 // indirect
github.com/spf13/afero v1.5.1
github.com/spf13/cobra v1.1.2
github.com/spf13/cobra v1.1.3
github.com/spf13/jwalterweatherman v1.1.0 // indirect
github.com/spf13/pflag v1.0.5
github.com/spf13/viper v1.7.1
Expand Down
9 changes: 9 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,14 @@ github.com/aws/aws-sdk-go v1.27.0/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpiN
github.com/aws/aws-sdk-go v1.30.0/go.mod h1:5zCpMtNQVjRREroY7sYe8lOMRSxkhG6MZveU8YkpAk0=
github.com/aws/aws-sdk-go v1.37.8 h1:9kywcbuz6vQuTf+FD+U7FshafrHzmqUCjgAEiLuIJ8U=
github.com/aws/aws-sdk-go v1.37.8/go.mod h1:hcU610XS61/+aQV88ixoOzUoG7v3b31pl2zKMmprdro=
github.com/aws/aws-sdk-go v1.37.9 h1:sgRbr+heubkgSwkn9fQMF80l9xjXkmhzk9DLdsaYh+c=
github.com/aws/aws-sdk-go v1.37.9/go.mod h1:hcU610XS61/+aQV88ixoOzUoG7v3b31pl2zKMmprdro=
github.com/aws/aws-sdk-go-v2 v0.18.0 h1:qZ+woO4SamnH/eEbjM2IDLhRNwIwND/RQyVlBLp3Jqg=
github.com/aws/aws-sdk-go-v2 v0.18.0/go.mod h1:JWVYvqSMppoMJC0x5wdwiImzgXTI9FuZwxzkQq9wy+g=
github.com/awslabs/goformation/v4 v4.13.1 h1:2bCUG4bqY+PUm2qXmKlt/M9+Hp46fDPnG9cYZuJHs/8=
github.com/awslabs/goformation/v4 v4.13.1/go.mod h1:GcJULxCJfloT+3pbqCluXftdEK2AD/UqpS3hkaaBntg=
github.com/awslabs/goformation/v4 v4.16.2 h1:9efskMOCblsHVOyziNdKTbGO34ZJvkl/eofaX1RWjuI=
github.com/awslabs/goformation/v4 v4.16.2/go.mod h1:dvXlTtMoBzaty3dXROEKRWJJ5ddy0FwUUfVUCEtB+AE=
github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q=
github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8=
github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM=
Expand Down Expand Up @@ -885,6 +889,7 @@ github.com/onsi/ginkgo v1.11.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+
github.com/onsi/ginkgo v1.12.1/go.mod h1:zj2OWP4+oCPe1qIXoGWkgMRwljMUYCdkwsT2108oapk=
github.com/onsi/ginkgo v1.13.0 h1:M76yO2HkZASFjXL0HSoZJ1AYEmQxNJmY41Jx1zNUq1Y=
github.com/onsi/ginkgo v1.13.0/go.mod h1:+REjRxOmWfHCjfv9TTWB1jD1Frx4XydAD3zm1lskyM0=
github.com/onsi/ginkgo v1.14.2/go.mod h1:iSB4RoI2tjJc9BBv4NKIKWKya62Rps+oPG/Lv9klQyY=
github.com/onsi/gomega v0.0.0-20170829124025-dcabb60a477c/go.mod h1:C1qb7wdrVGGVU+Z6iS04AVkA3Q65CEZX59MT0QO5uiA=
github.com/onsi/gomega v1.2.0/go.mod h1:C1qb7wdrVGGVU+Z6iS04AVkA3Q65CEZX59MT0QO5uiA=
github.com/onsi/gomega v1.4.2/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY=
Expand All @@ -894,6 +899,7 @@ github.com/onsi/gomega v1.7.0/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1Cpa
github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY=
github.com/onsi/gomega v1.10.1 h1:o0+MgICZLuZ7xjH7Vx6zS/zcu93/BEp1VwkIW1mEXCE=
github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo=
github.com/onsi/gomega v1.10.4/go.mod h1:g/HbgYopi++010VEqkFgJHKC09uJiW9UkXvMUuKHUCQ=
github.com/op/go-logging v0.0.0-20160315200505-970db520ece7 h1:lDH9UUVJtmYCjyT0CI4q8xvlXPxeZ0gYCVvWbmPlp88=
github.com/op/go-logging v0.0.0-20160315200505-970db520ece7/go.mod h1:HzydrMdWErDVzsI23lYNej1Htcns9BCg93Dk0bBINWk=
github.com/opencontainers/go-digest v0.0.0-20180430190053-c9281466c8b2/go.mod h1:cMLVZDEM3+U2I4VmLI6N8jQYUd2OVphdqWwCJHrFt2s=
Expand Down Expand Up @@ -1076,6 +1082,8 @@ github.com/spf13/cobra v1.1.1 h1:KfztREH0tPxJJ+geloSLaAkaPkr4ki2Er5quFV1TDo4=
github.com/spf13/cobra v1.1.1/go.mod h1:WnodtKOvamDL/PwE2M4iKs8aMDBZ5Q5klgD3qfVJQMI=
github.com/spf13/cobra v1.1.2 h1:frHO75w/dH7kEc+e2KYZZKY4+PLrp39OqI77oB8m0KQ=
github.com/spf13/cobra v1.1.2/go.mod h1:ZjwqWkCg0LnXvLRIfTLdB4Y/MCO3gMHHJ2KFxQZy4xE=
github.com/spf13/cobra v1.1.3 h1:xghbfqPkxzxP3C/f3n5DdpAbdKLj4ZE4BWQI362l53M=
github.com/spf13/cobra v1.1.3/go.mod h1:pGADOWyqRD/YMrPZigI/zbliZ2wVD/23d+is3pSWzOo=
github.com/spf13/jwalterweatherman v0.0.0-20180109140146-7c0cea34c8ec/go.mod h1:cQK4TGJAtQXfYWX+Ddv3mKDzgVb68N+wFjFa4jdeBTo=
github.com/spf13/jwalterweatherman v1.0.0/go.mod h1:cQK4TGJAtQXfYWX+Ddv3mKDzgVb68N+wFjFa4jdeBTo=
github.com/spf13/jwalterweatherman v1.1.0 h1:ue6voC5bR5F8YxI5S67j9i582FU4Qvo2bmqnqMYADFk=
Expand Down Expand Up @@ -1302,6 +1310,7 @@ golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81R
golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA=
golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
golang.org/x/net v0.0.0-20201202161906-c7110b5ffcbb/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
golang.org/x/net v0.0.0-20210119194325-5f4716e94777 h1:003p0dJM77cxMSyCPFphvZf/Y5/NXf5fzg6ufd1/Oew=
golang.org/x/net v0.0.0-20210119194325-5f4716e94777/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
Expand Down
2 changes: 1 addition & 1 deletion pkg/cfn/cfn.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ type Referencer interface {
// after stack creation:
// - https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/outputs-section-structure.html
type StackOutputer interface {
NamedOutputs() map[string]map[string]interface{}
NamedOutputs() map[string]cloudformation.Output
}

// StackBuilder knows how to create a cloud formation stack
Expand Down
2 changes: 1 addition & 1 deletion pkg/cfn/components/certificate/certificate.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type Certificate struct {
}

// NamedOutputs returns the named outputs
func (c Certificate) NamedOutputs() map[string]map[string]interface{} {
func (c Certificate) NamedOutputs() map[string]cloudformation.Output {
return cfn.NewValue(c.Name(), c.Ref()).NamedOutputs()
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/cfn/components/dbsubnetgroup/dbsubnetgroup.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type DBSubnetGroup struct {
}

// NamedOutputs returns the named outputs
func (g *DBSubnetGroup) NamedOutputs() map[string]map[string]interface{} {
func (g *DBSubnetGroup) NamedOutputs() map[string]cloudformation.Output {
return cfn.NewValue("DatabaseSubnetGroupName", g.Ref()).NamedOutputs()
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/cfn/components/hostedzone/hostedzone.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type HostedZone struct {
}

// NamedOutputs returns the named outputs
func (h *HostedZone) NamedOutputs() map[string]map[string]interface{} {
func (h *HostedZone) NamedOutputs() map[string]cloudformation.Output {
return cfn.NewValueMap().
Add(cfn.NewValue(h.Name(), h.Ref())).
// This doesn't work, so we need to patch this after the fact, this
Expand Down
2 changes: 1 addition & 1 deletion pkg/cfn/components/managedpolicy/managedpolicy.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ type ManagedPolicy struct {
// NamedOutputs returns a reference to the logical id of this resource, which
// will contain the ARN of the managed policy:
// - https://docs.amazonaws.cn/en_us/AWSCloudFormation/latest/UserGuide/aws-resource-iam-managedpolicy.html
func (p *ManagedPolicy) NamedOutputs() map[string]map[string]interface{} {
func (p *ManagedPolicy) NamedOutputs() map[string]cloudformation.Output {
return cfn.NewValue(p.Name(), p.Ref()).NamedOutputs()
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/cfn/components/securitygroup/securitygroup.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type SecurityGroup struct {
}

// NamedOutputs returns the outputs commonly used by other stacks or components
func (s *SecurityGroup) NamedOutputs() map[string]map[string]interface{} {
func (s *SecurityGroup) NamedOutputs() map[string]cloudformation.Output {
return cfn.NewValue(s.Name(), s.Ref()).NamedOutputs()
}

Expand Down
4 changes: 2 additions & 2 deletions pkg/cfn/components/subnet/subnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ type Subnets struct {

// NamedOutputs returns the cloud formation outputs commonly
// required for the given subnets
func (s *Subnets) NamedOutputs() map[string]map[string]interface{} {
func (s *Subnets) NamedOutputs() map[string]cloudformation.Output {
private := cfn.NewJoined(DefaultPrivateSubnetsLogicalID)

for _, p := range s.Private {
Expand All @@ -245,7 +245,7 @@ func (s *Subnets) NamedOutputs() map[string]map[string]interface{} {
public.Add(p.Ref())
}

return map[string]map[string]interface{}{
return map[string]cloudformation.Output{
private.Name(): private.Outputs(),
public.Name(): public.Outputs(),
}
Expand Down
32 changes: 26 additions & 6 deletions pkg/cfn/components/userpool/userpool.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,32 @@ type UserPool struct {
}

// NamedOutputs returns the named outputs
func (p *UserPool) NamedOutputs() map[string]map[string]interface{} {
return map[string]map[string]interface{}{
p.Name(): {"Value": p.Ref()},
"Arn": {"Value": cloudformation.GetAtt(p.Name(), "Arn")},
"ProviderName": {"Value": cloudformation.GetAtt(p.Name(), "ProviderName")},
"ProviderURL": {"Value": cloudformation.GetAtt(p.Name(), "ProviderURL")},
func (p *UserPool) NamedOutputs() map[string]cloudformation.Output {
return map[string]cloudformation.Output{
p.Name(): {
Value: p.Ref(),
Export: &cloudformation.Export{
Name: cloudformation.Sub(fmt.Sprintf("${AWS::StackName}-%s", p.Name())),
},
},
"Arn": {
Value: cloudformation.GetAtt(p.Name(), "Arn"),
Export: &cloudformation.Export{
Name: cloudformation.Sub(fmt.Sprintf("${AWS::StackName}-%s", "Arn")),
},
},
"ProviderName": {
Value: cloudformation.GetAtt(p.Name(), "ProviderName"),
Export: &cloudformation.Export{
Name: cloudformation.Sub(fmt.Sprintf("${AWS::StackName}-%s", "ProvideName")),
},
},
"ProviderURL": {
Value: cloudformation.GetAtt(p.Name(), "ProviderURL"),
Export: &cloudformation.Export{
Name: cloudformation.Sub(fmt.Sprintf("${AWS::StackName}-%s", "ProviderURL")),
},
},
}
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/cfn/components/userpoolclient/userpoolclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ type UserPoolClient struct {
}

// NamedOutputs returns the named outputs
func (c *UserPoolClient) NamedOutputs() map[string]map[string]interface{} {
func (c *UserPoolClient) NamedOutputs() map[string]cloudformation.Output {
return cfn.NewValue(fmt.Sprintf("%sClientID", c.Purpose), c.Ref()).NamedOutputs()
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/cfn/components/userpooluser/userpooluser.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ type UserPoolUser struct {
}

// NamedOutputs stored names of users
func (u *UserPoolUser) NamedOutputs() map[string]map[string]interface{} {
func (u *UserPoolUser) NamedOutputs() map[string]cloudformation.Output {
return cfn.NewValue(fmt.Sprintf("%sID", u.StoredName), u.Ref()).NamedOutputs()
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/cfn/components/vpc/vpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ type VPC struct {
}

// NamedOutputs returns the commonly used named outputs of a VPC
func (v *VPC) NamedOutputs() map[string]map[string]interface{} {
func (v *VPC) NamedOutputs() map[string]cloudformation.Output {
return cfn.NewValue(v.Name(), v.Ref()).NamedOutputs()
}

Expand Down
34 changes: 17 additions & 17 deletions pkg/cfn/output.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,18 @@ type Joined struct {
}

// NamedOutputs returns the named outputs
func (j *Joined) NamedOutputs() map[string]map[string]interface{} {
return map[string]map[string]interface{}{
func (j *Joined) NamedOutputs() map[string]cloudformation.Output {
return map[string]cloudformation.Output{
j.Name(): j.Outputs(),
}
}

// Outputs returns the outputs only
func (j *Joined) Outputs() map[string]interface{} {
return map[string]interface{}{
"Value": cloudformation.Join(",", j.Values),
"Export": map[string]string{
"Name": cloudformation.Sub(fmt.Sprintf("${AWS::StackName}-%s", j.Name())),
func (j *Joined) Outputs() cloudformation.Output {
return cloudformation.Output{
Value: cloudformation.Join(",", j.Values),
Export: &cloudformation.Export{
Name: cloudformation.Sub(fmt.Sprintf("${AWS::StackName}-%s", j.Name())),
},
}
}
Expand Down Expand Up @@ -66,18 +66,18 @@ type Value struct {
}

// NamedOutputs returns the named cloud formation outputs
func (v *Value) NamedOutputs() map[string]map[string]interface{} {
return map[string]map[string]interface{}{
func (v *Value) NamedOutputs() map[string]cloudformation.Output {
return map[string]cloudformation.Output{
v.Name(): v.Outputs(),
}
}

// Outputs returns only the cloud formation outputs
func (v *Value) Outputs() map[string]interface{} {
return map[string]interface{}{
"Value": v.Value,
"Export": map[string]string{
"Name": cloudformation.Sub(fmt.Sprintf("${AWS::StackName}-%s", v.Name())),
func (v *Value) Outputs() cloudformation.Output {
return cloudformation.Output{
Value: v.Value,
Export: &cloudformation.Export{
Name: cloudformation.Sub(fmt.Sprintf("${AWS::StackName}-%s", v.Name())),
},
}
}
Expand All @@ -98,11 +98,11 @@ func NewValue(name, v string) *Value {

// ValueMap stores the state for creating multiple outputs
type ValueMap struct {
Values map[string]map[string]interface{}
Values map[string]cloudformation.Output
}

// NamedOutputs returns the named outputs
func (v *ValueMap) NamedOutputs() map[string]map[string]interface{} {
func (v *ValueMap) NamedOutputs() map[string]cloudformation.Output {
return v.Values
}

Expand All @@ -116,7 +116,7 @@ func (v *ValueMap) Add(val *Value) *ValueMap {
// NewValueMap returns an initialised value map
func NewValueMap() *ValueMap {
return &ValueMap{
Values: map[string]map[string]interface{}{},
Values: map[string]cloudformation.Output{},
}
}

Expand Down
34 changes: 18 additions & 16 deletions pkg/cfn/output_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import (
"encoding/base64"
"testing"

"github.com/awslabs/goformation/v4/cloudformation"

"github.com/oslokommune/okctl/pkg/api"
"github.com/oslokommune/okctl/pkg/apis/okctl.io/v1alpha1"
"github.com/oslokommune/okctl/pkg/cfn"
Expand Down Expand Up @@ -117,46 +119,46 @@ func TestOutput(t *testing.T) {
testCases := []struct {
name string
outputer cfn.StackOutputer
expect map[string]map[string]interface{}
expect map[string]cloudformation.Output
}{
{
name: "Joined",
outputer: cfn.NewJoined("JoinedTest").Add("value"),
expect: map[string]map[string]interface{}{
expect: map[string]cloudformation.Output{
"JoinedTest": {
"Value": base64.StdEncoding.EncodeToString([]byte("{ \"Fn::Join\": [ \",\", [ \"value\" ] ] }")),
"Export": map[string]string{
"Name": "eyAiRm46OlN1YiIgOiAiJHtBV1M6OlN0YWNrTmFtZX0tSm9pbmVkVGVzdCIgfQ==",
Value: base64.StdEncoding.EncodeToString([]byte("{ \"Fn::Join\": [ \",\", [ \"value\" ] ] }")),
Export: &cloudformation.Export{
Name: "eyAiRm46OlN1YiIgOiAiJHtBV1M6OlN0YWNrTmFtZX0tSm9pbmVkVGVzdCIgfQ==",
},
},
},
},
{
name: "Value",
outputer: cfn.NewValue("ValueTest", "value"),
expect: map[string]map[string]interface{}{
expect: map[string]cloudformation.Output{
"ValueTest": {
"Value": "value",
"Export": map[string]string{
"Name": "eyAiRm46OlN1YiIgOiAiJHtBV1M6OlN0YWNrTmFtZX0tVmFsdWVUZXN0IiB9",
Value: "value",
Export: &cloudformation.Export{
Name: "eyAiRm46OlN1YiIgOiAiJHtBV1M6OlN0YWNrTmFtZX0tVmFsdWVUZXN0IiB9",
},
},
},
},
{
name: "ValueMap",
outputer: cfn.NewValueMap().Add(cfn.NewValue("Something", "v1")).Add(cfn.NewValue("Else", "v2")),
expect: map[string]map[string]interface{}{
expect: map[string]cloudformation.Output{
"Something": {
"Value": "v1",
"Export": map[string]string{
"Name": "eyAiRm46OlN1YiIgOiAiJHtBV1M6OlN0YWNrTmFtZX0tU29tZXRoaW5nIiB9",
Value: "v1",
Export: &cloudformation.Export{
Name: "eyAiRm46OlN1YiIgOiAiJHtBV1M6OlN0YWNrTmFtZX0tU29tZXRoaW5nIiB9",
},
},
"Else": {
"Value": "v2",
"Export": map[string]string{
"Name": "eyAiRm46OlN1YiIgOiAiJHtBV1M6OlN0YWNrTmFtZX0tRWxzZSIgfQ==",
Value: "v2",
Export: &cloudformation.Export{
Name: "eyAiRm46OlN1YiIgOiAiJHtBV1M6OlN0YWNrTmFtZX0tRWxzZSIgfQ==",
},
},
},
Expand Down
12 changes: 12 additions & 0 deletions pkg/cfn/testdata/userpool.yaml.golden
Original file line number Diff line number Diff line change
@@ -1,21 +1,33 @@
AWSTemplateFormatVersion: 2010-09-09
Outputs:
Arn:
Export:
Name:
Fn::Sub: ${AWS::StackName}-Arn
Value:
Fn::GetAtt:
- UserPool
- Arn
ProviderName:
Export:
Name:
Fn::Sub: ${AWS::StackName}-ProvideName
Value:
Fn::GetAtt:
- UserPool
- ProviderName
ProviderURL:
Export:
Name:
Fn::Sub: ${AWS::StackName}-ProviderURL
Value:
Fn::GetAtt:
- UserPool
- ProviderURL
UserPool:
Export:
Name:
Fn::Sub: ${AWS::StackName}-UserPool
Value:
Ref: UserPool
Resources:
Expand Down