You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
is missing goformation is not able to set the reference.
The same goes for properties when setting a value in properties and referring the same it is not working.
these are valid when we want to set a VPCid for a stack and need to refer the same from the resources.
The text was updated successfully, but these errors were encountered:
SournceYaml : = 'AWSTemplateFormatVersion: 2010-09-09
Resources:
MyTopic:
Properties:
TopicName: my-topic-1536878058
Type: AWS::SNS::Topic
MyTopicSubscription:
Properties:
Endpoint: some.email@example.com
Protocol: email
TopicArn:
Ref: MyTopic
Type: AWS::SNS::Subscription'
cfn_template,err := goformation.ParseYAML([]byte(SournceYaml))
strYaml,_ := cfn_template.YAML()
fmt.Println(string(strYaml))
Output:
AWSTemplateFormatVersion: 2010-09-09
Resources:
MyTopic:
Properties:
TopicName: my-topic-1536878058
Type: AWS::SNS::Topic
MyTopicSubscription:
Properties:
Endpoint: some.email@example.com
Protocol: email
Type: AWS::SNS::Subscription
TopicArn:
Ref: MyTopic
is missing goformation is not able to set the reference.
The same goes for properties when setting a value in properties and referring the same it is not working.
these are valid when we want to set a VPCid for a stack and need to refer the same from the resources.
The text was updated successfully, but these errors were encountered: