New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reference is missing when reading the yaml #290
Comments
AWSTemplateFormatVersion: 2010-09-09 |
@community if this change is fine can we look for other referencing issues for e.g., GroupId for SecurityGroupIngress? |
SournceYaml : = 'AWSTemplateFormatVersion: 2010-09-09
Resources:
MyTopic:
Properties:
TopicName: my-topic-1536878058
Type: AWS::SNS::Topic
MyTopicSubscription:
Properties:
Endpoint: [email protected]
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: [email protected]
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: