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

Commit

Permalink
Merge pull request #116 from PaulMaddox/import-value-fix
Browse files Browse the repository at this point in the history
Fixed typo that was preventing Fn::ImportValue from working
  • Loading branch information
PaulMaddox authored Sep 14, 2018
2 parents 90ef940 + 6808116 commit f5e92c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cloudformation/intrinsics.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func GetAtt(logicalName string, attribute string) string {

// ImportValue returns the value of an output exported by another stack. You typically use this function to create cross-stack references. In the following example template snippets, Stack A exports VPC security group values and Stack B imports them.
func ImportValue(name string) string {
i := `{ "Fn::Import": "` + name + `" }`
i := `{ "Fn::ImportValue": "` + name + `" }`
return base64.StdEncoding.EncodeToString([]byte(i))
}

Expand Down

0 comments on commit f5e92c2

Please sign in to comment.